Template:Open hours: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 7: Line 7:
-->{{#vardefine: whours|{{#switch: {{{Schedule type|}}}
-->{{#vardefine: whours|{{#switch: {{{Schedule type|}}}
   |Day off=Day off
   |Day off=Day off
   |Working day={{#time:ga{{#if:{{{Minutes open from|}}}|{{#ifeq:{{{Minutes open from|}}}|00||i}}}}|{{{Hour open from|}}}:{{{Minutes open from|}}}:00}}&ndash;<!--
   |Working day={{#time:g{{#if:{{{Minutes open from|}}}|{{#ifeq:{{{Minutes open from|}}}|00||:i}}}} a|{{{Hour open from|}}}:{{{Minutes open from|}}}:00}}&ndash;<!--
             -->{{#time:ga{{#if:{{{Minutes open to  |}}}|{{#ifeq:{{{Minutes open to  |}}}|00||i}}}}|{{{Hour open to  |}}}:{{{Minutes open to  |}}}:00}}
             -->{{#time:g{{#if:{{{Minutes open to  |}}}|{{#ifeq:{{{Minutes open to  |}}}|00||:i}}}} a|{{{Hour open to  |}}}:{{{Minutes open to  |}}}:00}}
   |Working day with break={{#time:ga{{#if:{{{Minutes open from |}}}|{{#ifeq:{{{Minutes open from |}}}|00||i}}}}|{{{Hour open from |}}}:{{{Minutes open from |}}}:00}}&ndash;<!--
   |Working day with break={{#time:g{{#if:{{{Minutes open from |}}}|{{#ifeq:{{{Minutes open from |}}}|00||:i}}}} a|{{{Hour open from |}}}:{{{Minutes open from |}}}:00}}&ndash;<!--
                       -->{{#time:ga{{#if:{{{Minutes break from|}}}|{{#ifeq:{{{Minutes break from|}}}|00||i}}}}|{{{Hour break from|}}}:{{{Minutes break from|}}}:00}}, <!--
                       -->{{#time:g{{#if:{{{Minutes break from|}}}|{{#ifeq:{{{Minutes break from|}}}|00||:i}}}} a|{{{Hour break from|}}}:{{{Minutes break from|}}}:00}}, <!--
                       -->{{#time:ga{{#if:{{{Minutes break to  |}}}|{{#ifeq:{{{Minutes break to  |}}}|00||i}}}}|{{{Hour break to  |}}}:{{{Minutes break to  |}}}:00}}&ndash;<!--
                       -->{{#time:g{{#if:{{{Minutes break to  |}}}|{{#ifeq:{{{Minutes break to  |}}}|00||:i}}}} a|{{{Hour break to  |}}}:{{{Minutes break to  |}}}:00}}&ndash;<!--
                       -->{{#time:ga{{#if:{{{Minutes open to  |}}}|{{#ifeq:{{{Minutes open to  |}}}|00||i}}}}|{{{Hour open to  |}}}:{{{Minutes open to  |}}}:00}}
                       -->{{#time:g{{#if:{{{Minutes open to  |}}}|{{#ifeq:{{{Minutes open to  |}}}|00||:i}}}} a|{{{Hour open to  |}}}:{{{Minutes open to  |}}}:00}}
}}}}<!--  
}}}}<!--  



Revision as of 16:36, May 18, 2024