Template:Timestamp link: Difference between revisions

From Battlestar Wiki Media
m (dealing with "0" hrs)
(ifexpr)
 
Line 1: Line 1:
<includeonly>{{#if:{{{timestamp}}}|The timestamp of this capture is {{#ifeq:{{#expr:{{{timestamp}}} > 1}}|1|{{#if:{{{timestamp}}}<3600|{{#time:i"m"s"s"|@{{{timestamp}}}}}|{{#time:H"h"i"m"s"s"|@{{{timestamp}}}}}}}|{{{timestamp}}}}}.|The timestamp for this image is unknown. Please supply the time index for this capture.}}{{#ifeq:{{NAMESPACE}}|Image|{{#if:{{{timestamp|}}}|{{void}}|[[Category:Screen captures requiring timestamp]]}}}}</includeonly><noinclude>[[Category:Image tags helper templates|Timestamp link]]</noinclude>
<includeonly>{{#if:{{{timestamp}}}|The timestamp of this capture is {{#ifeq:{{#expr:{{{timestamp}}} > 1}}|1|{{#ifexpr:{{{timestamp}}}<3600|{{#time:i"m"s"s"|@{{{timestamp}}}}}|{{#time:H"h"i"m"s"s"|@{{{timestamp}}}}}}}|{{{timestamp}}}}}.|The timestamp for this image is unknown. Please supply the time index for this capture.}}{{#ifeq:{{NAMESPACE}}|Image|{{#if:{{{timestamp|}}}|{{void}}|[[Category:Screen captures requiring timestamp]]}}}}</includeonly><noinclude>[[Category:Image tags helper templates|Timestamp link]]</noinclude>

Latest revision as of 18:10, 28 January 2024