Changes

m
Line 1: Line 1: −
<includeonly>{{#if:{{{timer|}}}|{{Timer|time={{Maintenance/{{{1}}}}}|endClass=maint-{{{1}}}|endText={{#ifeq:{{{1}}}|Start|'''Maintenance has started.'''|{{#ifeq:{{{1}}}|End|'''Maintenance has ended.'''}}}}}}|{{#if:{{{short|}}}|{{#explode:{{Maintenance/{{{1}}}}}|:|0}}:{{#explode:{{Maintenance/{{{1}}}}}|:|1}}|{{Maintenance/{{{1}}}}}}}}}</includeonly><noinclude>
+
<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 start/end times definitions and queries.
+
A template to centralize maintenance time definitions and queries. Times are defined in [[Template:Maintenance/Times]] and can be queried as follows.
 +
 
 
==Usage==
 
==Usage==
Request current maintenance start time from [[Template:Maintenance/Start]]:
+
 
<pre>{{Maintenance|Start}}</pre>
+
Request current maintenance start time:
<blockquote>{{Maintenance|Start}}</blockquote>
+
 
 +
<pre>{{Maintenance|start}}</pre>
 +
 
 +
<blockquote>{{Maintenance|start}}</blockquote>
 +
 
 
As [[Template:Timer]]:
 
As [[Template:Timer]]:
<pre>{{Maintenance|Start|timer=true}}</pre>
+
 
<blockquote>{{Maintenance|Start|timer=true}}</blockquote>
+
<pre>{{Maintenance|start|timer=true|text=Optionally custom endText}}</pre>
 +
 
 +
<blockquote>{{Maintenance|start|timer=true|text=Optionally custom endText}}</blockquote>
 +
 
 
Short form:
 
Short form:
<pre>{{Maintenance|Start|short=true}}</pre>
+
 
<blockquote>{{Maintenance|Start|short=true}}</blockquote>
+
<pre>{{Maintenance|start|short=true}}</pre>
Same for [[Template:Maintenance/End]], [[Template:Maintenance/End1]], etc.
+
 
<pre>{{Maintenance|End}}</pre>
+
<blockquote>{{Maintenance|start|short=true}}</blockquote>
<blockquote>{{Maintenance|End}}</blockquote>
+
 
<pre>{{Maintenance|End1}}</pre>
+
Same for other defined times (<code>end</code>, etc.).
<blockquote>{{Maintenance|End1}}</blockquote>
+
 
 +
==Affected pages==
 +
*[[Kancolle Wiki|main page]]
 +
*[[Recent Updates]]
 +
*Current update page
 +
*Current update thread
 
</noinclude>
 
</noinclude>
42,696

edits