Difference between revisions of "Template:Centurynum/adbc"
Jump to navigation
Jump to search
imported>Jimp (creating template to convert "nth century" to "AD" & "nth century BC" to "BC") |
imported>Jimp m |
||
| (2 intermediate revisions by the same 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 00:42, 6 July 2007
- 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.