Difference between revisions of "Template:Expedition archive nav"

From Geohashing
imported>Tjtrumpet2323
imported>Tjtrumpet2323
m
Line 2: Line 2:
 
<big>'''[[Expedition Archives]]'''</big>
 
<big>'''[[Expedition Archives]]'''</big>
  
{{ #if: {{{prevmonth|}}} | [[Expedition Archives/{{{prevmonth}}}|{{{prevmonth}}}]] | ''(no previous)'' }} | '''{{{currentmonth}}}''' | {{ #if: {{{nextmonth|}}} | [[Expedition Archives/{{{nextmonth}}}|{{{nextmonth}}}]] | ''(no next)'' }}
+
[[{{ #time: Y-m | {{PAGENAME}} - 1 month }} | {{ #time: F Y | {{PAGENAME}} - 1 month }}]] | '''{{ #time: F Y | {{PAGENAME}} }}''' | [[{{ #time: Y-m | {{PAGENAME}} + 1 month }} | {{ #time: F Y | {{PAGENAME}} + 1 month }}]]
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
 
== Usage ==
 
== Usage ==
  <nowiki>{{expeditionarchive
+
  <nowiki>{{expedition archive nav}}</nowiki>
| prevmonth = April 2008
+
* For use on Expedition Archive pages.
| currentmonth = May 2008
+
* Links are generated based on page name.
| nextmonth = June 2008
 
}}</nowiki>
 
* Only '''currentmonth''' is required; however, without the others, no links to consecutive months 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]] 01:18, 24 May 2008 (UTC)
 
 
</noinclude>
 
</noinclude>

Revision as of 20:03, 24 May 2008

Usage

{{expedition archive nav}}
  • For use on Expedition Archive pages.
  • Links are generated based on page name.