Jump to content

Template:Centurynum/adbc: Difference between revisions

From IdeaWazaWiki
wikademia>Jimp
added explanation and adjusted the default to match the subtemplate name
wikademia>Wikademia
m 4 revisions
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>*Input a parameter of the form ''nth century''
<noinclude>*Input a parameter of the form ''nth century'' and get
::and get ''AD''.
:::''AD''.
*Input a parameter of the form ''nth century BC''
*Input a parameter of the form ''nth century BC'' and get
::and get ''BC''.
:::''BC''.
*Else get
*Else get
::get ''</noinclude>{{#ifeq:{{Centurynum/n|{{{1}}}}}|{{Centurynum/switch|{{{1}}} BC}}|AD}}{{#ifeq:{{Centurynum/n|{{{1}}}}}|{{Centurynum/switch|{{{1}}}}}|BC}}<noinclude>''.
:::''</noinclude>{{#ifeq:{{Centurynum/n|{{{1}}}}}|{{Centurynum/switch|{{{1}}} BC}}|AD}}{{#ifeq:{{Centurynum/n|{{{1}}}}}|{{Centurynum/switch|{{{1}}}}}|BC}}<noinclude>''.


;Note:
;Note:
:It works for all interger n, 100 ≥ n ≥ 1.</noinclude>
: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.