- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Template:Maintenance"
Jump to navigation
Jump to search
Jigaraphale (talk | contribs) m (→Affected pages) |
|||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{{timer|}}}|{{Timer|time={{Maintenance/{{{1}}}}}|endClass = maint-{{{1}}}|endText={{#ifeq:{{{1}}}| | + | <includeonly>{{#if:{{{timer|}}}|{{Timer|time={{Maintenance/Times|{{{1}}}}}|endClass=maint-{{{1}}}|endText='''{{{text|{{#ifeq:{{{1}}}|start|Maintenance has started.|{{#ifeq:{{{1}}}|end|Maintenance has ended.}}}}}}}'''}}|{{#if:{{{short|}}}|{{#explode:{{Maintenance/Times|{{{1}}}}}|:|0}}:{{#explode:{{Maintenance/Times|{{{1}}}}}|:|1}}|{{Maintenance/Times|{{{1}}}}}}}}}</includeonly><noinclude> |
− | + | A template to centralize maintenance time definitions and queries. Times are defined in [[Template:Maintenance/Times]] and can be queried as follows. | |
− | {{Maintenance| | + | ==Usage== |
+ | |||
+ | Request current maintenance start time: | ||
+ | |||
+ | <pre>{{Maintenance|start}}</pre> | ||
+ | |||
+ | <blockquote>{{Maintenance|start}}</blockquote> | ||
+ | |||
+ | As [[Template:Timer]]: | ||
+ | |||
+ | <pre>{{Maintenance|start|timer=true|text=Optionally custom endText}}</pre> | ||
+ | |||
+ | <blockquote>{{Maintenance|start|timer=true|text=Optionally custom endText}}</blockquote> | ||
+ | |||
+ | Short form: | ||
+ | |||
+ | <pre>{{Maintenance|start|short=true}}</pre> | ||
+ | |||
+ | <blockquote>{{Maintenance|start|short=true}}</blockquote> | ||
+ | |||
+ | Same for other defined times (<code>end</code>, etc.). | ||
+ | |||
+ | ==Affected pages== | ||
+ | *[[Kancolle Wiki|main page]] | ||
+ | *[[Recent Updates]] | ||
+ | *Current update page | ||
+ | *Current update thread | ||
</noinclude> | </noinclude> |
Latest revision as of 12:21, 11 February 2024
A template to centralize maintenance time definitions and queries. Times are defined in Template:Maintenance/Times and can be queried as follows.
Usage
Request current maintenance start time:
{{Maintenance|start}}
03 December 2024 11:00:00 +0900
As Template:Timer:
{{Maintenance|start|timer=true|text=Optionally custom endText}}
Short form:
{{Maintenance|start|short=true}}
03 December 2024 11:00
Same for other defined times (end
, etc.).
Affected pages
- main page
- Recent Updates
- Current update page
- Current update thread