Template:Event dates: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
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
     |
     |{{#ifeq: {{#time: Ymd|{{{Date Start|}}}}}|{{#time: Ymd|{{{Date End|}}}}}
    |{{!}} {{#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|}}}}}
        |{{#time: g:ia|{{{Date Start|}}}}}–{{#time: g:ia|{{{Date End|}}}}}
      }}
   }}
   }}
  |{{#time: m.d.y|{{{Date Start|}}}}}–{{#time: m.d.y|{{{Date End|}}}}}
}}
}}

Revision as of 20:32, February 10, 2024