Template:DecadeNav: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(getting rid of the most distant decade on both sides)
No edit summary
Tag: sourceedit
 
(4 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|-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 #fff;"
||{{#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}}]]}}
||{{#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]]&nbsp;• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+20}}s]]&nbsp;• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+30}}s]]&nbsp;• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+40}}s]]
|[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+10}}s]]&nbsp;• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+20}}s]]&nbsp;• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+30}}s]]&nbsp;• [[{{#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.