Jump to content

Template:Auto-outdated: Difference between revisions

testing subcategory possibility via parameter input
(simplified equations using different magic words)
(testing subcategory possibility via parameter input)
Line 6: Line 6:
[[Image:Ambox outdated serious.png|center|60px|Ambox outdated serious.png]]  
[[Image:Ambox outdated serious.png|center|60px|Ambox outdated serious.png]]  


| width="200" nowrap="nowrap" align="center" | '''Auto-outdated''' ( Setpoint''': {{#if:{{{1|}}}|{{{1}}}|7}}''' days )<br>
| width="220" nowrap="nowrap" align="center" | '''Auto-outdated''' ( Setpoint''': {{#if:{{{1|}}}|{{{1}}}|7}}''' days )<br>
|-
|-
| nowrap="nowrap" align="center" | <font color="maroon"></font><div style="font-size:11px"><font color="maroon">'''Current alert status:&nbsp;&nbsp;'''</font>'''<font color="red"></font>'''<font color="red">'''{{#switch:
| nowrap="nowrap" align="center" | <font color="maroon"></font><div style="font-size:11px"><font color="maroon">'''Current alert status:&nbsp;&nbsp;'''</font>'''<font color="red"></font>'''<font color="red">'''{{#switch:{{#ifexpr:14>{{#switch:
{{#ifexpr:14>
{{#switch:
{{#expr:{{CURRENTYEAR}} - {{REVISIONYEAR}}}}
{{#expr:{{CURRENTYEAR}} - {{REVISIONYEAR}}}}
|0={{#expr:{{#time:z|{{CURRENTTIMESTAMP}}}}-{{#time:z|{{REVISIONTIMESTAMP}}}}}}
|0={{#expr:{{#time:z|{{CURRENTTIMESTAMP}}}}-{{#time:z|{{REVISIONTIMESTAMP}}}}}}
Line 16: Line 14:
{{#time:z|{{CURRENTTIMESTAMP}}}}}}
{{#time:z|{{CURRENTTIMESTAMP}}}}}}
|2={{#expr:730-{{#time:z|{{REVISIONTIMESTAMP}}}}+
|2={{#expr:730-{{#time:z|{{REVISIONTIMESTAMP}}}}+
{{#time:z|{{CURRENTTIMESTAMP}}}}}}|error1}}|yes|no}}
{{#time:z|{{CURRENTTIMESTAMP}}}}}}|error1}}
|yes=OKAY|no=Expired [[Category:Auto-outdated]]|error2}}'''</font></div>
|yes|no}}|yes=OKAY|no=Expired [[Category:Auto-outdated]] [[Category: {{#if:{{{2|}}}|{{{2}}}| }}]]|error2}}'''</font></div>
|-
|-
| nowrap="nowrap" align="center" | '''Last Rev Date: {{REVISIONDAY}}&nbsp;&nbsp;{{REVISIONMONTH}} &nbsp;{{REVISIONYEAR}}''' (d/m/y)<br>
| nowrap="nowrap" align="center" | '''Last Rev Date:&nbsp; {{REVISIONDAY}}&nbsp;&nbsp;&nbsp;{{REVISIONMONTH}} &nbsp;{{REVISIONYEAR}}''' (d/m/y)<br>
|}
|}


3,970

edits