Difference between revisions of "Template:Date nav"

From Geohashing
imported>Tjtrumpet2323
(New page: <includeonly><div style='margin:2px 10% 2px; padding: 2px; border: 1px solid #aaa; background: #f9f9f9; text-align: center;'> {{ #if: {{{prevday|}}} | [[{{{prevday}}}]] | ''(no previous)''...)
 
imported>Tjtrumpet2323
m
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; padding: 2px; border: 1px solid #aaa; background: #f9f9f9; text-align: center;'>
{{ #if: {{{prevday|}}} | [[{{{prevday}}}]] | ''(no previous)'' }} | '''{{{today}}}''' | {{ #if: {{{nextday|}}} | [[{{{nextday}}}]] | ''(no next)'' }}
+
{{ #if: {{{prevday|}}} | [[{{{prevday}}}]] | ''(no previous)'' }} | '''{{PAGENAME}}''' | {{ #if: {{{nextday|}}} | [[{{{nextday}}}]] | ''(no next)'' }}
  
 
<small>'''See also:''' [[Expedition Archives]]</small>
 
<small>'''See also:''' [[Expedition Archives]]</small>
Line 7: Line 7:
 
  <nowiki>{{date navigation
 
  <nowiki>{{date navigation
 
| prevday = 2008-05-23
 
| prevday = 2008-05-23
| today = 2008-05-24
 
 
| nextday = 2008-05-25
 
| nextday = 2008-05-25
 
}}</nowiki>
 
}}</nowiki>
* Only '''today''' is required; however, without the others, no links to consecutive days are made.
+
* 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 ==
 
== 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)
 
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 18:07, 24 May 2008

Usage

{{date navigation
| prevday = 2008-05-23
| nextday = 2008-05-25
}}
  • 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. --Tim P 18:05, 24 May 2008 (UTC)