Template:DecadeNav: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
No edit summary |
(fixing bullets at start of line) |
||
Line 1: | Line 1: | ||
<includeonly>{| class="timeline" | <includeonly>{| class="timeline" | ||
|- | |- | ||
| | | style="margin-left: 0px;margin-top:0px;line-height:110%;text-align:center; font-size:150%;"|[[Timeline]] | ||
|-align=center | |-align=center | ||
|[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-40}}s]] •[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-30}}s]] • [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-20}}s]] • [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-10}}s]] | |[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-40}}s]] •[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-30}}s]] • [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-20}}s]] • [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-10}}s]] | ||
|-align=center style="border:1px dashed #2f2cb8;" | |-align=center style="border:1px dashed #2f2cb8;" | ||
||{{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+0}}|R}}=0| | | ||{{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+0}}|R}}=0| |[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+0}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+1}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+1}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+2}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+2}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+3}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+3}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+4}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+4}}]]}} <div style="font-size:150%;line-height:100%;">[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-0}}s]]</div><div style="font-size:90%;line-height:90%;">part of the [[{{nth|{{#expr:{{#sub:{{PAGENAME}}|0|-3}}+1}}}} century]]</div>{{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+5}}|R}}=0| |[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+5}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+6}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+6}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+7}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+7}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+8}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+8}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+9}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+9}}]]}} | ||
|-align=center | |-align=center | ||
|[[{{#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]]</noinclude> |
Revision as of 02:31, 6 February 2013
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.