Changes

1,235 bytes removed ,  15:08, 3 May 2019
Undid revision 3221372 by 86.134.218.221 (talk)
Line 4: Line 4:  
## optional param 2 is the month
 
## optional param 2 is the month
 
## optional param 3 is the day of the month
 
## optional param 3 is the day of the month
## optional named parameter alt=[text] is alternative display text (may include wiki markup)
  −
## optional named parameter df=US produces American date format in displayed text
  −
## optional named parameter lc=on gives lower-case-first output
  −
## optional named parameter url=[URL] gives statement reference
      
## displayed text ([A/a]s of [Start date] by default)
 
## 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:{{{pre|}}}|{{{pre}}}&#32;}}{{#if: {{{3|}}} | {{#ifeq:{{lc:{{{df|}}}}}|us|{{MONTHNAME|{{{2}}}}}&nbsp;{{#expr:{{{3}}}}},&#32;|{{#expr:{{{3}}}}}&nbsp;{{MONTHNAME|{{{2}}}}}&nbsp;}}{{{1}}}|{{#if: {{{2|}}} |{{MONTHNAME|{{{2}}}}}&nbsp;}}{{{1}}}}}}}{{#if:{{{post|}}}|<nowiki />{{{post}}}}}<!--
+
-->{{#if: {{{lc|}}} | a | A }}s of {{#if: {{{3|}}}
#### That nowiki is required or, various characters (:, ;, #, and *} will be parsed as wikisyntax for list items.
+
| {{#time: j F Y| {{{1}}}-{{{2}}}-{{{3}}} }}
 +
| {{#if: {{{2|}}}
 +
  | {{#time: F Y| {{{1}}}-{{{2}}}-01 }}
 +
  | {{{1}}}
 +
  }}
 +
}}<!--
 +
 
 
## ref/update inline banner (hidden by default)
 
## 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><!--
+
--><sup class="plainlinks noprint asof-tag update" style="display:none;">[{{fullurl:{{PAGENAME}}|action=edit}} &#91;update&#93;}}]</sup><!--
 
  −
## categorisation disabled outside main namespace
  −
-->{{DMCA|Articles containing potentially dated statements|from|<!--
  −
 
  −
## temporal category for template (word method)
  −
-->{{#if: {{#ifexpr: {{{1}}} = 1 }} | {{#ifexpr: {{#time:Y|{{{1}}}}} > 2004 | {{{1}}} | {{#ifexpr: {{#time:Y|{{{1}}}}} > 1989 | {{#time:Y|{{{1}}}}} | before 1990 }}}} | <!--
  −
 
  −
## temporal category for template (parameter method)
  −
-->{{#ifexpr: {{{1}}} > 2004 | {{#if:{{{2|}}} | {{MONTHNAME|{{{2}}}}} }} {{{1}}} | {{#ifexpr:{{{1}}} > 1989 | {{{1}}} | before 1990 }}}}}}|<!--
     −
## global category for template
+
## Replace enwiki's convoluted DMCA template ("dated maintenance category - articles") with something simpler.
-->All articles containing potentially dated statements}}</includeonly><!--{{As of}} end--><noinclude><!--  
+
-->[[Category:All articles containing potentially dated statements]]</includeonly><!-- End of template --><noinclude><!--  
    
## dynamic example (as of today, self ref)
 
## dynamic example (as of today, self ref)
   −
-->{{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}<sup class="plainlinks">[https://en.wikipedia.org/wiki/Template:As_of &#91;ref&#93;]</sup>
+
-->As of {{#time: j F Y}}<sup class="plainlinks">[http://en.wikipedia.org/wiki/Template:As_of &#91;ref&#93;]</sup>
    
{{documentation}}
 
{{documentation}}
Anonymous user