Template:AfC age category: Difference between revisions
Appearance
Content deleted Content added
Webclient101 (talk | contribs) m Removing protection template from a non-protected page |
from sandbox: 0-20.99 days = days old. 3-4.99 weeks = weeks old. 5+ weeks = very old |
||
Line 1: | Line 1: | ||
{{#if:{{{ts|}}} |
{{#if:{{{ts|}}} |
||
|{{#ifexpr:{{#expr:({{#time:U}}-{{#time:U|{{{ts}}}}})<3024000<!-- 5 weeks old-->}} |
|||
|AfC {{#if:{{{status|}}}|{{{status}}} }}submissions by age/{{Time ago|{{{ts}}}|magnitude={{#ifexpr:{{#expr:({{#time:U}}-{{#time:U|{{{ts}}}}})<1814400<!--21 days old-->}}|days|weeks}}}} |
|||
|AfC submissions by age/Very old}} |
|||
|AfC {{#if:{{{status|}}}|{{{status}}} }}submissions without an age |
|AfC {{#if:{{{status|}}}|{{{status}}} }}submissions without an age |
||
}}<noinclude> |
}} |
||
<noinclude> |
|||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Revision as of 02:11, 2 April 2013
AfC submissions without an age
Usage
This template is used by Template:WPAFC, Template:AFC submission, and templates they call to determine the appropriate age category for submissions to Wikipedia:Articles for creation.
If the timestamp parameter |ts=
is passed, then:
- submissions are categorised into an age category, e.g. Category:AfC pending submissions by age/1 day ago, Category:AfC pending submissions by age/3 weeks ago, etc.
All undated submissions are placed in Category:AfC submissions without an age.
If the optional status parameter |status=
is passed then the category name is Category: AfC ''status'' submissions by age/..., for example, Category:AfC pending submissions by age/3 weeks ago
- When it is used, the most common value of status is pending.