2,875
edits
(Prefer template instead of module.) |
No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
Definition of variables-->{{#vardefine:Time|{{formatnum:{{{1|}}}|R}}}}{{#vardefine:Days|{{#expr:floor({{#var:Time}} / 86400)}}}}{{#vardefine:Time|{{#expr:{{#var:Time}} mod 86400}}}}{{#vardefine:Hours|{{#expr:floor({{#var:Time}} / 3600)}}}}{{#vardefine:Time|{{#expr:{{#var:Time}} mod 3600}}}}{{#vardefine:Minutes|{{#expr:floor({{#var:Time}} / 60)}}}}{{#vardefine:Time|{{#expr:{{#var:Time}} mod 60}}}}{{#vardefine:Seconds|{{#var:Time}}}}<!-- | Definition of variables-->{{#vardefine:Time|{{formatnum:{{{1|}}}|R}}}}{{#vardefine:Days|{{#expr:floor({{#var:Time}} / 86400)}}}}{{#vardefine:Time|{{#expr:{{#var:Time}} mod 86400}}}}{{#vardefine:Hours|{{#expr:floor({{#var:Time}} / 3600)}}}}{{#vardefine:Time|{{#expr:{{#var:Time}} mod 3600}}}}{{#vardefine:Minutes|{{#expr:floor({{#var:Time}} / 60)}}}}{{#vardefine:Time|{{#expr:{{#var:Time}} mod 60}}}}{{#vardefine:Seconds|{{#var:Time}}}}<!-- | ||
Output of template into x day(s), hh:mm:ss--> | Output of template into x day(s), hh:mm:ss--> | ||
{{#ifexpr:{{#var:Days}} > 0|{{#var:Days}} day{{#ifexpr:{{#var:Days}}<>1|s}}, }}{{#ifexpr:{{#var:Hours}} < 10|0{{#var:Hours}}|{{#var:Hours}}}}:{{#ifexpr:{{#var:Minutes}} < 10|0{{#var:Minutes}}|{{#var:Minutes}}}}:{{#ifexpr:{{#var:Seconds}} < 10|0{{#var:Seconds}}|{{#var:Seconds}}}}</includeonly></onlyinclude><noinclude>{{/doc}}</noinclude> | {{#ifexpr:{{#var:Days}} > 0|{{#var:Days}} day{{#ifexpr:{{#var:Days}}<>1|s}}, }}{{#ifexpr:{{#var:Hours}} < 10|0{{#var:Hours}}|{{#var:Hours}}}}:{{#ifexpr:{{#var:Minutes}} < 10|0{{#var:Minutes}}|{{#var:Minutes}}}}:{{#ifexpr:{{#var:Seconds}} < 10|0{{#var:Seconds}}|{{#var:Seconds}}}}</includeonly></onlyinclude><noinclude>{{/doc}}</noinclude> |
edits