Template:Potd: Difference between revisions

Template page
(initial creation)
 
(localurl -> canonicalurl)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div align="center">
<div align="center">
{| id="Potd" class="messagebox" style="width: {{{width|400}}}px; text-align: center;"
{| id="Potd" class="messagebox" style="width: {{{width|400}}}px; text-align: center;"
! colspan="3" class="infoboxheader" | [[BWM:Potd|View Picture of the Day Project]]
! colspan="3" class="infoboxheader" | [[BW:Potd|View Picture of the Day Project]]
|-
|-
| colspan="3" cellpadding="0" | {{#ifexist:Potd:{{#time: m-d}}
| colspan="3" cellpadding="0" | {{#ifexist:Potd:{{#time: m-d}}
Line 8: Line 8:
   |<!-- ELSE: --> Battlestar Wiki - Picture of the Day
   |<!-- ELSE: --> Battlestar Wiki - Picture of the Day
}}]]
}}]]
| <!-- NO Potd: --> <div class="plainlinks">([{{fullurl:Potd:{{#time: m-d}}|action=edit}} Create a Potd])</div>
| <!-- NO Potd: --> <div class="plainlinks">([{{canonicalurl:Potd:{{#time: m-d}}|action=edit}} Create a Potd])</div>
}}
}}
|-
|-
| {{#ifexist:Potd:{{#time: m-d | -1 day}}
| style="white-space: nowrap;" | {{#ifexist:Potd:{{#time: m-d | -1 day}}
| <!-- Potd EXIST: --> <small>[[:Image:{{Potd:{{#time: m-d | -1 day}}|< {{#time: m-d | -1 day}}}}]]</small>
| <!-- Potd EXIST: --> <small>[[:Image:{{Potd:{{#time: m-d | -1 day}}}}|< {{#time: m-d | -1 day}}]]</small>
| <!-- NO Potd: --> <small><div class="plainlinks">[{{fullurl:Potd:{{#time: m-d | -1 day}}|action=edit}} < {{#time: m-d | -1 day}}]</div></small>
| <!-- NO Potd: --> <small><div class="plainlinks">[{{canonicalurl:Potd:{{#time: m-d | -1 day}}|action=edit}} < {{#time: m-d | -1 day}}]</div></small>
}}
}}
| {{#ifexist:Potd:{{#time: m-d}}/Caption
| {{#ifexist:Potd:{{#time: m-d}}/Caption
   |<!-- THEN: --> {{Potd:{{#time: m-d}}/Caption}}
   |<!-- THEN: --> {{Potd:{{#time: m-d}}/Caption}}
   |<!-- ELSE: --> Battlestar Wiki - Picture of the Day <div class="plainlinks">([{{fullurl:Potd:{{#time: m-d}}/Caption|action=edit}} create caption])</div>
   |<!-- ELSE: --> Battlestar Wiki - Picture of the Day <div class="plainlinks">([{{canonicalurl:Potd:{{#time: m-d}}/Caption|action=edit}} create caption])</div>
}}
}}
| {{#ifexist:Potd:{{#time: m-d | +1 day}}
| style="white-space: nowrap;" | {{#ifexist:Potd:{{#time: m-d | +1 day}}
| <!-- Potd EXIST: --> <small>[[:Image:{{Potd:{{#time: m-d | +1 day}}}}|{{#time: m-d | +1 day}} >]]</small>
| <!-- Potd EXIST: --> <small>[[:Image:{{Potd:{{#time: m-d | +1 day}}}}|{{#time: m-d | +1 day}} >]]</small>
| <!-- NO Potd: --> <small><div class="plainlinks">[{{fullurl:Potd:{{#time: m-d | +1 day}}|action=edit}} {{#time: m-d | +1 day}} >]</div></small>
| <!-- NO Potd: --> <small><div class="plainlinks">[{{canonicalurl:Potd:{{#time: m-d | +1 day}}|action=edit}} {{#time: m-d | +1 day}} >]</div></small>
}}
}}
|}
|}
</div>
</div>

Latest revision as of 04:40, 24 April 2020