Template:As of: Difference between revisions
sims>A morris m (1 revision: As of, update after and related templates from Wikipedia) |
sims>A morris No edit summary |
||
Line 16: | Line 16: | ||
## categorisation disabled outside main namespace |
## categorisation disabled outside main namespace |
||
-->{{ |
-->{{Checkmns|[[Category:Articles containing potentially dated statements from<!-- |
||
## temporal category for template (word method) |
## temporal category for template (word method) |
||
-->{{#if: {{#ifexpr: {{{1}}} = 1 }} | {{#ifexpr: {{#time:Y|{{{1}}}}} > 2004 | {{{1}}} | {{#ifexpr: {{#time:Y|{{{1}}}}} > 1989 | {{#time:Y|{{{1}}}}} | before 1990 }}}} | <!-- |
-->{{#if: {{#ifexpr: {{{1}}} = 1 }} | {{#ifexpr: {{#time:Y|{{{1}}}}} > 2004 | {{{1}}} | {{#ifexpr: {{#time:Y|{{{1}}}}} > 1989 | {{#time:Y|{{{1}}}}} | before 1990 }}}} ]]| <!-- |
||
## temporal category for template (parameter method) |
## temporal category for template (parameter method) |
||
-->{{#ifexpr: {{{1}}} > 2004 | {{#if:{{{2|}}} | {{MONTHNAME|{{{2}}}}} }} {{{1}}} | {{#ifexpr:{{{1}}} > 1989 | {{{1}}} | before 1990 }}}}}}|<!-- |
-->{{#ifexpr: {{{1}}} > 2004 | {{#if:{{{2|}}} | {{MONTHNAME|{{{2}}}}} }} {{{1}}} | {{#ifexpr:{{{1}}} > 1989 | {{{1}}} | before 1990 }}}}}}]]|<!-- |
||
## global category for template |
## global category for template |
||
-->All articles containing potentially dated statements}}</includeonly><!--{{As of}} end--><noinclude><!-- |
-->[[Category:All articles containing potentially dated statements]]}}</includeonly><!--{{As of}} end--><noinclude><!-- |
||
## dynamic example (as of today, self ref) |
## dynamic example (as of today, self ref) |
Revision as of 01:34, 17 February 2011
As of 9 June 2024[ref]
Usage
The template {{as of}} is used to mark potentially dated statements, and will add an article to the appropriate sub-category of Category:All articles containing potentially dated statements. This allows editors to catalogue statements that may become dated over time. The date used for a given statement should be the current date (for currently valid statements) or the date on which the cited reference was produced (for example, when using census data). Unlike the {{update after}} template, {{as of}} does not require the editor to give a full date. This template should not be subst'd.
Syntax
The template can be used in the following forms:
- {{As of|year|month|day}}
- {{As of|year|month}}
- {{As of|year}}
Several additional named parameters can also be used (see below).
Parameters
Required
- year (first parameter) – must be in full numerical format (yyyy)
Optional
- month (second parameter) – full, abbreviated or numerical formats supported (mm recommended)
- day (third parameter) – numerical format only, not included in link (dd)
Named
- alt – optional; allows substitution of different wording and case for the visible text output; if present but no value defined, this parameter is ignored; if a value is defined, values for df and lc parameters are ignored
- df – optional; allows use of American date format with df=US
- lc – optional; gives lower case "as of date" when defined; recommended syntax is lc=y
- url – optional; adds an inline external link (hidden by default) suggesting a webpage for future editors to check for updates to the statement; use the full URL with no spaces. See Wikipedia:As of for displaying links.
TemplateData
TemplateData for As of
Used to mark potentially dated statements.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Year | 1 | Year, in full numerical format (yyyy)
| Number | required |
Month | 2 | Month, in full, abbreviated or numerical format (mm recommended)
| Number | suggested |
Day | 3 | Day in numerical format, not included in link (dd)
| Number | suggested |
Alternative text | alt | Allows substitution of different wording and case for the visible text output; if present but no value defined, this parameter is ignored; if a value is defined, values for df and lc parameters are ignored | String | optional |
Lowercase | lc | Returns a lower case "as of date" when defined
| String | optional |
Date format | df | If set to US, allows use of American date format
| String | optional |
URL | url | Adds an inline external link (hidden by default) suggesting a webpage for future checks for updates; use the full URL with no spaces.
| URL | optional |
See also