Difference between revisions of "Template:Time"

From Rigged Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<abbr style="border-bottom: 1px dotted #000; background: #f1f1f1;" title="Eastern Time: {{#expr:{{{1}}}-5}}:{{{2}}}
<abbr style="border-bottom: 1px dotted #000; background: #f1f1f1;" title="Eastern Time: {{#ifexpr: {{#expr:{{{1}}}-5}} >12}}} | {{#expr: {{#expr:{{{1}}}-5}}-12}}:{{{2}}}pm|{{#expr:{{{1}}}-5}}:{{{2}}}}}
&#13;Pacific Time: {{#expr:17-8}}:{{{2}}}">{{{1}}}:{{{2}}}</abbr>
&#13;Pacific Time: {{#expr:{{{1}}}-8}}:{{{2}}}">{{{1}}}:{{{2}}}</abbr>


<noinclude>
<noinclude>
Line 9: Line 9:
<pre>{{Time|17|30}}</pre>
<pre>{{Time|17|30}}</pre>
1st variable is the hour and 2nd is the minute (in UTC)</noinclude>
1st variable is the hour and 2nd is the minute (in UTC)</noinclude>
{{#ifexpr: {{{1}}} > 12|{{{1}}}-12|{{{1}}}}}

Revision as of 20:36, 7 February 2014

<abbr style="border-bottom: 1px dotted #000; background: #f1f1f1;" title="Eastern Time: Expression error: Unexpected < operator.} | Expression error: Unexpected < operator.:{{{2}}}pm|Expression error: Unrecognized punctuation character "{".:{{{2}}}}} &#13;Pacific Time: Expression error: Unrecognized punctuation character "{".:{{{2}}}">{{{1}}}:{{{2}}}

Usage:

To show time zones on hover

Parameters

{{Time|17|30}}

1st variable is the hour and 2nd is the minute (in UTC)

Expression error: Unrecognized punctuation character "{".