Jump to content

Template:Centurybox/nthcent: Difference between revisions

From IdeaWazaWiki
wikademia>Jimp
converts {{{n}}} to "nth century (BC)", inclusion of (BC) depends on {{{ad}}}, handles {{{n}}}=0 correctly & allows for alternative to "BC" (default of {{{bc}}})
 
wikademia>Jimp
alternative to "century" also
Line 1: Line 1:
<includeonly>{{Ordinal|{{#expr:{{{n}}}+not{{{n}}}}}}} {{#ifexpr:{{{ad}}}=not{{{n}}}|century|century {{{bc|BC}}}}}</includeonly><noinclude>This template converts {{{n}}} to "nth century (BC)", inclusion of (BC) depends on {{{ad}}}, handles {{{n}}}=0 correctly & allows for alternative to "BC" (default of {{{bc}}}).</noinclude>
<includeonly>{{Ordinal|{{#expr:{{{n}}}+not{{{n}}}}}}} {{#ifexpr:{{{ad}}}=not{{{n}}}|{{{cm|century}}}|{{{cm|century}}} {{{bc|BC}}}}}</includeonly><noinclude>This template
*converts {{{n}}} to ''nth century (BC)'' (inclusion of ''BC'' depends on {{{ad}}}),  
*handles {{{n}}}=0 correctly &  
*allows for alternatives to ''century'' & ''BC'' (respective defaults of {{{cm}}} & {{{bc}}}).</noinclude>

Revision as of 00:15, 9 July 2007

This template

  • converts {{{n}}} to nth century (BC) (inclusion of BC depends on {{{ad}}}),
  • handles {{{n}}}=0 correctly &
  • allows for alternatives to century & BC (respective defaults of {{{cm}}} & {{{bc}}}).