Jump to content

Template:Centurybox/centh: Difference between revisions

From IdeaWazaWiki
wikademia>Jimp
moved Template:Centurybox/centh to Template:Centurybox/nthcent: making room to handle negative centuries
 
wikademia>Wikademia
m 2 revisions
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
#REDIRECT [[Template:Centurybox/nthcent]]
<includeonly>{{#ifexpr:{{{1}}}>0|{{Centurybox/nthcent|{{{1}}}|{{{2|AD}}}|cm={{{cm|century}}}|bc={{{bc|BC}}}}}|{{Centurybox/nthcent|{{#expr:1-{{{1}}}}}|{{#switch:{{{2|AD}}}|AD=BC|BC=AD}}|cm={{{cm|century}}}|bc={{{bc|BC}}}}}}}</includeonly><noinclude>This template corrects any century number less than one then passes parameters on to {{tl|Centurybox/nthcent}} which, in turn converts {{{1}}} to ''{{{1}}}th century (BC)'' (''BC'' is included iff {{{2}}}=''BC'') allowing for alternatives to ''century'' & ''BC'' (respective defaults of {{{cm}}} & {{{bc}}}).</noinclude>

Latest revision as of 20:28, 4 April 2009

This template corrects any century number less than one then passes parameters on to {{Centurybox/nthcent}} which, in turn converts {{{1}}} to {{{1}}}th century (BC) (BC is included iff {{{2}}}=BC) allowing for alternatives to century & BC (respective defaults of {{{cm}}} & {{{bc}}}).