Template:As of: Difference between revisions

651 bytes added ,  2 years ago
m
1 revision imported from templatewiki:Template:As_of
(adding update tag to indicate usage)
m (1 revision imported from templatewiki:Template:As_of)
 
(33 intermediate revisions by 21 users not shown)
Line 1:
<!--{{As of}} begin--><includeonly><!--
 
## param 1 is the year
Line 10:
 
## displayed text ([A/a]s of [Start date] by default)
-->{{#if: {{{alt|}}} | {{{alt}}} | {{#if:{{{since|}}}|{{#ifeq: {{{lc}}} | {{{lc|}}} | s | S }}ince | {{#ifeq: {{{lc}}} | {{{lc|}}} | a | A }}s of}} {{#if: {{{3pre|}}} | {{Start{pre}}}&#32;}}{{#if: date{{{3|}}} | {{#ifeq:{1{lc:{{{df|}}}}} | us|{{MONTHNUMBERMONTHNAME|{{{2}}}}} | &nbsp;{{#expr:{{{3}}} }},&#32;| df={{#expr:{df{{3}}}}}&nbsp;{{MONTHNAME|yes{{{2}}} }} &nbsp;}}{{{1}}}| {{#if: {{{2|}}} | {{MONTHNAME|{{{2}}}}} &nbsp;}} {{{1}}}}}}}{{#if:{{{post|}}}|<nowiki />{{{post}}}}}<!--
#### That nowiki is required or, various characters (:, ;, #, and *} will be parsed as wikisyntax for list items.
 
## ref/update inline banner (hidden by default)
--><sup class="plainlinks noexcerpt noprint asof-tag {{#if:{{{url|}}}|ref|update}}" style="display:none;">[{{#if:{{{url|}}}|{{{url}}} &#91;ref&#93;|{{fullurl:{{PAGENAME}}|action=edit}} &#91;update&#93;}}]</sup><!--
 
## disable categorisation disabled outside main namespace
-->{{main otherDMCA|[[Category:Articles containing potentially dated statements |from |<!--
 
## temporal category for template (word method)
Line 22:
 
## temporal category for template (parameter method)
-->{{#ifexpr: {{{1}}} > 2004 | {{#if:{{{2|}}} | {{MONTHNAME|{{{2}}}}} }} {{{1}}} | {{#ifexpr:{{{1}}} > 1989 | {{{1}}} | before 1990 }}}}}} ]]|<!--
 
## global category for template
-->[[Category:All articles containing potentially dated statements]]}}</includeonly><!--{{As of}} end--><noinclude><!--
 
## add categories and inter-wikis to the /doc subpage, not here
--></includeonly><noinclude><!--
 
## dynamic example (as of today, self ref)
-->As of {{Start date|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|df=yes}}<sup class="plainlinks">[http://en.wikipedia.org/wiki/Template:As_of &#91;ref&#93;]</sup>
 
-->{{As of {{Start date|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|df=yes}}<sup class="plainlinks">[httphttps://en.wikipedia.org/wiki/Template:As_of &#91;ref&#93;]</sup>
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>
 
##<!-- addAdd categories and inter-wikis to the /doc subpage, not here! -->
 
</noinclude>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using as of template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:As of]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | alt | df | lc | post | pre | since | url }}