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/{{{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> |
| + | A template to centralize maintenance start/end times definitions and queries. |
| ==Usage== | | ==Usage== |
| Request current maintenance start time from [[Template:Maintenance/Start]]: | | Request current maintenance start time from [[Template:Maintenance/Start]]: |
− |
| |
| <pre>{{Maintenance|Start}}</pre> | | <pre>{{Maintenance|Start}}</pre> |
− | | + | <blockquote>{{Maintenance|Start}}</blockquote> |
− | {{Maintenance|Start}} | |
− | | |
| As [[Template:Timer]]: | | As [[Template:Timer]]: |
− |
| |
| <pre>{{Maintenance|Start|timer=true}}</pre> | | <pre>{{Maintenance|Start|timer=true}}</pre> |
− | | + | <blockquote>{{Maintenance|Start|timer=true}}</blockquote> |
− | {{Maintenance|Start|timer=true}} | |
− | | |
| Short form: | | Short form: |
− |
| |
| <pre>{{Maintenance|Start|short=true}}</pre> | | <pre>{{Maintenance|Start|short=true}}</pre> |
− | | + | <blockquote>{{Maintenance|Start|short=true}}</blockquote> |
− | {{Maintenance|Start|short=true}} | |
− | | |
| Same for [[Template:Maintenance/End]], [[Template:Maintenance/End1]], etc. | | Same for [[Template:Maintenance/End]], [[Template:Maintenance/End1]], etc. |
− |
| |
| <pre>{{Maintenance|End}}</pre> | | <pre>{{Maintenance|End}}</pre> |
− | | + | <blockquote>{{Maintenance|End}}</blockquote> |
− | {{Maintenance|End}} | |
− | | |
| <pre>{{Maintenance|End1}}</pre> | | <pre>{{Maintenance|End1}}</pre> |
− | | + | <blockquote>{{Maintenance|End1}}</blockquote> |
− | {{Maintenance|End1}} | |
| </noinclude> | | </noinclude> |