Difference between revisions of "Template:OutageCounter"

From CWCki
Jump to navigation Jump to search
(Made it 259, since it should be 10 days between 17 September and 27 September.)
m
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#expr: (-259 +{{#time:z}})}} days without an outage!
{{#expr: (-1262392358 +{{#time:U}})/86400 round 0}} days without an outage!<noinclude>{{clear}}{{Usage|1= This template used to sit pride of place on the CWCki [[Main Page]]. Before great advancements in technology were made, the CWCki used to experience some downtime. This template was used to keep a track of the CWCki's uptime.
<noinclude>[[Category:Front page templates]]</noinclude>
=== How to update ===
<noinclude>Here's the code I whipped up:<nowiki>{{#expr: (-xxx +{{#time:z}})}}</nowiki>
 
<br>To calculate the date to put in without having to figure it out manually use http://mistupid.com/calendar/dayofyear.htm
# Copy this timestamp code: '''{{#time:U}}'''
<br>Then replace xxx with the calculated date.--[[User:Ror|Ror]]</noinclude>
# Hit edit.
# Look at the mysterious code that's at the top of the page that looks like this:<br/><nowiki>{{#expr: (-XXXXX +{{#time:U}})/86400 round 0}}</nowiki>
# Replace the current number at XXXXX with the new time stamp. Leave the minus sign in!
# Save.
}}
[[Category:Front page templates]]</noinclude>

Latest revision as of 21:13, 29 May 2010

5249 days without an outage!

Usage

These usage notes will not be included in articles bearing this template.

This template used to sit pride of place on the CWCki Main Page. Before great advancements in technology were made, the CWCki used to experience some downtime. This template was used to keep a track of the CWCki's uptime.

How to update

  1. Copy this timestamp code: 1715903633
  2. Hit edit.
  3. Look at the mysterious code that's at the top of the page that looks like this:
    {{#expr: (-XXXXX +{{#time:U}})/86400 round 0}}
  4. Replace the current number at XXXXX with the new time stamp. Leave the minus sign in!
  5. Save.