Difference between revisions of "Template:Date nav"

From Geohashing
imported>Tjtrumpet2323
m
m
Line 2: Line 2:
 
<big>'''[[{{ #time: Y-m | {{PAGENAME}} }}|Expedition Archives from {{ #time: F Y | {{PAGENAME}} }}]]'''</big>
 
<big>'''[[{{ #time: Y-m | {{PAGENAME}} }}|Expedition Archives from {{ #time: F Y | {{PAGENAME}} }}]]'''</big>
  
[[{{ #time: Y-m-d | {{PAGENAME}} - 1 day }} | {{ #time: l j F Y | {{PAGENAME}} - 1 day }}]] | '''{{ #time: l j F Y | {{PAGENAME}} }}''' | [[{{ #time: Y-m-d | {{PAGENAME}} + 1 day }} | {{ #time: l j F Y | {{PAGENAME}} + 1 day }}]]
+
{{#ifexpr:{{#time:U|@1211327999}}<{{#time:U|{{PAGENAME}} - 1 day}}|[[{{ #time: Y-m-d | {{PAGENAME}} - 1 day }} | {{ #time: l j F Y | {{PAGENAME}} - 1 day }}]]|{{ #time: l j F Y | {{PAGENAME}} - 1 day }}}} | '''{{ #time: l j F Y | {{PAGENAME}} }}''' | {{#ifexpr:{{#time:U|@1211327999}}<{{#time:U|{{PAGENAME}} + 1 day}} and {{#time:U|6 days}}>{{#time:U|{{PAGENAME}} + 1 day}}|[[{{ #time: Y-m-d | {{PAGENAME}} + 1 day }} | {{ #time: l j F Y | {{PAGENAME}} + 1 day }}]]|{{ #time: l j F Y | {{PAGENAME}} + 1 day }}}}
  
 
<small>'''See also:''' [[:Category:Meetup on {{PAGENAME}}]]</small>
 
<small>'''See also:''' [[:Category:Meetup on {{PAGENAME}}]]</small>

Revision as of 00:09, 4 March 2020

Usage

{{date nav}} 
  • For use navigating amongst date pages, such as 2008-05-24.
  • Links and link names generated automatically from the page name, which must be in YYYY-MM-DD format.