Template:AfC age category: Difference between revisions
Appearance
Content deleted Content added
take 3 |
|||
(14 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{ts|}}} |
{{#if:{{{ts|}}} |
||
|{{#switch:1 |
|||
|{{#ifexpr:{{#expr:({{#time:U}}-{{#time:U|{{{ts}}}}})<3024000<!-- 5 weeks old-->}} |
|||
| {{#expr:({{#time:U}}-{{#time:U|{{{ts}}}}})<1814400<!-- 21 days old-->}} = AfC pending submissions by age/{{Time ago|{{{ts}}}|magnitude=days}} |
|||
|AfC submissions by age/ |
| {{#expr:({{#time:U}}-{{#time:U|{{{ts}}}}})<5443200<!-- 9 weeks old-->}} = AfC pending submissions by age/{{Time ago|{{{ts}}}|magnitude=weeks}} |
||
| {{#expr:({{#time:U}}-{{#time:U|{{{ts}}}}})<15724800<!--6 months old-->}} = AfC pending submissions by age/{{Time ago|{{{ts}}}|magnitude=months}} |
|||
⚫ | |||
| #default = AfC pending submissions by age/Very old |
|||
}} |
}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Latest revision as of 17:48, 1 February 2022
AfC pending 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.