• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
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={{#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 start/end times definitions and queries. Times are defined in [[Template:Maintenance/Times]] and can be queried as follows.
==Usage==
+
 
Request current maintenance start time from [[Template:Maintenance/Start]]:
+
Request current maintenance start time:
 +
 
 
<pre>{{Maintenance|Start}}</pre>
 
<pre>{{Maintenance|Start}}</pre>
 +
 
<blockquote>{{Maintenance|Start}}</blockquote>
 
<blockquote>{{Maintenance|Start}}</blockquote>
 +
 
As [[Template:Timer]]:
 
As [[Template:Timer]]:
 +
 
<pre>{{Maintenance|Start|timer=true}}</pre>
 
<pre>{{Maintenance|Start|timer=true}}</pre>
 +
 
<blockquote>{{Maintenance|Start|timer=true}}</blockquote>
 
<blockquote>{{Maintenance|Start|timer=true}}</blockquote>
 +
 
Short form:
 
Short form:
 +
 
<pre>{{Maintenance|Start|short=true}}</pre>
 
<pre>{{Maintenance|Start|short=true}}</pre>
 +
 
<blockquote>{{Maintenance|Start|short=true}}</blockquote>
 
<blockquote>{{Maintenance|Start|short=true}}</blockquote>
Same for [[Template:Maintenance/End]], [[Template:Maintenance/End1]], etc.
+
 
<pre>{{Maintenance|End}}</pre>
+
Same for other defined times (<code>End</code>, etc.).
<blockquote>{{Maintenance|End}}</blockquote>
  −
<pre>{{Maintenance|End1}}</pre>
  −
<blockquote>{{Maintenance|End1}}</blockquote>
   
</noinclude>
 
</noinclude>
cssedit, gkautomate
7,064

edits

Navigation menu