Difference between revisions of "Template:Recent Images"

From Geohashing
imported>Tjtrumpet2323
m (show fourth day prior if current day (UTC) does not yet exist)
m
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  
 
== Example ==
 
== Example ==
</noinclude>{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}}}}}}
+
</noinclude>{{Expedition Images2|{{#time:Y-m-d|{{CURRENTTIMESTAMP}}}}}}
{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -1 day}}}}
+
{{Expedition Images2|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -1 day}}}}
{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -2 days}}}}
+
{{Expedition Images2|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -2 days}}}}
{{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -3 days}}}}
+
{{Expedition Images2|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -3 days}}}}
{{ #ifexist: Template:Expedition Images/{{#time:Y-m-d|{{CURRENTTIMESTAMP}}}}
+
{{ #ifexist: Template:Expedition Images2/{{#time:Y-m-d|{{CURRENTTIMESTAMP}}}}
 
|
 
|
| {{Expedition Images|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -4 days}}}}
+
| {{Expedition Images2|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} -4 days}}}}
 
}}
 
}}

Latest revision as of 21:35, 2 March 2020

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