Difference between revisions of "Template:Date nav"

From Geohashing
imported>Tjtrumpet2323
m
 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div style='margin:2px 10% 2px; padding: 2px; border: 1px solid #aaa; background: #f9f9f9; text-align: center;'>
+
<includeonly><div style='margin:2px 10% 2px; border: 1px solid #aaa; background: #f9f9f9; text-align: center;'>
{{ #if: {{{prevday|}}} | [[{{{prevday}}}]] | ''(no previous)'' }} | '''{{PAGENAME}}''' | {{ #if: {{{nextday|}}} | [[{{{nextday}}}]] | ''(no next)'' }}
+
<big>'''{{#ifexpr:1211327999<{{#time:U|{{#time:Y-m-01|{{PAGENAME}}}}}} and {{#time:U|9 hours 30 minutes}}>{{#time:U|{{#time:Y-m-01|{{PAGENAME}}}}}}|[[{{ #time: Y-m | {{PAGENAME}} }}|Expedition Archives from {{ #time: F Y | {{PAGENAME}} }}]]|Expedition Archives from {{ #time: F Y | {{PAGENAME}} }}}}'''</big>
  
<small>'''See also:''' [[Expedition Archives]]</small>
+
{{#ifexpr:1211327999<{{#time:U|{{PAGENAME}} - 1 day}} and {{#time:U|9 hours 30 minutes}}>{{#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:1211327999<{{#time:U|{{PAGENAME}} + 1 day}} and {{#time:U|9 hours 30 minutes}}>{{#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 }}}}
</div></includeonly><noinclude>
+
 
 +
<small>'''See also:''' [[:Category:Meetup on {{PAGENAME}}]]</small>
 +
</div> [[Category:Day of {{ #time: F Y | {{PAGENAME}} }}]] [[Category:Meetup on {{PAGENAME}}| ]] __NOTOC__ </includeonly><noinclude>
 
== Usage ==
 
== Usage ==
  <nowiki>{{date navigation
+
{{intricate}}
| prevday = 2008-05-23
+
  <nowiki>{{date nav}}</nowiki>  
| nextday = 2008-05-25
+
* For use navigating amongst date pages, such as [[2008-05-24]].
}}</nowiki>
+
* Links and link names generated automatically from the page name, which must be in YYYY-MM-DD format.
* Value for today is automatically generated from the page name.  '''prevday''' and '''nextday''' are optional; however, without them, no links to consecutive days are made.
 
 
 
== Better Way ==
 
There's got to be a way to use variables to get this to work infinitely.  Anyone who wants to try is welcome.  --[[User:Tjtrumpet2323|Tim P]] 18:05, 24 May 2008 (UTC)
 
 
</noinclude>
 
</noinclude>

Latest revision as of 22:39, 17 December 2023

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.