Template:Centurybox/nthcent

From Empire of Dragons
< Template:Centurybox
Revision as of 09:26, 16 August 2024 by Oberoten (talk | contribs) (Created page with "<includeonly>{{Ordinal|{{#expr:{{{1}}}+not{{{1}}}}}}} {{#ifexpr:{{#ifeq:{{{2|AD}}}|BC|1|0}}=not{{{1}}}|{{{cm|century}}}|{{{cm|century}}} {{{bc|BC}}}}}</includeonly><noinclude>This template *converts {{{1}}} to ''{{{1}}}th century (BC)'' (''BC'' is included iff {{{2}}}=''BC''), *handles {{{1}}}=0 correctly & *allows for alternatives to ''century'' & ''BC'' (respective defaults of {{{cm}}} & {{{bc}}}).</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template

  • converts {{{1}}} to {{{1}}}th century (BC) (BC is included iff {{{2}}}=BC),
  • handles {{{1}}}=0 correctly &
  • allows for alternatives to century & BC (respective defaults of {{{cm}}} & {{{bc}}}).