Template:Centurybox/nthcent: Difference between revisions
Appearance
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>Wikademia m 5 revisions |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{Ordinal|{{#expr:{{{ | <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> | |||
Latest revision as of 20:28, 4 April 2009
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}}}).