Template:As of/doc: Difference between revisions

m
clean up
m (→‎Usage: clean up)
m (clean up)
 
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 [[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 [[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]].


'''Note: 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.'''
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 106: Line 106:
*{{tl|Update after}}
*{{tl|Update after}}
*{{tl|When}}
*{{tl|When}}
*[[Wikipedia:As of]]
*[[Sarkarverse:As of]]
*[[Wikipedia:Avoid statements that will date quickly]]
*[[Sarkarverse:Avoid statements that will date quickly]]
*[[:Category:All articles containing potentially dated statements]]
*[[:Category:All articles containing potentially dated statements]]


14,070

edits