Difference between revisions of "Template:OutageCounter"

From CWCki
Jump to navigation Jump to search
(fix double noinclude/formatting)
m
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#expr: (-259 +{{#time:z}})}} days without an outage!<noinclude>
{{#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.
 
=== How to update ===
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
<br>Then replace xxx with the calculated date.--[[User:Ror|Ror]]


# Copy this timestamp code: '''{{#time:U}}'''
# 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>
[[Category:Front page templates]]</noinclude>

Latest revision as of 20:13, 29 May 2010

5440 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: 1732402188
  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.