Template:EventRow: Difference between revisions

From FeyworldWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
Use the following to cut and paste to an entry for an event row in a timeline
Use the following to cut and paste to an entry for an event row in a timeline
<pre><nowiki>
<pre><nowiki>
{{EventRow|<positive or negative year NC>|<odd or even row>|<event text>}}
{{EventRow|<!-- Positive or negative numerical year, in NC -->|<!-- Row - just put "odd" or "even" -->|<!-- Event Text -->}}
</nowiki></pre>[[Category:Templates]]
</nowiki></pre>[[Category:Templates]]
</noinclude><includeonly>
</noinclude><includeonly>
{{#if:{{{2|}}}|{{#ifeq:{{{2}}}|"odd"|{{!}}-  class="tablerow_odd" valign="top"|{{!}}-  class="tablerow_even" valign="top"}}|{{!}}"Row Error"}}
{{#if:{{{2|}}}|{{#ifeq:{{{2}}}|"odd"|{{!}}-  class="tablerow_odd" valign="top"|{{!}}-  class="tablerow_even" valign="top"}}|{{!}}"Row Error"}}
{{#ifexpr:{{{1}}}< 0|{{#vardefine:icyear|{{#expr:{{{1}}}-750}}}}|{{#ifexpr:{{{1}}}<751|{{#vardefine:icyear|{{#expr:{{{1}}}-751}}|{{#expr:{{{1}}}-750}}}}}}}}
{{#ifexpr:{{{1}}}< 0|{{#vardefine:icyear|{{#expr:{{{1}}}-750}}}}|{{#ifexpr:{{{1}}}<751|{{#vardefine:icyear|{{#expr:{{{1}}}-751}}|{{#expr:{{{1}}}-750}}}}}}}}
{{#ifexpr:{{{1}}}> 0|{{#vardefine:aeyear|{{#expr:{{{1}}}+5875}}}}|{{#ifexpr:{{{1}}}<-5876|{{#vardefine:aeyear|{{#expr:{{{1}}}+5875}}|{{#expr:{{{1}}}+5876}}}}}}}}
{{!}}align="center"{{!}}{{ICYear|{{#var:icyear}}}}
{{!}}align="center"{{!}}{{ICYear|{{#var:icyear}}}}
{{!}}align="center"{{!}}{{AeYear|5995}}
{{!}}align="center"{{!}}{{AeYear|{{#var:aeyear}}}}
{{!}}align="center"{{!}}{{NCYear|{{{1}}}}}
{{!}}align="center"{{!}}{{NCYear|{{{1}}}}}
{{!}}{{{3}}}
{{!}}{{{3}}}

Revision as of 11:27, 17 June 2026

Use the following to cut and paste to an entry for an event row in a timeline

{{EventRow|<!-- Positive or negative numerical year, in NC -->|<!-- Row - just put "odd" or "even" -->|<!-- Event Text -->}}