Template:Event dates: Difference between revisions

From MoHA Wiki
(Created page with "{{#ifexpr: {{#time: Ymd|{{{Date Start|}}}}} = {{#time: Ymd|{{{Date End|}}}}} |{{#time: F j, Y|{{{Date Start|}}}}} {{#ifeq: {{#time: H:i|{{{Date Start|}}}}}-{{#time: H:i|{{{Date End|}}}}} |00:00-00:00 | |{{#ifexpr: {{#time: Hi|{{{Date Start|}}}}} < {{#time: Hi|{{{Date Start|}}}}} | {{!}} {{#time: ga|{{{Date Start|}}}}}–{{#time: ga|{{{Date End|}}}}} | {{!}} {{#time: ga|{{{Date Start|}}}}} }} }} |{{#arraymap: {{{Date Start|...")
 
No edit summary
 
(12 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: ga|{{{Date Start|}}}}}&ndash;{{#time: ga|{{{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: ga|{{{Date Start|}}}}}
       }}
       }}
  }}
  |{{#arraymap: {{{Date Start|}}}, {{{Date End|}}}
    |,
    |@@@
    |{{#time: m.d.y|@@@}}
    |&ndash;
   }}
   }}
}}
}}

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