Jump to content

Template:Auto-outdated: Difference between revisions

fixed subcategory code and updated instructions
(testing subcategory possibility via parameter input)
(fixed subcategory code and updated instructions)
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}}}| }}]]|error2}}'''</font></div>
|yes|no}}|yes=OKAY|no=Expired [[Category:Auto-outdated]] [[Category:{{#if:{{{2|}}}|{{{2}}}|Default}}]] [[Category:{{#if:{{{3|}}}|{{{3}}}|Default}}]]|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 28: Line 28:
<br>
<br>
<br>
<br>
Documentation:
'''Documentation:'''


The template is activated using '''<nowiki>{{Auto-outdated|14}}</nowiki>''' where “14” is the template parameter for the number of days from the last revision date before the template activates the “expired” condition (and installs the '''Category:Auto-outdated''').  The parameter value can be any integer number but the recommended values are 1 to 365 days.
The template is called using '''<font color="maroon"><nowiki>{{Auto-outdated}}</nowiki></font>'''
 
'''Parameter #1''' is activated using <nowiki>{{</nowiki>Auto-outdated<font color="maroon">'''|14'''</font><nowiki>}}</nowiki> where “14” is the template parameter for the number of days from the last revision date before the template activates the “expired” condition (and installs the '''Category:Auto-outdated''').  The parameter value can be any integer number but the recommended values are 1 to 365 days (the default for parameter one is 7 days).
 
'''Parameter #2''' is activated using <nowiki>{{</nowiki>Auto-outdated|14<font color="maroon">'''|sub-category name'''</font><nowiki>}}</nowiki> to create a sub-category to group the pages based on some criteria such as "New to Genealogy".
 
'''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.
 
'''Background information:'''


The purpose of this template is to provide a means of automatically outdating an article based on a set number of days since its last revision date.  This could be used on general articles by setting the Auto-outdated parameter to something like 365 days or 180 days.  This would actually be most beneficial when used with more time sensitive articles (such as, Community News or WikiProject status) by setting the parameter to 7 days to ensure weekly updates.   
The purpose of this template is to provide a means of automatically outdating an article based on a set number of days since its last revision date.  This could be used on general articles by setting the Auto-outdated parameter to something like 365 days or 180 days.  This would actually be most beneficial when used with more time sensitive articles (such as, Community News or WikiProject status) by setting the parameter to 7 days to ensure weekly updates.   
3,970

edits