Template:AUC
From NovaRoma
(Difference between revisions)
m |
m |
||
(5 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{#switch:{{{1|}}}|R |r ={{RN|{{#expr:{{CURRENTYEAR}}+753}}}}|A |a | #default= {{#expr:{{CURRENTYEAR}} + 753 }}}}<noinclude> | |
− | Usage | + | ---- |
+ | ==Usage== | ||
+ | '''<nowiki>{{AUC}}</nowiki>''' '''<nowiki>{{AUC|A}}</nowiki>''' '''<nowiki>{{AUC|a}}</nowiki>''' Returns current year AUC in Arabic numerals ({{AUC}}). | ||
− | }}</nowiki> | + | '''<nowiki>{{AUC|R}}</nowiki>''' '''<nowiki>{{AUC|r}}</nowiki>''' Returns current year AUC in Roman numerals ({{AUC|R}}). |
− | + | ==Notes== | |
+ | For compatibility with existing templates, do not change the default behavior of <nowiki>{{AUC}}</nowiki>. | ||
− | </noinclude> | + | In the future, add automatic conversion to Roman numerals. |
+ | |||
+ | In the future, add a second parameter to calculate any year AUC from any CE/BCE year. For example, <nowiki>{{AUC|R|1}}</nowiki> would return "DCCLIV". Pay close attention to the lack of a year "0". | ||
+ | |||
+ | [[Category:Year templates]]</noinclude> |
Latest revision as of 05:52, 15 May 2010
2777
Usage
{{AUC}} {{AUC|A}} {{AUC|a}} Returns current year AUC in Arabic numerals (2777).
{{AUC|R}} {{AUC|r}} Returns current year AUC in Roman numerals (MMDCCLXXVII).
Notes
For compatibility with existing templates, do not change the default behavior of {{AUC}}.
In the future, add automatic conversion to Roman numerals.
In the future, add a second parameter to calculate any year AUC from any CE/BCE year. For example, {{AUC|R|1}} would return "DCCLIV". Pay close attention to the lack of a year "0".