Difference between revisions of "Template:StatusDecay/doc"

From Official Factorio Wiki
Jump to: navigation, search
m
m (attempting to fix formatting of final blockquote)
Line 25: Line 25:
 
  {{StatusDecay|{{#time: F d Y | now - 3 weeks}} }} To-do Task 3
 
  {{StatusDecay|{{#time: F d Y | now - 3 weeks}} }} To-do Task 3
 
  {{StatusDecay|{{#time: F d Y | now - 5 weeks}} }} To-do Task 4
 
  {{StatusDecay|{{#time: F d Y | now - 5 weeks}} }} To-do Task 4
+
-
  
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<includeonly>[[Category:Templates]]</includeonly>
 
<includeonly>[[Category:Templates]]</includeonly>

Revision as of 09:51, 15 May 2014

Description
Inserts a block of color which automatically decays based on the time passed since the date provided as a parameter. Less than one week is gray, between one and two weeks is green, between two weeks a month is yellow, and more than a month is red. This is intended to keep track of tasks on the wiki to-do page. If no date, or an invalid date, is supplied, the indicator defaults to red.
Examples

Providing no date:

{{StatusDecay}} To-do Task

You get a red indicator:

 To-do Task


Providing various dates in the range of effect:

{{StatusDecay|December 11 2019}} To-do Task 1
{{StatusDecay|December 03 2019}} To-do Task 2
{{StatusDecay|November 20 2019}} To-do Task 3
{{StatusDecay|November 06 2019}} To-do Task 4

You get appropriate indicators:

 To-do Task 1
 To-do Task 2
 To-do Task 3
 To-do Task 4

-