Changes

Jump to navigation Jump to search
Radically simplify code thanks to {{dr}} template; apply AD notation to years 1-100 per RfC on Talk:AD 1
<includeonly>{{#ifeq:{{#expr:{{{2}}}}}|{{{2}}}<!-- {{{2}}} is a number: process it as a year -->
| {{#ifeq:{{{3|AD}}}|BC
| {{dr|y|y|-{{{2}}}|0|ysa}}<!-- Process negative years and display small BC prefix -->
| {{dr|y|y|{{{2}}}|0|{{#ifexpr:{{{2}}}<=100|ysa|y}}}}<!-- Display small AD prefix for years 1 to 100, otherwise just year number -->
}}<!-- {{{2}}} is not a number: process it as a decade (number followed by "s") -->
| [[{{Decades and years/addepoch|1={{{2}}}|2={{{3|AD}}} }}{{{4|}}}|'''{{Decades and years/addepoch|1={{{2}}}|2={{{3|AD}}}|3=<small>{{{3|AD}}}</small> }}''']]
}}</includeonly><noinclude>
<!-- Namespace parameter {{{1}}} is no longer supported (it was unused) -->
{{documentation}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</noinclude>
Anonymous user

Navigation menu