Template:Event dates: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(4 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
     |
     |
     |{{!}} {{#time: g{{#switch: {{#time: i|{{{Date Start|}}}}}||0|00=a|#default=:ia}}|{{{Date Start|}}}}}–{{#time: g{{#switch: {{#time: i|{{{Date Start|}}}}}||0|00=a|#default=:ia}}|{{{Date End|}}}}}
     |{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}|{{#time: Ymd|{{{Date End|}}}}}
        |{{#time: g{{#ifexpr: 0{{#time:i|{{{Date Start|}}}}} = 0 ||:i}}a|{{{Date Start|}}}}}–{{#time: g{{#ifexpr: 0{{#time:i|{{{Date End|}}}}} = 0 ||:i}}a|{{{Date End|}}}}}
      }}
   }}
   }}
  |{{#time: m.d.y|{{{Date Start|}}}}}–{{#time: m.d.y|{{{Date End|}}}}}
}}
}}

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