Difference between revisions of "Template:Date nav"

From Geohashing
imported>Tjtrumpet2323
m
imported>Tjtrumpet2323
Line 1: Line 1:
 
<includeonly><div style='margin:2px 10% 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;'>
{{ #time: l j F Y | {{PAGENAME}} - 1 day }} | '''{{ #time: l, F j, Y | {{PAGENAME}} }}''' | {{ #if: {{{nextday|}}} | [[{{{nextday}}}]] | ''(no next)'' }}
+
[[{{ #time: Y-m-d | {{PAGENAME}} - 1 day }} | {{ #time: l, F j, Y | {{PAGENAME}} - 1 day }}]] | '''{{ #time: l, F j, Y | {{PAGENAME}} }}''' | [[{{ #time: Y-m-d | {{PAGENAME}} + 1 day }} | {{ #time: l, F j, Y | {{PAGENAME}} + 1 day }}]]
  
 
<small>'''See also:''' [[Expedition Archives]]</small>
 
<small>'''See also:''' [[Expedition Archives]]</small>
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
 
== Usage ==
 
== Usage ==
  <nowiki>{{date navigation
+
  <nowiki>{{date navigation}}</nowiki>
| prevday = 2008-05-23
+
* Links and link names generated automatically from the page name.
| nextday = 2008-05-25
 
}}</nowiki>
 
* 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>

Revision as of 19:39, 24 May 2008

Usage

{{date navigation}}
  • Links and link names generated automatically from the page name.