Template:AUC

From NovaRoma
(Difference between revisions)
Jump to: navigation, search
m (enter years up to 2020)
m (+ docs)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}|R |r ={{#switch:{{CURRENTYEAR}} | 2010 = MMDCCLXIII| 2011 = MMDCCLXIV| 2012 = MMDCCLXV| 2013 = MMDCCLXVI| 2014 = MMDCCLXVII| 2015 = MMDCCLXVIII | 2016 = MMDCCLXIX | 2017 = MMDCCLXX | 2018 = MMDCCLXXI | 2019 = MMDCCLXXII | 2020 = MMDCCLXXIII|}}| {{#expr:{{CURRENTYEAR}} + 753 }}}}</includeonly><noinclude>[[Category:Year templates]]
+
{{#switch:{{{1|}}}|R |r ={{#switch:{{CURRENTYEAR}} | 2010 = MMDCCLXIII| 2011 = MMDCCLXIV| 2012 = MMDCCLXV| 2013 = MMDCCLXVI| 2014 = MMDCCLXVII| 2015 = MMDCCLXVIII | 2016 = MMDCCLXIX | 2017 = MMDCCLXX | 2018 = MMDCCLXXI | 2019 = MMDCCLXXII | 2020 = MMDCCLXXIII|}}|A |a | #default= {{#expr:{{CURRENTYEAR}} + 753 }}}}<noinclude>
Usage: <nowiki>{{AUC}}</nowiki> or <nowiki>{{AUC|R}}</nowiki>
+
----
 +
==Usage==
  
Function: Returns current year AUC in Arabic numerals {{AUC}} or in Roman numerals <nowiki>{{AUC|R}}</nowiki> {{AUC|R}}
+
'''<nowiki>{{AUC}}</nowiki>''' '''<nowiki>{{AUC|A}}</nowiki>''' '''<nowiki>{{AUC|a}}</nowiki>''' Returns current year AUC in Arabic numerals ({{AUC}}).
  
 +
'''<nowiki>{{AUC|R}}</nowiki>''' '''<nowiki>{{AUC|r}}</nowiki>''' Returns current year AUC in Roman numerals ({{AUC|R}}).
  
</noinclude>
+
==Notes==
 +
 
 +
For compatibility with existing templates, do not change the default behavior of <nowiki>{{AUC}}</nowiki>.
 +
 
 +
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>

Revision as of 01:43, 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".

Personal tools