Template:Centurybox/centh: Difference between revisions
From BoyWiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<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> | <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> | ||
<noinclude> | |||
{{documentation}} | |||
[[Category:General wiki templates]] | [[Category:General wiki templates]] | ||
</noinclude> |
Latest revision as of 12:17, 11 December 2012
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}}}).
BoyWiki Template documentation (for the above template, sometimes hidden or invisible)
- This template doesn't have any documentation yet! Help out by writing some. There may also be documentation on Wikia Templates which can be copied.
Visit Template:Centurybox/centh/doc to edit this template's description!
Done making changes? Refresh Also see: Portal:Template index and Help:Templates
Done making changes? Refresh Also see: Portal:Template index and Help:Templates