Template:AeYear: Difference between revisions

From FeyworldWiki
Jump to navigationJump to search
(Created page with "<noinclude> Use the following to cut and paste to an entry for a year in the Aebasan Calendar. <pre><nowiki> {{ICYear|<year>}} </nowiki></pre>Category:Templates </noinclud...")
 
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:
Use the following to cut and paste to an entry for a year in the Aebasan Calendar.
Use the following to cut and paste to an entry for a year in the Aebasan Calendar.
<pre><nowiki>
<pre><nowiki>
{{ICYear|<year>}}
{{AeYear|<year>}}
</nowiki></pre>[[Category:Templates]]
</nowiki></pre>[[Category:Templates]]
</noinclude><includeonly>{{#ifexpr:{{{1}}} > 0|{{#vardefine:ncyear|{{#expr:5875 + {{{1}}}}}}}|{{#vardefine:ncyear|{{#expr:5876 + {{{1}}}}}}}}}{{#ifexpr:{{#var:ncyear}} > 0|{{#vardefine:ylink|{{#var:ncyear}}}}|{{#vardefine:ylink|{{abs|{{#var:ncyear}}}} AT}}}}{{#ifexpr:{{{1}}}>0|[[{{#var:ylink}}|{{{1}}} AT]]|[[{{#var:ylink}}|{{abs|{{{1}}}}} MT]]}}
</noinclude><includeonly><!-- Converting the Aebasan Year (positive or negative) into the NC year -->{{#ifexpr:{{{1}}} < 0|{{#vardefine:ncyear|{{#expr:{{{1}}}-5875}}}}|{{#ifexpr:{{{1}}} > 5875|{{#vardefine:ncyear|{{#expr:{{{1}}}-5875}}}}|{{#vardefine:ncyear|{{#expr: {{{1}}}-5876}}}}}}}}<!-- Creating the number for the 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 Ae year is positive, append ' AT', if negative, append ' MT' -->{{#ifexpr:{{{1}}}>0|[[{{#var:ylink}}|{{{1}}} AT]]|[[{{#var:ylink}}|{{abs|{{{1}}}}} MT]]}}

Latest revision as of 16:08, 22 June 2026

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

{{AeYear|<year>}}