Difference between revisions of "Template:Recent Images"

From Geohashing
imported>Tjtrumpet2323
m
imported>Tjtrumpet2323
m (show fourth day prior if current day (UTC) does not yet exist)
Line 1: Line 1:
 
<noinclude>== Usage ==
 
<noinclude>== Usage ==
<code><nowiki>{{Recent Images}}</nowiki></code> transcludes Expedition Image templates for four days: the current day (UTC) and the three prior.  Automatically updates daily at 00:00 UTC (reasonably mid-day for the easternmost time zones, just in time to accept pictures from early afternoon meetups).
+
<code><nowiki>{{Recent Images}}</nowiki></code> transcludes Expedition Image templates for four days: the current day (UTC) and the three prior.  If the gallery page for the current day (UTC) does not exist, it also shows a fourth day prior.  Automatically updates daily at 00:00 UTC (reasonably mid-day for the easternmost time zones, just in time to accept pictures from early afternoon meetups).
  
 
== Example ==
 
== Example ==
</noinclude>{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}}}} }}
+
</noinclude>{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}}}}}}
{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -1 day}} }}
+
{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -1 day}}}}
{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -2 days}} }}
+
{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -2 days}}}}
{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -3 days}} }}
+
{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -3 days}}}}
 +
{{ #ifexist: Template:Expedition Images/{{#time:Y-m-d|{{CURRENTTIMESTAMP}}}}
 +
|
 +
| {{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -4 days}}}}
 +
}}

Revision as of 03:52, 22 June 2008

Usage

{{Recent Images}} transcludes Expedition Image templates for four days: the current day (UTC) and the three prior. If the gallery page for the current day (UTC) does not exist, it also shows a fourth day prior. Automatically updates daily at 00:00 UTC (reasonably mid-day for the easternmost time zones, just in time to accept pictures from early afternoon meetups).

Example

Start the gallery for Sunday 16 June. (how?)
Start the gallery for Saturday 15 June. (how?)
Start the gallery for Friday 14 June. (how?)
Start the gallery for Thursday 13 June. (how?)
Start the gallery for Wednesday 12 June. (how?)