Template:YearNav: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
This should insert commas into the name only if it's at least 5 digits long
(fixing minor things at −3 and −2)
(This should insert commas into the name only if it's at least 5 digits long)
Line 1: Line 1:
<includeonly>{| class="timeline"
<includeonly>{| class="timeline"
|-
|-
| style="margin-left: 0px;margin-top:2px;line-height:110%;text-align:center; font-size:150%;"|[[Timeline]] for {{dda}}
| style="margin-left: 0px;margin-top:2px;line-height:110%;text-align:center; font-size:150%;"|[[Timeline]] for {{#ifexpr:{{dda}} > 9999|{{formatnum:{{dda}}}}|{{dda}}}}
|-
|-
|{{#ifexpr:{{dda}} > 9999|<center>'''[[Far future]]'''</center>|<center>[[{{nth|{{#expr:(({{dda}}-({{dda}} mod 100))/100)+1}}}} century]] {{#ifeq:{{PAGESIZE:{{#expr:({{dda}} - ({{dda}} mod 10))}}s}}|0| |{{!}} [[{{#expr: {{dda}} - ({{dda}} mod 10)}}s]]|}}}}
|{{#ifexpr:{{dda}} > 9999|<center>'''[[Far future]]'''</center>|<center>[[{{nth|{{#expr:(({{dda}}-({{dda}} mod 100))/100)+1}}}} century]] {{#ifeq:{{PAGESIZE:{{#expr:({{dda}} - ({{dda}} mod 10))}}s}}|0| |{{!}} [[{{#expr: {{dda}} - ({{dda}} mod 10)}}s]]|}}}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.