Template:Event dates: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexpr: {{#time: Ymd|{{{Date Start|}}}}} = {{#time: Ymd|{{{Date End|}}}}}  
{{#if: {{{Date Start|}}}{{{Date End|}}}
   |{{#time: F j, Y|{{{Date Start|}}}}} {{#ifeq: {{#time: H:i|{{{Date Start|}}}}}-{{#time: H:i|{{{Date End|}}}}}
   |{{#ifeq: {{#time: H:i|{{{Date Start|}}}}}-{{#time: H:i|{{{Date End|}}}}}
     |00:00-00:00
     |00:00-00:00
     |
     |
     |{{#ifexpr: {{#time: Hi|{{{Date Start|}}}}} < {{#time: Hi|{{{Date Start|}}}}}
     |{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}|{{#time: Ymd|{{{Date End|}}}}}
         | {{!}} {{#time: g{{#switch: {{#time: i|{{{Date Start|}}}}}||0|00=a|#default=&#58;ia}}|{{{Date Start|}}}}}&ndash;{{#time: g{{#switch: {{#time: i|{{{Date Start|}}}}}||0|00=a|#default=&#58;ia}}|{{{Date End|}}}}}
         |{{#time: g{{#ifexpr: 0{{#time:i|{{{Date Start|}}}}} = 0 ||&#58;i}}a|{{{Date Start|}}}}}&ndash;{{#time: g{{#ifexpr: 0{{#time:i|{{{Date End|}}}}} = 0 ||&#58;i}}a|{{{Date End|}}}}}
        | {{!}} {{#time: g{{#switch: {{#time: i|{{{Date Start|}}}}}||0|00=a|#default=&#58;ia}}|{{{Date Start|}}}}}
       }}
       }}
   }}
   }}
  |{{#time: m.d.y|{{{Date Start|}}}}}&ndash;{{#time: m.d.y|{{{Date End|}}}}}
}}
}}

Latest revision as of 20:37, February 10, 2024