Bureaucrats, content-moderator, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators, threadmoderator
85,404
edits
(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.) |
(changing over to ifeq more broadly) |
||
Line 6: | Line 6: | ||
|{{#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]]|}}}} | |{{#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:{{PAGENAME}} > 9999| |<hr>{{#ifexpr:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-6}}|R}}=0| |[[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-6}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-5}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-5}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-4}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-4}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-3}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-3}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-2}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-2}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}-1}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}-1}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+1}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+1}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+2}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+2}}]]}} {{#ifq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+3}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+3}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+4}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+4}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+5}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+5}}]]}} {{#ifeq:{{PAGESIZE:{{#expr:{{#sub:{{PAGENAME}}|0|4}}+6}}|R}}|0| |• [[{{#expr:{{#sub:{{PAGENAME}}|0|4}}+6}}]]}}}} | ||
|- | |- | ||
|{{#ifexpr:{{PAGENAME}} <= {{#expr:{{CURRENTYEAR}}+10}}|{{wikipediainfo}}| |}} | |{{#ifexpr:{{PAGENAME}} <= {{#expr:{{CURRENTYEAR}}+10}}|{{wikipediainfo}}| |}} | ||
|- | |- | ||
|}{{#ifexpr:{{PAGENAME}} >9999|[[Category:Far future]]|[[Category:{{nth|{{#expr:(({{PAGENAME}}-({{PAGENAME}} mod 100))/100)+1}}}} century years]][[Category:{{#expr: {{PAGENAME}} - ({{PAGENAME}} mod 10)}}s]]|}} </includeonly><noinclude>[[Category:Timeline templates]]</noinclude> | |}{{#ifexpr:{{PAGENAME}} >9999|[[Category:Far future]]|[[Category:{{nth|{{#expr:(({{PAGENAME}}-({{PAGENAME}} mod 100))/100)+1}}}} century years]][[Category:{{#expr: {{PAGENAME}} - ({{PAGENAME}} mod 10)}}s]]|}} </includeonly><noinclude>[[Category:Timeline templates]]</noinclude> |
edits