Template:Open hours: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 30: | Line 30: | ||
--><li>{{#switch:{{{Record type|}}} | --><li>{{#switch:{{{Record type|}}} | ||
|Opening | |Opening | ||
|Closing=<div>'''{{{Record type|}}}'''</div> | |Closing=<div>'''{{{Label|{{{Record type|}}}}}}'''</div> | ||
| | |Regular=<div>'''{{{Label|Open hours}}}'''</div> | ||
|#default= | |#default='''{{{Label|}}}''' | ||
}} | }} | ||
<div>{{#var:wdays}}</div> | <div>{{#var:wdays}}</div> | ||
Line 64: | Line 64: | ||
}, | }, | ||
"Range day to": { | "Range day to": { | ||
"description": "Name of the last day of the week in a range" | "description": "Name of the last day of the week in a range", | ||
"example": "Wednesday", | |||
"type": "string" | |||
}, | }, | ||
"Exact date": { | "Exact date": { | ||
Line 96: | Line 98: | ||
], | ], | ||
"default": "Working day" | "default": "Working day" | ||
}, | |||
"Label": { | |||
"label": "Label for the record", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
Line 113: | Line 119: | ||
"Minutes break from", | "Minutes break from", | ||
"Hour break to", | "Hour break to", | ||
"Minutes break to" | "Minutes break to", | ||
"Label" | |||
], | ], | ||
"description": "The template tries to explain the event schedule. \n\nYou can set hours:\n* for the exact date (e.g., 05.10.2024, etc)\n* for the day of the week (e.g., Monday, etc)\n* for the range of days of the week (e.g., Monday-Friday, etc)\n\nYou can set any record as an Opening, Closing, or Day off. All other records are treated as Regular.\n\nIf there is a break in open hours, you can specify it, too.\n" | "description": "The template tries to explain the event schedule. \n\nYou can set hours:\n* for the exact date (e.g., 05.10.2024, etc)\n* for the day of the week (e.g., Monday, etc)\n* for the range of days of the week (e.g., Monday-Friday, etc)\n\nYou can set any record as an Opening, Closing, or Day off. All other records are treated as Regular. \n\nIf there is a break in open hours, you can specify it, too. \n\nPlease note that hours are to be set in 24h format: the template will translate them into AM/PM." | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 10:40, June 18, 2024
The template tries to explain the event schedule. You can set hours:
- for the exact date (e.g., 05.10.2024, etc)
- for the day of the week (e.g., Monday, etc)
- for the range of days of the week (e.g., Monday-Friday, etc)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Slot type | Slot type | Defines the type of time slot
| String | required |
Single day | Single day | Name of a day of the week
| String | optional |
Range day from | Range day from | Name of the first day of the week in a range
| String | optional |
Range day to | Range day to | Name of the last day of the week in a range
| String | optional |
Exact date | Exact date | Date with a special schedule or meaning | Date | optional |
Schedule type | Schedule type | Defines whether the schedule has a break
| Unknown | optional |
Record type | Record type | Defines a special meaning of the record
| String | optional |
Hour open from | Hour open from | no description | Unknown | optional |
Minutes open from | Minutes open from | no description | Unknown | optional |
Hour open to | Hour open to | no description | Unknown | optional |
Minutes open to | Minutes open to | no description | Unknown | optional |
Hour break from | Hour break from | no description | Unknown | optional |
Minutes break from | Minutes break from | no description | Unknown | optional |
Hour break to | Hour break to | no description | Unknown | optional |
Minutes break to | Minutes break to | no description | Unknown | optional |
Label for the record | Label | no description | String | optional |