Difference between revisions of "Template:Date nav"

From Geohashing
imported>Tjtrumpet2323
m
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; border: 1px solid #aaa; background: #f9f9f9; text-align: center;'>
 
{{ #if: {{{prevday|}}} | [[{{{prevday}}}]] | ''(no previous)'' }} | '''{{PAGENAME}}''' | {{ #if: {{{nextday|}}} | [[{{{nextday}}}]] | ''(no next)'' }}
 
{{ #if: {{{prevday|}}} | [[{{{prevday}}}]] | ''(no previous)'' }} | '''{{PAGENAME}}''' | {{ #if: {{{nextday|}}} | [[{{{nextday}}}]] | ''(no next)'' }}
  

Revision as of 19:14, 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)