[go: nahoru, domu]

Template:End date: Difference between revisions

Content deleted Content added
Made it possible to suppress display of time, so it can be used for dates without looking odd yet still generate valid microformats
Adding "itvend" as a class, which is needed for Infobox television date validation
 
(2 intermediate revisions by 2 users not shown)
Line 1:
<includeonly>{{#if:{{{notime|}}}||{{#if: {{{4|}}}
|{{#if: {{{5|}}}
|{{padleft:{{{4}}}|2|0}}:{{padleft:{{{5}}}|2|0}}{{#if: {{{6|}}}
|&#58;{{padleft:{{{6}}}|2|0}} }},&#32;}} }} }}<!--ABOVE FOR TIME; BELOW FOR DATE
-->{{#if: {{{1|}}}
|{{#if: {{{2|}}}
Line 8:
|{{#if:{{{df|}}}|{{#expr:{{{3}}}}}&nbsp;{{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}}&nbsp;{{#expr:{{{3}}}}},}}&nbsp;{{{1}}}|{{MONTHNAME|{{{2}}}}}&nbsp;{{{1}}}}}|{{{1}}}}}}}{{#if: {{{7|}}}
|&#32;({{#ifeq: {{{7}}}|Z|UTC|{{{7}}}}})}}<!-- BELOW FOR hCalendar
--><span style="display:none">&#160;(<span class="dtend itvend">{{#if: {{{1|}}}
| {{{1}}}{{#if: {{{2|}}}
| -{{padleft:{{{2}}}|2|0}}{{#if: {{{3|}}}