Jump to content

Template:Auto-outdated: Difference between revisions

m
update
(fixed equation (replaced a constant with "parameter 1") and added calculation values to documentation.)
m (update)
Line 27: Line 27:
<br><br>
<br><br>
'''Calculated equation values:'''<br><br>
'''Calculated equation values:'''<br><br>
'''{{#if:{{{1|}}}|{{{1}}}|7}}''' Set point (template parameter 1)<br>
'''{{#if:{{{1|}}}|{{{1}}}|7}}''' &nbsp;&nbsp;&nbsp;&nbsp;Set point (Default template parameter one)<br>
'''{{#time:z|{{CURRENTTIMESTAMP}}}}'''&nbsp;&nbsp;Current - day of year<br>
'''{{#time:z|{{CURRENTTIMESTAMP}}}}'''&nbsp;&nbsp;CurrentYear - day of year<br>
'''{{#time:z|{{REVISIONTIMESTAMP}}}}'''&nbsp;&nbsp;Revision - day of year<br>
'''{{#time:z|{{REVISIONTIMESTAMP}}}}'''&nbsp;&nbsp;RevisionYear - day of year<br>
'''{{#expr:{{#time:z|{{CURRENTTIMESTAMP}}}}-{{#time:z|{{REVISIONTIMESTAMP}}}}}}'''&nbsp;&nbsp;Option 1: Current Year days minus Revision Year days<br>
'''{{#expr:{{#time:z|{{CURRENTTIMESTAMP}}}}-{{#time:z|{{REVISIONTIMESTAMP}}}}}}'''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option 1: Current Year days minus Revision Year days<br>
'''{{#expr:365-{{#time:z|{{REVISIONTIMESTAMP}}}}+
'''{{#expr:365-{{#time:z|{{REVISIONTIMESTAMP}}}}+
{{#time:z|{{CURRENTTIMESTAMP}}}}}}'''&nbsp;&nbsp;Option 2: Revision days (from end of year) plus Current Year days<br>
{{#time:z|{{CURRENTTIMESTAMP}}}}}}'''&nbsp;&nbsp;Option 2: Revision days (from end of year) plus Current Year days<br>
'''{{#expr:730-{{#time:z|{{REVISIONTIMESTAMP}}}}+
'''{{#expr:730-{{#time:z|{{REVISIONTIMESTAMP}}}}+
{{#time:z|{{CURRENTTIMESTAMP}}}}}}'''&nbsp;&nbsp;Option 3: Revision days (from end of year) plus 365 plus Current Year days<br>
{{#time:z|{{CURRENTTIMESTAMP}}}}}}'''&nbsp;&nbsp;Option 3: Revision days (from end of year) plus 365 plus Current Year days<br>
 
'''Category:Auto-outdated'''&nbsp;&nbsp;Category added when "expired".<br>
'''{{#if:{{{2|}}}|{{{2}}}|Auto-outdated}}'''&nbsp;&nbsp;Default category for parameter two.<br>
'''{{#if:{{{3|}}}|{{{3}}}|Auto-outdated}}'''&nbsp;&nbsp;Default category for parameter three.<br>
<br>
<br>
<br>
<br>
3,970

edits