Template:As of
as of[update]
This template is used to mark potentially dated statements, and will add an article to the appropriate hidden sub-category of Category: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). It should not be used for future dates (use Template:Update_after instead).
Usage
{{As of |1= |2= |3= }}
- This template MUST NOT be used in infoboxes that emit a microformat, as its emitted date markup will conflict with that.
- This template is not necessary within quotations, and use of the template in such cases should be avoided.
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
This template is used to mark potentially dated statements, and will add an article to the appropriate hidden sub-category of Category: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). It should not be used for future dates (use Template:Update_after instead).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Year | 1 | (first parameter) – The year the statement is valid to. Must be in full numerical format (yyyy)
| Number | required |
| Month | 2 | (second parameter) – The month the statement is valid to. Full, abbreviated or numerical formats supported (mm recommended)
| Line | optional |
| Day | 3 | (third parameter) – The day the statement is valid to (not included in link). Numerical format only (dd)
| Number | optional |
| Alternative wording | alt | Use different wording for the visible text output; if set, values for 'Date format' (df) and 'Lower case' (lc) parameters are ignored | Unbalanced wikitext | optional |
| Date format | df | Set to US to use U.S. date format (mdy) (default is dmy)
| Line | optional |
| Language | lang | forces a language display; language must be available under Template:As_of/(language code) | Line | optional |
| Lower case | lc | if given any value at all (e.g. /lc=y) gives lower case "as of date" instead of "As of date", for use mid-sentence.
| Line | optional |
| Post | post | Added after the date, usually punctuation | Unknown | optional |
| Pre | pre | text to insert before the date, and after "As of" or "Since", e.g. /pre=the first week of used like this: "asof/1997/pre=the first week of" produces "As of the first week of 1997". | Line | optional |
| Since | since | if given any value at all (e.g. /since=y) it changes "As of" to "Since". Use of /lc=y with /since=y gives "since". Use of /alt= will replace the entire output, including the "Since", as it will with the default "As of".
| Line | optional |
| URL | url | 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 :en:Wikipedia:As_of#Article_maintenance for displaying links. Only visible for logged in users | URL | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Example
{{As of|2003|05|12|pre=the morning of|post=!|url=https://wikimania.wikimedia.org/wiki/2026:Wikimania}}
renders as:
as of the morning of 12 {May 2003![ref]
See also
Localization
العربية ∙ Deutsch ∙ English ∙ 日本語
This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:As of/layout.
To add your language to the list of languages supported by this template, please copy the code of Template:As of/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.