Jump to content

Template:Centurynum: Difference between revisions

From IdeaWazaWiki
wikademia>Jimp
takes a century name in the form "nth century (BC)" defaulting to the page name on pages with names of this form & returns the "n", "th", "nth"; "BC"/"AD"; prev/foll century's name or (default) "(-)n"
 
wikademia>Wikademia
m 5 revisions
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#if:{{{2|}}}|{{centurynum/{{{2}}}|{{{1}}}}}|{{#if:{{{1|}}}|{{#ifexpr:{{centurynum/n|{{{1}}}}}>0|{{centurynum/posneg|{{{1}}}}}|{{centurynum/{{{1}}}|{{PAGENAME}}}}}}|{{centurynum/posneg|{{PAGENAME}}}}}}}}
{{#if:{{{2|}}}|{{centurynum/{{{2}}}|{{{1}}}}}|{{#if:{{{1|}}}|{{#ifexpr:({{centurynum/n|{{{1}}}}}+1)>1|{{centurynum/posneg|{{{1}}}}}|{{centurynum/{{{1}}}|{{PAGENAME}}}}}}|{{centurynum/posneg|{{PAGENAME}}}}}}}}

Latest revision as of 20:28, 4 April 2009