更多语言
更多操作
删除的内容 添加的内容
wikipedia tinkering |
trying with simple comparison to current year (not +10 years) |
||
第8行: | 第8行: | ||
|{{#ifexpr:{{PAGENAME}} > 9999| |previous year: [[{{{1|{{#expr:{{PAGENAME}}-1}}}}}]] next year: [[{{{2|{{#expr:{{PAGENAME}}+1}}}}}]] |
|{{#ifexpr:{{PAGENAME}} > 9999| |previous year: [[{{{1|{{#expr:{{PAGENAME}}-1}}}}}]] next year: [[{{{2|{{#expr:{{PAGENAME}}+1}}}}}]] |
||
|- |
|- |
||
|{{#ifexpr:{{PAGENAME}}< |
|{{#ifexpr:{{PAGENAME}} < {{CURRENTYEAR}}|<div style="margin-left: 0px;margin-top:5px;font-size:100%;">'''[[Wikipedia:{{{1|{{PAGENAME}}}}}|{{{2|{{PAGENAME}}}}}]]'''</div>||}} |
||
}} |
}} |
||
|}{{#ifexpr:{{PAGENAME} |
|}{{#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:Template sandbox]]</noinclude> |
2010年4月24日 (六) 21:27的版本
此文档嵌入自Template:YearNav/doc。