Template:As of/doc: Difference between revisions

m
fix
sims>A morris
mNo edit summary
m (fix)
 
(3 intermediate revisions by 3 users not shown)
Line 1:
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
==Usage==
The template {{tl|as of}} is used to mark potentially dated statements, and will add an article to the appropriate sub-category of [[:Category:ArticlesAll 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 {{tl|update after}} template, {{tl|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:
 
:<ttkbd>{&#123;As of{{!}}year{{!}}month{{!}}day&#125;}</ttkbd>
:<ttkbd>{&#123;As of{{!}}year{{!}}month&#125;}</ttkbd>
:<ttkbd>{&#123;As of{{!}}year&#125;}</ttkbd>
 
Several additional named parameters can also be used (see below).
Line 25:
*'''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:Wikipedia:As of#Article maintenance|Wikipedia:As of]] for displaying links.
 
==TemplateData==
{{TemplateData header}}
 
<templatedata>
{
"params": {
"1": {
"label": "Year",
"description": "Year, in full numerical format (yyyy)",
"example": "2019",
"type": "number",
"required": true
},
"2": {
"label": "Month",
"description": "Month, in full, abbreviated or numerical format (mm recommended)",
"example": "04",
"type": "number",
"suggested": true
},
"3": {
"label": "Day",
"description": "Day in numerical format, not included in link (dd)",
"example": "20",
"type": "number",
"suggested": true
},
"alt": {
"label": "Alternative text",
"description": "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",
"type": "string"
},
"lc": {
"label": "Lowercase",
"description": "Returns a lower case \"as of date\" when defined",
"example": "y",
"type": "string"
},
"df": {
"label": "Date format",
"description": "If set to US, allows use of American date format",
"example": "US",
"type": "string"
},
"url": {
"label": "URL",
"description": "Adds an inline external link (hidden by default) suggesting a webpage for future checks for updates; use the full URL with no spaces.",
"example": "https://www.thesimswiki.com",
"type": "url"
}
},
"description": "Used to mark potentially dated statements.",
"format": "inline"
}
</templatedata>
 
==See also==