Template:DecadeNav: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (Protected "Template:DecadeNav": Robot: Protecting all pages from category templates (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
No edit summary
Tag: sourceedit
 
Line 9: Line 9:
|[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+10}}s]] • [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+20}}s]] • [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+30}}s]] • [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+40}}s]]
|[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+10}}s]] • [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+20}}s]] • [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+30}}s]] • [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+40}}s]]
|}[[Category:{{#expr:{{#sub:{{PAGENAME}}|0|4}}}}s| *]] [[Category:Decades]][[Category:{{nth|{{#expr:{{#sub:{{PAGENAME}}|0|-3}}+1}}}} century decades]]</includeonly>
|}[[Category:{{#expr:{{#sub:{{PAGENAME}}|0|4}}}}s| *]] [[Category:Decades]][[Category:{{nth|{{#expr:{{#sub:{{PAGENAME}}|0|-3}}+1}}}} century decades]]</includeonly>
<noinclude>{{documentation}}[[Category:Timeline templates|D]]</noinclude>
<noinclude>{{documentation}}[[Category:Timeline templates|D]][[Category:Templates that add a category]]</noinclude>

Latest revision as of 04:23, 11 June 2017

Instructions for {{DecadeNav}}
Do not directly call this template. It is used to support other templates. Once another template decides that the topic of a page is a decade, this template will automatically provide a navigation box.

It is completely automatic, and has no user-definable parameters.

Sample output

Because this template is dependent upon detecting a PAGENAME that is a decade. its output can only be seen on a decade page. It is impossible to reproduce its results here. If you wish to test it, go to any decade and add {{timeline}} to the page.