Difference between revisions of "Template:Expedition archive nav"

From Geohashing
imported>Relet
(+auto category (testing))
Line 2: Line 2:
 
<big>'''[[Expedition Archives]]'''</big>
 
<big>'''[[Expedition Archives]]'''</big>
  
[[{{ #time: Y-m | {{PAGENAME}}-01 last month }} | {{ #time: F Y | {{PAGENAME}}-01 last month }}]] | '''{{ #time: F Y | {{PAGENAME}}-01 }}''' | [[{{ #time: Y-m | {{PAGENAME}}-01 next month }} | {{ #time: F Y | {{PAGENAME}}-01 next month }}]]
+
[[{{ #time: Y-m | {{PAGENAME}}-01 last month }} | {{ #time: F Y | {{PAGENAME}}-01 last month }}]] | '''{{ #time: F Y | {{PAGENAME}}-01 }}''' | {{#ifexpr:{{#time:U|6 days}}>{{#time:U|{{PAGENAME}}-01 next month}}|[[{{ #time: Y-m | {{PAGENAME}}-01 next month }} | {{ #time: F Y | {{PAGENAME}}-01 next month }}]]|{{ #time: F Y | {{PAGENAME}}-01 next month }}}}
  
 
<small>'''See also:''' [[:Category:Meetup in {{PAGENAME}}]]</small>
 
<small>'''See also:''' [[:Category:Meetup in {{PAGENAME}}]]</small>

Revision as of 23:30, 3 March 2020

Usage

{{expedition archive nav}}
  • For use on Expedition Archive pages, such as 2008-05.
  • Links and link names generated automatically from the page name, which must be in YYYY-MM format.