Template:ICYear: Difference between revisions

From FeyworldWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Use the following to cut and paste to an entry for a year in the Neptaran Calendar.
Use the following to cut and paste to an entry for a year in the Imperial Calendar.
<pre><nowiki>
<pre><nowiki>
{{ICYear|<year>}}
{{ICYear|<year>}}
</nowiki></pre>[[Category:Templates]]
</nowiki></pre>[[Category:Templates]]
</noinclude><includeonly>
</noinclude><includeonly><!-- Converting the IC Year (positive or negative) into the NC year -->{{#ifexpr:{{{1}}} > 0|{{#vardefine:ncyear|{{#expr:750 + {{{1}}}}}}}|{{#ifexpr:{{{1}}} >= -750|{{#vardefine:ncyear|{{#expr:751 + {{{1}}}}}}}|{{#vardefine:ncyear|{{#expr:750 + {{{1}}}}}}}}}}}<!-- Creating the year link for the year page; positive years are just the number, negative years need to have ' BF' appended -->{{#ifexpr:{{#var:ncyear}} > 0|{{#vardefine:ylink|{{#var:ncyear}}}}|{{#vardefine:ylink|{{abs|{{#var:ncyear}}}} BF}}}}<!-- Creating the year link for the year page; if the IC year is positive, append ' IC', if negative, append ' BI' -->{{#ifexpr:{{{1}}}>0|[[{{#var:ylink}}|{{{1}}} IC]]|[[{{#var:ylink}}|{{abs|{{{1}}}}} BI]]}}
{{#vardefine:ncyear|{{#expr:{{{1}}} + 750}}
{{#ifexpr:{{{#var:ncyear}}} > 0|
  {{#vardefine:ylink|{{#var:ncyear}}}}
|
  {{#vardefine:ylink|{{#var:ncyear}} BF}}
}}
{{#ifexpr:{{{1}}}>0|
  [[{{#var:ylink}}|{{{1}}} IC]]
|
  [[{{#var:ylink}}|{{abs|{{{1}}}}} BI]]
}}

Latest revision as of 14:10, 22 June 2026

Use the following to cut and paste to an entry for a year in the Imperial Calendar.

{{ICYear|<year>}}