Template:As of/doc: Difference between revisions

m
clean up
m (1 revision)
 
m (clean up)
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:


==Usage==
==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). It also includes the [[WP:ISO 8601|ISO 8601]] format needed by [[hAtom]] (<code>class="updated"</code>) and [[hCalendar]] (<code>class="dtstart"</code>) [[microformat]]s through use of the {{tl|start date}} template. 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]].
The template {{tl|as of}} is used to mark potentially dated statements, and will add an article to the appropriate [[SV: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). It also includes the [[SV:ISO 8601|ISO 8601]] format needed by [[hAtom]] (<code>class="updated"</code>) and [[hCalendar]] (<code>class="dtstart"</code>) [[microformat]]s through use of the {{tl|start date}} template. Unlike the {{tl|update after}} template, {{tl|as of}} does not require the editor to give a full date. This template should '''not''' be [[Sarkarverse:Substitution|substituted]].


'''This template MUST NOT be used in infoboxes which emit a microformat, as its emitted date markup will conflict with that.'''
'''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.
This template does not generate a visible hyperlink in text where it is used.
Line 33: Line 33:
*'''df''' – optional; allows use of American date format with ''df=US''
*'''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''
*'''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#Article maintenance|Wikipedia:As of]] for displaying links.
*'''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 [[Sarkarverse:As of#Article maintenance|Sarkarverse:As of]] for displaying links.


===Examples===
===Examples===
Line 45: Line 45:


:<tt>{&#123;As of{{!}}2010{{!}}7{{!}}url=<nowiki>http://en.wikipedia.org/</nowiki>&#125;}</tt> returns:
:<tt>{&#123;As of{{!}}2010{{!}}7{{!}}url=<nowiki>http://en.wikipedia.org/</nowiki>&#125;}</tt> returns:
:: ''for logged in users, with links displayed (see [[Wikipedia:As of#Article maintenance|Wikipedia:As of]])'' – As of July&nbsp;2010<sup class="plainlinks">[http://en.wikipedia.org/ &#91;ref&#93;]</sup>
:: ''for logged in users, with links displayed (see [[Sarkarverse:As of#Article maintenance|Sarkarverse:As of]])'' – As of July&nbsp;2010<sup class="plainlinks">[http://en.wikipedia.org/ &#91;ref&#93;]</sup>
:: ''for all other users'' – As of July&nbsp;2010
:: ''for all other users'' – As of July&nbsp;2010


Line 100: Line 100:


==See also==
==See also==
*[[Wikipedia:As of]]
*{{tl|Category as of}}
*[[Wikipedia:Avoid statements that will date quickly]]
*{{tl|Show by date}}
*[[Template:As of?]]
*{{tl|Start date and age}}
*[[Template:Category as of]]
*{{tl|Update}}
*[[Template:Show by date]]
*{{tl|Update after}}
*[[Template:Start date and age]]
*{{tl|When}}
*[[Template:Update]]
*[[Sarkarverse:As of]]
*[[Template:Update after]]
*[[Sarkarverse:Avoid statements that will date quickly]]
*[[:Category:All articles containing potentially dated statements]]
*[[:Category:All articles containing potentially dated statements]]


14,061

edits