Template:Start date: Difference between revisions

From Cibernética Americana
Jump to navigationJump to search
m (Protected "Template:Start date" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
No edit summary
 
Line 1: Line 1:
<!--{{As of}} begin--><includeonly><!--
<includeonly>{{#if: {{{4|}}}
 
  |{{#if: {{{5|}}}
## param 1 is the year
    |{{padleft:{{{4}}}|2|0}}:{{padleft:{{{5}}}|2|0}}{{#if: {{{6|}}}
## optional param 2 is the month
                                                  |&#58;{{padleft:{{{6}}}|2|0}} }},&#32;}} }}<!--ABOVE FOR TIME; BELOW FOR DATE
## optional param 3 is the day of the month
-->{{#if: {{{1|}}}
## optional named parameter alt=[text] is alternative display text (may include wiki markup)
    |{{#if: {{{2|}}}
## optional named parameter df=US produces American date format in displayed text
        |{{#if: {{{3|}}}
## optional named parameter lc=on gives lower-case-first output
          |{{#if: {{{df|}}}|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},}} {{{1}}}|{{MONTHNAME|{{{2}}}}} {{{1}}}}}|{{{1}}}}}}}{{#if: {{{7|}}}
## optional named parameter url=[URL] gives statement reference
              |&#32;({{#ifeq: {{{7}}}|Z|UTC|{{{7}}}}})}}<!-- BELOW FOR hCalendar
 
--><span style="display:none">&#160;(<span class="bday dtstart published updated">{{#if: {{{1|}}}
## displayed text ([A/a]s of [Start date] by default)
  | {{{1}}}{{#if: {{{2|}}}
-->{{#if: {{{alt|}}} | {{{alt}}} | {{#ifeq: {{{lc}}} | {{{lc|}}} | a | A }}s of {{#if: {{{3|}}} | {{Start date | {{{1}}} | {{MONTHNUMBER|{{{2}}}}} | {{{3}}} | df={{#ifeq:{{{df|}}}|US||yes}} }} | {{#if: {{{2|}}} | {{MONTHNAME|{{{2}}}}} }} {{{1}}} }}}}<!--
    | -{{padleft:{{{2}}}|2|0}}{{#if: {{{3|}}}
 
        | -{{padleft:{{{3}}}|2|0}} }} }}<!--
## ref/update inline banner (hidden by default)
-->{{#if: {{{4|}}}
--><sup class="plainlinks noprint asof-tag {{#if:{{{url|}}}|ref|update}}" style="display:none;">[{{#if:{{{url|}}}|{{{url}}} &#91;ref&#93;|{{fullurl:{{PAGENAME}}|action=edit}} &#91;update&#93;}}]</sup><!--
    | T{{padleft:{{{4}}}|2|0}}{{#if: {{{5|}}}
 
        | &#58;{{padleft:{{{5}}}|2|0}}{{#if: {{{6|}}}
## categorisation disabled outside main namespace
          | &#58;{{padleft:{{{6}}}|2|0}} }} }} }} }}{{{7|}}}</span>)</span></includeonly><noinclude>
-->{{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
-->All articles containing potentially dated statements}}</includeonly><!--{{As of}} end--><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>
 
{{documentation}}
{{documentation}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 04:29, 6 May 2011

[create] Template documentation