Template:YearNav: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
trying to fix wikipediainfo issue
(This should insert commas into the name only if it's at least 5 digits long)
(trying to fix wikipediainfo issue)
Line 7: Line 7:
|{{#ifexpr:{{dda}} > 9999| |<hr>{{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-6}} {{daydab}}|R}}=0| |[[{{#expr:{{#sub:{{dda}}|0|4}}-6}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-6}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-5}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}-5}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-5}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}-4}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}-4}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-4}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}-3}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}-3}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-3}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}-2}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}-2}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-2}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}-1}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}-1}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-1}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+1}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+1}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+1}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+2}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+2}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+2}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+3}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+3}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+3}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+4}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+4}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+4}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+5}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+5}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+5}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+6}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+6}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+6}}]]}}}}
|{{#ifexpr:{{dda}} > 9999| |<hr>{{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-6}} {{daydab}}|R}}=0| |[[{{#expr:{{#sub:{{dda}}|0|4}}-6}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-6}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-5}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}-5}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-5}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}-4}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}-4}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-4}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}-3}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}-3}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-3}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}-2}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}-2}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-2}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}-1}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}-1}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}-1}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+1}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+1}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+1}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+2}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+2}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+2}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+3}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+3}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+3}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+4}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+4}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+4}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+5}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+5}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+5}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{dda}}|0|4}}+6}} {{daydab}}|R}}|0| |•&nbsp;[[{{#expr:{{#sub:{{dda}}|0|4}}+6}} {{daydab}}|{{#expr:{{#sub:{{dda}}|0|4}}+6}}]]}}}}
|-
|-
|{{#ifexpr:{{dda}} <= {{#expr:{{CURRENTYEAR}}+10}}|{{wikipediainfo}}| |}}
|{{#ifexpr:{{dda}} <= {{#expr:{{CURRENTYEAR}}+10}}[[File:WikipediaInfo.png|link=[[wikipedia:{{PAGENAME}}|center]]]]| |}}
|-
|-
|}{{#ifexpr:{{dda}} >9999|[[Category:Far future]]|[[Category:{{nth|{{#expr:(({{dda}}-({{dda}} mod 100))/100)+1}}}} century years]][[Category:{{#expr: {{dda}} - ({{dda}} mod 10)}}s]]|}} </includeonly><noinclude>[[Category:Timeline templates]]{{Documentation}}</noinclude>
|}{{#ifexpr:{{dda}} >9999|[[Category:Far future]]|[[Category:{{nth|{{#expr:(({{dda}}-({{dda}} mod 100))/100)+1}}}} century years]][[Category:{{#expr: {{dda}} - ({{dda}} mod 10)}}s]]|}} </includeonly><noinclude>[[Category:Timeline templates]]{{Documentation}}</noinclude>
85,404

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.