Difference between revisions of "Template:Dates"
From EncyclopAtys
m |
|||
Line 1: | Line 1: | ||
<includeonly>{{#iferror: {{#expr: {{PAGENAME}} }} | Error: that page is not a number |}} | <includeonly>{{#iferror: {{#expr: {{PAGENAME}} }} | Error: that page is not a number |}} | ||
{| align=center style="border-style:solid;border-width:1px;border-color:#111111;background-color:#FFEFD4; margin:1em; padding:0 .5em; border: #099 medium outset;border-radius:.5em;background: linear-gradient(to right, #fee , #efe, #eef);" | {| align=center style="border-style:solid;border-width:1px;border-color:#111111;background-color:#FFEFD4; margin:1em; padding:0 .5em; border: #099 medium outset;border-radius:.5em;background: linear-gradient(to right, #fee , #efe, #eef);" | ||
− | ||{{#ifexist: {{#expr:{{PAGENAME}}-9}} | '''[[{{#expr:{{PAGENAME}}-9}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}-9}} | '''[[{{#expr:{{PAGENAME}}-9}}]]''' | {{small|{{#expr:{{PAGENAME}}-9}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}-8}} | '''[[{{#expr:{{PAGENAME}}-8}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}-8}} | '''[[{{#expr:{{PAGENAME}}-8}}]]''' | {{small|{{#expr:{{PAGENAME}}-8}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}-7}} | '''[[{{#expr:{{PAGENAME}}-7}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}-7}} | '''[[{{#expr:{{PAGENAME}}-7}}]]''' | {{small|{{#expr:{{PAGENAME}}-7}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}-6}} | '''[[{{#expr:{{PAGENAME}}-6}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}-6}} | '''[[{{#expr:{{PAGENAME}}-6}}]]''' | {{small|{{#expr:{{PAGENAME}}-6}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}-5}} | '''[[{{#expr:{{PAGENAME}}-5}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}-5}} | '''[[{{#expr:{{PAGENAME}}-5}}]]''' | {{small|{{#expr:{{PAGENAME}}-5}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}-4}} | '''[[{{#expr:{{PAGENAME}}-4}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}-4}} | '''[[{{#expr:{{PAGENAME}}-4}}]]''' | {{small|{{#expr:{{PAGENAME}}-4}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}-3}} | '''[[{{#expr:{{PAGENAME}}-3}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}-3}} | '''[[{{#expr:{{PAGENAME}}-3}}]]''' | {{small|{{#expr:{{PAGENAME}}-3}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}-2}} | '''[[{{#expr:{{PAGENAME}}-2}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}-2}} | '''[[{{#expr:{{PAGENAME}}-2}}]]''' | {{small|{{#expr:{{PAGENAME}}-2}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}-1}} | '''[[{{#expr:{{PAGENAME}}-1}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}-1}} | '''[[{{#expr:{{PAGENAME}}-1}}]]''' | {{small|{{#expr:{{PAGENAME}}-1}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}-0}} | '''[[{{#expr:{{PAGENAME}}-0}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}-0}} | '''[[{{#expr:{{PAGENAME}}-0}}]]''' | {{small|{{#expr:{{PAGENAME}}-0}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}+1}} | '''[[{{#expr:{{PAGENAME}}+1}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}+1}} | '''[[{{#expr:{{PAGENAME}}+1}}]]''' | {{small|{{#expr:{{PAGENAME}}+1}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}+2}} | '''[[{{#expr:{{PAGENAME}}+2}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}+2}} | '''[[{{#expr:{{PAGENAME}}+2}}]]''' | {{small|{{#expr:{{PAGENAME}}+2}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}+3}} | '''[[{{#expr:{{PAGENAME}}+3}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}+3}} | '''[[{{#expr:{{PAGENAME}}+3}}]]''' | {{small|{{#expr:{{PAGENAME}}+3}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}+4}} | '''[[{{#expr:{{PAGENAME}}+4}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}+4}} | '''[[{{#expr:{{PAGENAME}}+4}}]]''' | {{small|{{#expr:{{PAGENAME}}+4}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}+5}} | '''[[{{#expr:{{PAGENAME}}+5}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}+5}} | '''[[{{#expr:{{PAGENAME}}+5}}]]''' | {{small|{{#expr:{{PAGENAME}}+5}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}+6}} | '''[[{{#expr:{{PAGENAME}}+6}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}+6}} | '''[[{{#expr:{{PAGENAME}}+6}}]]''' | {{small|{{#expr:{{PAGENAME}}+6}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}+7}} | '''[[{{#expr:{{PAGENAME}}+7}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}+7}} | '''[[{{#expr:{{PAGENAME}}+7}}]]''' | {{small|{{#expr:{{PAGENAME}}+7}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}+8}} | '''[[{{#expr:{{PAGENAME}}+8}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}+8}} | '''[[{{#expr:{{PAGENAME}}+8}}]]''' | {{small|{{#expr:{{PAGENAME}}+8}} }} }} |
− | ||{{#ifexist: {{#expr:{{PAGENAME}}+9}} | '''[[{{#expr:{{PAGENAME}}+9}}]]''' | {{ | + | ||{{#ifexist: {{#expr:{{PAGENAME}}+9}} | '''[[{{#expr:{{PAGENAME}}+9}}]]''' | {{small|{{#expr:{{PAGENAME}}+9}} }} }} |
|}</includeonly> | |}</includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 16:15, 4 July 2019
Contents
Description
The template Dates, with no parameters, is used only in pages whose name is a date, it allows you to display (normally at the beginning of the page) a chronological navigation palette.
Usage
{{Dates}}
Parameters
- "None
Example
If the page name is 2481
{{Dates}}
- should result in:
2473 | 2473 | 2474 | 2475 | 2476 | 2477 | 2478 | 2479 | 2480 | 2481 | 2482 | 2483 | 2484 | 2485 | 2486 | 2487 | 2488 | 2489 | 2490 |
If the page name is not a number we get:
Error: the pagename is not a number