Template:Open hours: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine: wdays|{{#switch: {{{Slot type|}}} | <includeonly>{{#vardefine: wdays|{{#switch: {{{Slot type|}}} | ||
|Single day={{{Single day|}}} | |Single day={{{Single day|}}} | ||
|Range of days={{{Range day from|}}}–{{{Range day to|}}} | |Range of days={{{Range day from|}}}–{{{Range day to|}}} | ||
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}}–<!-- | ||
-->{{#time:ga{{#if:{{{Minutes open to |}}}|{{#ifeq:{{{Minutes open to |}}}|00||i}}}}|{{{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}}–<!-- | |||
-->{{#time:ga{{#if:{{{Minutes break from|}}}|{{#ifeq:{{{Minutes break from|}}}|00||i}}}}|{{{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}}–<!-- | |||
-->{{#time:ga{{#if:{{{Minutes open to |}}}|{{#ifeq:{{{Minutes open to |}}}|00||i}}}}|{{{Hour open to |}}}:{{{Minutes open to |}}}:00}} | |||
}}}}<!-- | }}}}<!-- | ||
Line 23: | Line 25: | ||
<div>{{#var:wdays}}</div> | <div>{{#var:wdays}}</div> | ||
<div>{{#var:whours}}</div> | <div>{{#var:whours}}</div> | ||
</div> | </div></includeonly> |