Template:Centurybox/centh

From BoyWiki
< Template:Centurybox
Revision as of 22:17, 26 September 2008 by Keeper (talk | contribs) (New page: <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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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}}}).