Template:Featured image: Difference between revisions

Fixed the template not showing anything due to the offset being in the wrong place
(Added three Pikmin 4 prerelease images from the nominations page.)
(Fixed the template not showing anything due to the offset being in the wrong place)
Line 1: Line 1:
<div style="text-align:center;margin:0.5em 0">
<div style="text-align:center;margin:0.5em 0">
{{#switch:{{#expr:floor({{#time:U}}/86400) mod 127 - 39}}
{{#switch:{{#expr:(floor({{#time:U}}/86400) - 39) mod 127}}
|0=[[File:The Forest Navel HD.jpg|300px]]
|0=[[File:The Forest Navel HD.jpg|300px]]
''A high-definition map of [[The Forest Navel]].''
''A high-definition map of [[The Forest Navel]].''
Line 259: Line 259:
{{clear}}
{{clear}}
==Info==
==Info==
This template shows an image from a list of featured images, automatically switching to the next image in the list each day. It is currently showing image #{{#expr:floor({{#time:U}}/86400) mod 127 - 39 + 1}} out of the 127 in the list.
This template shows an image from a list of featured images, automatically switching to the next image in the list each day. It is currently showing image #{{#expr:(floor({{#time:U}}/86400) - 39) mod 127 + 1}} out of the 127 in the list.


If you think another image should be added to the featured image list, you can nominate it at '''[[Pikipedia:Featured image nominations]]'''. Staff members updating the list should read [[#List changing process|this checklist]].
If you think another image should be added to the featured image list, you can nominate it at '''[[Pikipedia:Featured image nominations]]'''. Staff members updating the list should read [[#List changing process|this checklist]].