Template:Centurynum/adbc: Difference between revisions
Appearance
wikademia>Jimp creating template to convert "nth century" to "AD" & "nth century BC" to "BC" |
wikademia>Wikademia m 4 revisions |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{#ifeq:{{Centurynum/n|{{{1}}}}}|{{Centurynum/switch|{{{1}}}}}| | <noinclude>*Input a parameter of the form ''nth century'' and get | ||
:::''AD''. | |||
*Input a parameter of the form ''nth century BC'' and get | |||
:::''BC''. | |||
*Else get | |||
:::''</noinclude>{{#ifeq:{{Centurynum/n|{{{1}}}}}|{{Centurynum/switch|{{{1}}} BC}}|AD}}{{#ifeq:{{Centurynum/n|{{{1}}}}}|{{Centurynum/switch|{{{1}}}}}|BC}}<noinclude>''. | |||
;Note: | |||
:It works for all interger n, 100 ≥ n ≥ 1<!-- as per {{Centurynum/switch}} -->.</noinclude> | |||
Latest revision as of 20:28, 4 April 2009
- Input a parameter of the form nth century and get
- AD.
- Input a parameter of the form nth century BC and get
- BC.
- Else get
- ADBC.
- Note
- It works for all interger n, 100 ≥ n ≥ 1.