Changes
Jump to navigation
Jump to search
Reverted to revision 3250659 by Mainframe98 (talk): Why? (TW)
{{Documentation subpage}}
<!-- 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 [[WP:HIDDENCAT|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). Unlike the {{tl|update after}} template, {{tl|as of}} does not require the editor to give a full date. This template should '''not''' be [[Wikipedia:Substitution|substituted]].
'''Note: This template MUST NOT be used in infoboxes which emit a microformat, as its emitted date markup will conflict with that.'''
This template does not generate a visible hyperlink in text where it is used.
==Syntax==
The template can be used in the following forms:
:<code><nowiki>{{As of|year}}</nowiki></code>
:<code><nowiki>{{As of|year|month}}</nowiki></code>
:<code><nowiki>{{As of|year|month|day}}</nowiki></code>
Please do not use <code><nowiki>{{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}}}</nowiki></code> or similar; that defeats the point of the template.
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'')
===Examples===
:<tt>{{As of{{!}}2010}}</tt> – {{As of|2010}}
:<tt>{{As of{{!}}2010{{!}}7}}</tt> – {{As of|2010|7}}
:<tt>{{As of{{!}}2010{{!}}7{{!}}5}}</tt> – {{As of|2010|7|5}}
===TemplateData===
{{TemplateDataHeader}}
<templatedata>{
"description": "A template used to mark potentially dated statements, and will add an article to the \"Category:Articles containing potentially dated statements\". This allows editors to catalogue statements that may become dated over time.",
"params": {
"1": {
"label": "Year",
"description": "The year the statement is valid to. Must be in full numerical format (yyyy)",
"type": "number",
"required": true
},
"2": {
"label": "Month",
"description": "The month the statement is valid to. Full, abbreviated or numerical formats supported (mm recommended)",
"type": "string/line",
"required": false
},
"3": {
"label": "Day",
"description": "The day the statement is valid to (not included in link). Numerical format only (dd)",
"type": "number",
"required": false
}
}
}
</templatedata>
==See also==
*{{tl|Start date and age}}
*{{tl|Update}}
*{{tl|Update after}}
*{{tl|When}}
*[[:Category:All articles containing potentially dated statements]]
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Inline templates]]
[[Category:Temporal templates]]
[[Category:Time and date maintenance templates]]
}}</includeonly>
<!-- 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 [[WP:HIDDENCAT|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). Unlike the {{tl|update after}} template, {{tl|as of}} does not require the editor to give a full date. This template should '''not''' be [[Wikipedia:Substitution|substituted]].
'''Note: This template MUST NOT be used in infoboxes which emit a microformat, as its emitted date markup will conflict with that.'''
This template does not generate a visible hyperlink in text where it is used.
==Syntax==
The template can be used in the following forms:
:<code><nowiki>{{As of|year}}</nowiki></code>
:<code><nowiki>{{As of|year|month}}</nowiki></code>
:<code><nowiki>{{As of|year|month|day}}</nowiki></code>
Please do not use <code><nowiki>{{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}}}</nowiki></code> or similar; that defeats the point of the template.
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'')
===Examples===
:<tt>{{As of{{!}}2010}}</tt> – {{As of|2010}}
:<tt>{{As of{{!}}2010{{!}}7}}</tt> – {{As of|2010|7}}
:<tt>{{As of{{!}}2010{{!}}7{{!}}5}}</tt> – {{As of|2010|7|5}}
===TemplateData===
{{TemplateDataHeader}}
<templatedata>{
"description": "A template used to mark potentially dated statements, and will add an article to the \"Category:Articles containing potentially dated statements\". This allows editors to catalogue statements that may become dated over time.",
"params": {
"1": {
"label": "Year",
"description": "The year the statement is valid to. Must be in full numerical format (yyyy)",
"type": "number",
"required": true
},
"2": {
"label": "Month",
"description": "The month the statement is valid to. Full, abbreviated or numerical formats supported (mm recommended)",
"type": "string/line",
"required": false
},
"3": {
"label": "Day",
"description": "The day the statement is valid to (not included in link). Numerical format only (dd)",
"type": "number",
"required": false
}
}
}
</templatedata>
==See also==
*{{tl|Start date and age}}
*{{tl|Update}}
*{{tl|Update after}}
*{{tl|When}}
*[[:Category:All articles containing potentially dated statements]]
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Inline templates]]
[[Category:Temporal templates]]
[[Category:Time and date maintenance templates]]
}}</includeonly>