வார்ப்புரு:As of/doc
{{Documentation subpage}}
 {{Distinguish2|[[Template:As of?]], which redirects to [[Template:When]]}}
 &lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&gt;
 ==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 should not be used for future dates (use {{tl|update after}} instead). This template should '''not''' be [[Wikipedia:Substitution|substituted]].
 
 '''Notes:
 *'''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.'''
 
 This template does not generate a visible hyperlink in text where it is used.
 
 ==Syntax==
 The template can be used in the following forms:
 
 :&lt;code&gt;&lt;nowiki&gt;{{As of|year}}&lt;/nowiki&gt;&lt;/code&gt;
 :&lt;code&gt;&lt;nowiki&gt;{{As of|year|month}}&lt;/nowiki&gt;&lt;/code&gt;
 :&lt;code&gt;&lt;nowiki&gt;{{As of|year|month|day}}&lt;/nowiki&gt;&lt;/code&gt;
 
 Please do not use &lt;code&gt;&lt;nowiki&gt;{{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}}}&lt;/nowiki&gt;&lt;/code&gt; 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 four-digit format (''yyyy'')
 
 '''Optional'''
 *'''month''' (second parameter) – full, abbreviated or two-digit numerical formats supported (''mm'' recommended, &lt;code&gt;01&lt;/code&gt; indicating January, &lt;code&gt;02&lt;/code&gt; February, etc., but also accepting &lt;code&gt;Jan&lt;/code&gt; and &lt;code&gt;January&lt;/code&gt;)
 *'''day''' (third parameter) – numerical two-digit format only, not included in link (''dd'')
 
 '''Named'''
 *'''alt''' – optional; allows substitution of different wording and case for the visible text output (including the date). If present with no value defined, this parameter is ignored; if a value is defined, values for &lt;code&gt;|df&lt;/code&gt; and &lt;code&gt;|lc&lt;/code&gt; and &lt;code&gt;|since&lt;/code&gt; parameters are ignored.
 *'''df''' – &quot;date format&quot;, optional; allows use of American date format with {{para|df|US}}.
 *'''lc''' – &quot;lower case&quot;, optional; if given any value at all (e.g. {{para|lc|y}}) gives lower case &quot;as of ''date''&quot;, for use mid-sentence.
 *'''since''' – optional; if given any value at all (e.g. {{para|since|y}}) it changes &quot;As of&quot; to &quot;Since&quot;. Use of {{para|lc|y}} with {{para|since|y}} gives &quot;since ''date''. Use of {{para|alt}} will replace the entire output, including the &quot;Since&quot;, as it will with the default &quot;As of&quot;.
 *'''pre''' – text to insert before the date, and after &quot;[A|a]s of&quot; or &quot;[S|s]ince&quot;, e.g. {{para|pre|the first week of}} used like this: &lt;code&gt;&lt;nowiki&gt;{{asof|1997|pre=the first week of}}&lt;/nowiki&gt;&lt;/code&gt; produces &quot;{{asof|1997|pre=the first week of}}&quot;.
 *'''post''' &amp;ndash; text (almost always punctuation) to insert between the date and the superscripted note that is displayed if
 *:# &lt;code&gt;|url=&lt;/code&gt; is used and
 *:# the user's '''common.css''' page uses any of &lt;code&gt;.asof-tag&lt;/code&gt;, &lt;code&gt;.asof-tag.ref&lt;/code&gt;, or &lt;code&gt;.asof-tag.update&lt;/code&gt; (see [[Wikipedia:As of#Article maintenance |Wikipedia:As of]]).
 **  For example,
 **::&lt;code&gt;{{tnl|As of| {{CURRENTYEAR}}| {{CURRENTMONTH}}| {{CURRENTDAY}}| post{{=}},}} no more bears were found&lt;/code&gt;
 **:gives
 **:: &quot;{{As of| {{CURRENTYEAR}}|{{CURRENTMONTH}}| {{CURRENTDAY}}|  post=,}}&lt;sup&gt;&amp;#91;update&amp;#93;&lt;/sup&gt; no more bears were found&quot;
 **:(comma &quot;,&quot; before the superscripted note)
 ** while
 **:: &lt;code&gt;{{tnl|As of| {{CURRENTYEAR}}| {{CURRENTMONTH}}| {{CURRENTDAY}}}}, no more bears were found&lt;/code&gt;
 **:produces the undesirable result (contrary to [[WP:REFPUNC]]) with regard to the location of the comma:
 **:: &quot;{{As of| {{CURRENTYEAR}}| {{CURRENTMONTH}}|{{CURRENTDAY}}}}&lt;sup&gt;&amp;#91;update&amp;#93;&lt;/sup&gt;, no more bears were found&quot;.
 *'''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.
 
 ===Examples===
 &lt;!-- NOTE: DO NOT copy and paste this code to use the template. Copy and paste what it renders for today's date --&gt;
 :{{tlc|As of|{{CURRENTYEAR}}}}  – {{As of|{{CURRENTYEAR}}}}
 :{{tlc|As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}}}  – {{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}}}
 :{{tlc|As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}  – {{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}
 :{{tlc|As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|df{{=}}US}}  –  {{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|df=US}}
 :{{tlc|As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|lc{{=}}y}}  –  {{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|lc=y}}
 &lt;!-- As this next example is referring to the census date, doesn't make sense to use current date --&gt;
 :{{tlc|As of|2010|4|1|alt{{=}}as of the &lt;nowiki&gt;[[2010 United States Census]]&lt;/nowiki&gt;}} – {{As of|2010|4|1|alt=as of the [[2010 United States Census]]}}
 :{{tlc|As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|url{{=}}&lt;nowiki&gt;https://en.wikipedia.org/&lt;/nowiki&gt;}} returns:
 :: ''for logged in users, with links displayed (see [[Wikipedia:As of#Article maintenance|Wikipedia:As of]])'' – As of {{MONTHNAME|{{CURRENTMONTH}}}}{{space}}{{CURRENTYEAR}}&lt;sup class=&quot;plainlinks&quot;&gt;[https://en.wikipedia.org/ &amp;#91;ref&amp;#93;]&lt;/sup&gt;
 :: ''for all other users'' – As of {{MONTHNAME|{{CURRENTMONTH}}}}{{space}}{{CURRENTYEAR}}
 :{{tlc|As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|df{{=}}US|since{{=}}y}}  –  {{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|df=US|since=y}}
 :{{tlc|As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|lc{{=}}y|since{{=}}y}}  –  {{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|lc=y|since=y}}
 
 ===TemplateData===
 {{TemplateDataHeader}}
 &lt;templatedata&gt;{
 &quot;description&quot;: &quot;A template 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. It should not be used for future dates (use {{update after}} instead).&quot;,
 &quot;params&quot;: {
   &quot;1&quot;: {
     &quot;label&quot;: &quot;Year&quot;,
     &quot;description&quot;: &quot;The year the statement is valid to. Must be in full numerical format (yyyy)&quot;,
     &quot;type&quot;: &quot;number&quot;,
     &quot;required&quot;: true
   },
   &quot;2&quot;: {
     &quot;label&quot;: &quot;Month&quot;,
     &quot;description&quot;: &quot;The month the statement is valid to. Full, abbreviated or numerical formats supported (mm recommended)&quot;,
     &quot;type&quot; : &quot;string/line&quot;,
     &quot;required&quot;: false
   },
   &quot;3&quot;: {
     &quot;label&quot;: &quot;Day&quot;,
     &quot;description&quot;: &quot;The day the statement is valid to (not included in link). Numerical format only (dd)&quot;,
     &quot;type&quot;: &quot;number&quot;,
     &quot;required&quot;: false
   },
   &quot;alt&quot;: {
     &quot;label&quot;: &quot;Alternate wording&quot;,
     &quot;description&quot;: &quot;Use different wording for the visible text output; if set, values for 'Date format' (df) and 'Lower case' (lc) parameters are ignored&quot;,
     &quot;type&quot;: &quot;string/line&quot;,
     &quot;required&quot;: false
   },
   &quot;df&quot;: {
     &quot;label&quot;: &quot;Date format&quot;,
     &quot;description&quot;: &quot;Set to US to use U.S. date format (mdy) (default is dmy)&quot;,
     &quot;type&quot;: &quot;string/line&quot;,
     &quot;default&quot;: &quot;US&quot;,
     &quot;required&quot;: false
   },
   &quot;lc&quot;: {
     &quot;label&quot;: &quot;Lower case&quot;,
     &quot;description&quot;: &quot;Specify y to use lower case&quot;,
     &quot;type&quot;: &quot;string/line&quot;,
     &quot;required&quot;:false
   },
   &quot;since&quot;: {
     &quot;label&quot;: &quot;Since&quot;,
     &quot;description&quot;: &quot;Specify y to replace 'as of' with 'since'.&quot;,
     &quot;type&quot;: &quot;string/line&quot;,
     &quot;required&quot;: false
   },
   &quot;url&quot;: {
     &quot;label&quot;: &quot;URL&quot;,
     &quot;description&quot;: &quot;A URL for 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&quot;,
     &quot;type&quot;: &quot;string/line&quot;,
     &quot;required&quot;: false
   }
 }}
 &lt;/templatedata&gt;
 
 ==See also==
 *{{tl|Category as of}}
 *{{tl|Show by date}}/{{tls|Show by}}
 *{{tl|Start date and age}}
 *{{tl|Update}}
 *{{tl|Update after}}
 *{{tl|When}}
 *[[Wikipedia:As of]]
 *[[Wikipedia:Avoid statements that will date quickly]]
 *[[:Category:All articles containing potentially dated statements]]
 
 &lt;includeonly&gt;{{#ifeq:{{SUBPAGENAME}}|sandbox |
 | &lt;!-- ADD CATEGORIES BELOW THIS LINE --&gt;
 [[Category:Inline templates]]
 [[Category:Temporal templates]]
 [[Category:Time and date maintenance templates]]