Template:Auto-outdated: Difference between revisions

changed the "default" category name to "Auto-outdated" so that extra categories are not created
(fixed subcategory code and updated instructions)
(changed the "default" category name to "Auto-outdated" so that extra categories are not created)
Line 15: Line 15:
|2={{#expr:730-{{#time:z|{{REVISIONTIMESTAMP}}}}+
|2={{#expr:730-{{#time:z|{{REVISIONTIMESTAMP}}}}+
{{#time:z|{{CURRENTTIMESTAMP}}}}}}|error1}}
{{#time:z|{{CURRENTTIMESTAMP}}}}}}|error1}}
|yes|no}}|yes=OKAY|no=Expired [[Category:Auto-outdated]] [[Category:{{#if:{{{2|}}}|{{{2}}}|Default}}]] [[Category:{{#if:{{{3|}}}|{{{3}}}|Default}}]]|error2}}'''</font></div>
|yes|no}}|yes=OKAY|no=Expired [[Category:Auto-outdated]] [[Category:{{#if:{{{2|}}}|{{{2}}}|Auto-outdated}}]] [[Category:{{#if:{{{3|}}}|{{{3}}}|Auto-outdated}}]]|error2}}'''</font></div>
|-
|-
| nowrap="nowrap" align="center" | '''Last Rev Date:&nbsp; {{REVISIONDAY}}&nbsp;&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>
Line 38: Line 38:
'''Parameter #3''' results in an additional sub-category that can be used to further group the pages <nowiki>{{</nowiki>Auto-outdated|14|sub-category name<font color="maroon">'''|secondary sub-category name'''</font><nowiki>}}</nowiki>. This secondary sub-category could be used if the page fits multiple topics or if a sub-category is created for a specific individual or group (such as Wiki Support).
'''Parameter #3''' results in an additional sub-category that can be used to further group the pages <nowiki>{{</nowiki>Auto-outdated|14|sub-category name<font color="maroon">'''|secondary sub-category name'''</font><nowiki>}}</nowiki>. This secondary sub-category could be used if the page fits multiple topics or if a sub-category is created for a specific individual or group (such as Wiki Support).


'''Note:''' The default setting for the two sub-categories is the sub-category called "Default" to which the page alerts will be sent unless specified otherwise by entering the parameter information.
'''Note:''' The default setting for the two sub-categories is the '''Category:Auto-outdated''' to prevent extra categories from being created.  If a parameter value is entered it will result in a red link if it did not previously exist and the sub-category page must be created.  It must be specified as a sub-category of "Category:Auto-outdated" by adding the "Category:Auto-outdated" as the category for that page.


'''Background information:'''
'''Background information:'''
3,970

edits