Difference between revisions of "Template:Dates"

From EncyclopAtys

Jump to: navigation, search
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#iferror: {{#expr: {{PAGENAME}} }} | Error: that page is not a number |}}
+
<includeonly>{{#iferror: {{#expr: {{PAGENAME}} }} | {{tape|palette=KO|text=<big>'''Error: the pagename is not a number'''</big>}} |
{| 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}}]]''' | {{small|{{#expr:{{PAGENAME}}-9}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}-9}} | '''[[{{#expr:{{PAGENAME}}-9}}]]''' | {{small|{{#expr:{{PAGENAME}}-9}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}-8}} | '''[[{{#expr:{{PAGENAME}}-8}}]]''' | {{small|{{#expr:{{PAGENAME}}-8}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}-8}} | '''[[{{#expr:{{PAGENAME}}-8}}]]''' | {{small|{{#expr:{{PAGENAME}}-8}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}-7}} | '''[[{{#expr:{{PAGENAME}}-7}}]]''' | {{small|{{#expr:{{PAGENAME}}-7}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}-7}} | '''[[{{#expr:{{PAGENAME}}-7}}]]''' | {{small|{{#expr:{{PAGENAME}}-7}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}-6}} | '''[[{{#expr:{{PAGENAME}}-6}}]]''' | {{small|{{#expr:{{PAGENAME}}-6}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}-6}} | '''[[{{#expr:{{PAGENAME}}-6}}]]''' | {{small|{{#expr:{{PAGENAME}}-6}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}-5}} | '''[[{{#expr:{{PAGENAME}}-5}}]]''' | {{small|{{#expr:{{PAGENAME}}-5}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}-5}} | '''[[{{#expr:{{PAGENAME}}-5}}]]''' | {{small|{{#expr:{{PAGENAME}}-5}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}-4}} | '''[[{{#expr:{{PAGENAME}}-4}}]]''' | {{small|{{#expr:{{PAGENAME}}-4}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}-4}} | '''[[{{#expr:{{PAGENAME}}-4}}]]''' | {{small|{{#expr:{{PAGENAME}}-4}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}-3}} | '''[[{{#expr:{{PAGENAME}}-3}}]]''' | {{small|{{#expr:{{PAGENAME}}-3}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}-3}} | '''[[{{#expr:{{PAGENAME}}-3}}]]''' | {{small|{{#expr:{{PAGENAME}}-3}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}-2}} | '''[[{{#expr:{{PAGENAME}}-2}}]]''' | {{small|{{#expr:{{PAGENAME}}-2}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}-2}} | '''[[{{#expr:{{PAGENAME}}-2}}]]''' | {{small|{{#expr:{{PAGENAME}}-2}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}-1}} | '''[[{{#expr:{{PAGENAME}}-1}}]]''' | {{small|{{#expr:{{PAGENAME}}-1}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}-1}} | '''[[{{#expr:{{PAGENAME}}-1}}]]''' | {{small|{{#expr:{{PAGENAME}}-1}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}-0}} | '''[[{{#expr:{{PAGENAME}}-0}}]]''' | {{small|{{#expr:{{PAGENAME}}-0}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}-0}} | '''[[{{#expr:{{PAGENAME}}-0}}]]''' | {{small|{{#expr:{{PAGENAME}}-0}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}+1}} | '''[[{{#expr:{{PAGENAME}}+1}}]]''' | {{small|{{#expr:{{PAGENAME}}+1}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}+1}} | '''[[{{#expr:{{PAGENAME}}+1}}]]''' | {{small|{{#expr:{{PAGENAME}}+1}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}+2}} | '''[[{{#expr:{{PAGENAME}}+2}}]]''' | {{small|{{#expr:{{PAGENAME}}+2}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}+2}} | '''[[{{#expr:{{PAGENAME}}+2}}]]''' | {{small|{{#expr:{{PAGENAME}}+2}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}+3}} | '''[[{{#expr:{{PAGENAME}}+3}}]]''' | {{small|{{#expr:{{PAGENAME}}+3}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}+3}} | '''[[{{#expr:{{PAGENAME}}+3}}]]''' | {{small|{{#expr:{{PAGENAME}}+3}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}+4}} | '''[[{{#expr:{{PAGENAME}}+4}}]]''' | {{small|{{#expr:{{PAGENAME}}+4}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}+4}} | '''[[{{#expr:{{PAGENAME}}+4}}]]''' | {{small|{{#expr:{{PAGENAME}}+4}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}+5}} | '''[[{{#expr:{{PAGENAME}}+5}}]]''' | {{small|{{#expr:{{PAGENAME}}+5}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}+5}} | '''[[{{#expr:{{PAGENAME}}+5}}]]''' | {{small|{{#expr:{{PAGENAME}}+5}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}+6}} | '''[[{{#expr:{{PAGENAME}}+6}}]]''' | {{small|{{#expr:{{PAGENAME}}+6}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}+6}} | '''[[{{#expr:{{PAGENAME}}+6}}]]''' | {{small|{{#expr:{{PAGENAME}}+6}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}+7}} | '''[[{{#expr:{{PAGENAME}}+7}}]]''' | {{small|{{#expr:{{PAGENAME}}+7}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}+7}} | '''[[{{#expr:{{PAGENAME}}+7}}]]''' | {{small|{{#expr:{{PAGENAME}}+7}} }} }}
||{{#ifexist: {{#expr:{{PAGENAME}}+8}} | '''[[{{#expr:{{PAGENAME}}+8}}]]''' | {{small|{{#expr:{{PAGENAME}}+8}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}+8}} | '''[[{{#expr:{{PAGENAME}}+8}}]]''' | {{small|{{#expr:{{PAGENAME}}+8}} }} }}                                                                                                          
||{{#ifexist: {{#expr:{{PAGENAME}}+9}} | '''[[{{#expr:{{PAGENAME}}+9}}]]''' | {{small|{{#expr:{{PAGENAME}}+9}} }} }}
+
{{!}}{{!}}{{#ifexist: {{#expr:{{PAGENAME}}+9}} | '''[[{{#expr:{{PAGENAME}}+9}}]]''' | {{small|{{#expr:{{PAGENAME}}+9}} }} }}
|}</includeonly>
+
{{!}}} }}</includeonly>
 +
 
 
<noinclude>
 
<noinclude>
 
{{Trad  
 
{{Trad  
|DE =Vorlage|Daten
+
|DE =Vorlage:Daten
 
|EN =Template:Dates
 
|EN =Template:Dates
 
|ES =Plantilla:Fechas
 
|ES =Plantilla:Fechas
Line 29: Line 30:
 
|RU =Шаблон:Даты
 
|RU =Шаблон:Даты
 
}}
 
}}
 +
<!-- <code><nowiki>{{Dates}}</nowiki></code> sans paramètres, s'utilise uniquement dans les pages dont le nom est une date, sinon il affiche {{Dates}} -->
 +
 
{{ {{FULLPAGENAME}}/Documentation}}
 
{{ {{FULLPAGENAME}}/Documentation}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 20:22, 4 July 2019


de:Vorlage:Daten
en:Template:Dates
es:Plantilla:Fechas
fr:Modèle:Dates
ru:Шаблон:Даты
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Dorothée, 2019-07-04)


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