Template:YearNav: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
changing the decade conditional to an ifeq. not sure why ifexpr isn't working with 1990s and 2000s years, but it's not. this would seem to fix the problem.
No edit summary
(changing the decade conditional to an ifeq. not sure why ifexpr isn't working with 1990s and 2000s years, but it's not. this would seem to fix the problem.)
Line 4: Line 4:
| style="margin-left: 0px;margin-top:2px;line-height:110%;text-align:center; font-size:150%;"|[[Timeline]] for {{PAGENAME}}
| style="margin-left: 0px;margin-top:2px;line-height:110%;text-align:center; font-size:150%;"|[[Timeline]] for {{PAGENAME}}
|-
|-
|{{#ifexpr:{{PAGENAME}} > 9999|<center>'''[[Far future]]'''</center>|<center>[[{{nth|{{#expr:(({{PAGENAME}}-({{PAGENAME}} mod 100))/100)+1}}}} century]] {{#ifexpr:{{PAGESIZE:{{#expr:({{PAGENAME}} - ({{PAGENAME}} mod 10))}}s}}=0| |{{!}} [[{{#expr: {{PAGENAME}} - ({{PAGENAME}} mod 10)}}s]]|}}}}
|{{#ifexpr:{{PAGENAME}} > 9999|<center>'''[[Far future]]'''</center>|<center>[[{{nth|{{#expr:(({{PAGENAME}}-({{PAGENAME}} mod 100))/100)+1}}}} century]] {{#ifeq:{{PAGESIZE:{{#expr:({{PAGENAME}} - ({{PAGENAME}} mod 10))}}s}}|0| |{{!}} [[{{#expr: {{PAGENAME}} - ({{PAGENAME}} mod 10)}}s]]|}}}}
|-align="center"
|-align="center"
|{{#ifexpr:{{PAGENAME}} > 9999| |<hr>{{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-6}}|R}}=0| |[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-6}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-5}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-5}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-4}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-4}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-3}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-3}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-2}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-2}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-1}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-1}}]]}} {{#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}}]]}} {{#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:{{PAGENAME}} > 9999| |<hr>{{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-6}}|R}}=0| |[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-6}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-5}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-5}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-4}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-4}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-3}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-3}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-2}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-2}}]]}} {{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-1}}|R}}=0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-1}}]]}} {{#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}}]]}} {{#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}}]]}}}}
85,404

edits

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