Template:YearNav: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
hm less elegant in its output imo, but definitely cleaner function-wise
No edit summary
(hm less elegant in its output imo, but definitely cleaner function-wise)
Line 9: Line 9:
|{{#ifexpr:{{dda}} <= {{#expr:{{CURRENTYEAR}}+10}}|[[File:WikipediaInfo.png|center|link=wikipedia:{{dda}}]]| |}}
|{{#ifexpr:{{dda}} <= {{#expr:{{CURRENTYEAR}}+10}}|[[File:WikipediaInfo.png|center|link=wikipedia:{{dda}}]]| |}}
|-
|-
|}{{#ifexpr:{{dda}} >9999|[[Category:Far future| {{#ifexpr:{{dda}}<100000|{{dda}}|{{#ifexpr:{{dda}}<1000000|a{{dda}}|{{#ifexpr:{{dda}}<10000000|b{{dda}}|{{#ifexpr:{{dda}}<100000000|c{{dda}}|{{#ifexpr:{{dda}}<1000000000|d{{dda}}|{{#ifexpr:{{dda}}<10000000000|e{{dda}}|{{#ifexpr:{{dda}}<100000000000|f{{dda}}|{{#ifexpr:{{dda}}<1000000000000|g{{dda}}|{{#ifexpr:{{dda}}<10000000000000|h{{dda}}|x{{dda}}}}}}}}}}}}}}}}}}}}]]|[[Category:{{nth|{{#expr:(({{dda}}-({{dda}} mod 100))/100)+1}}}} century years]][[Category:{{#expr: {{dda}} - ({{dda}} mod 10)}}s]]|}} </includeonly><noinclude>[[Category:Timeline templates]][[Category:Templates that add a category]]{{Documentation}}</noinclude>
|}{{#ifexpr:{{dda}} >9999|[[Category:Far future| {{padleft:{{dda}}|33}}]]|[[Category:{{nth|{{#expr:(({{dda}}-({{dda}} mod 100))/100)+1}}}} century years]][[Category:{{#expr: {{dda}} - ({{dda}} mod 10)}}s]]|}} </includeonly><noinclude>[[Category:Timeline templates]][[Category:Templates that add a category]]{{Documentation}}</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.