Vorlage:Date: Unterschied zwischen den Versionen

K
89 Versionen von wpen:Template:Date importiert
K (m)
K (89 Versionen von wpen:Template:Date importiert)
 
(73 dazwischenliegende Versionen von 17 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly>{{#ifeq:{{</includeonly><includeonly>subst:</includeonly><includeonly>void}}|{</includeonly><includeonly>{void}}|</includeonly><includeonly><span style="font-size: large; color: red">'''<nowiki>{{</nowiki>date<nowiki>}}</nowiki> must not be [[Wikipedia:Template substitution|substituted]]. Use <span style="color:green"><nowiki>{{subst:</nowiki>today<nowiki>}}</nowiki></span> instead.'''</span>}}
{{safesubst:<noinclude/>#switch:none
<span class="wpAutoDate">{{#iferror:{{#time: Y|{{{1|einval}}} }}
|{{safesubst:<noinclude/>#iferror: {{safesubst:<noinclude/>#time:Y_M_d|{{{1|}}} }} | none }} <noinclude><!-- #time: can't handle --></noinclude>
  |{{{1|{{ #time:j F Y| }}}}}
|{{safesubst:<noinclude/>#iferror: {{safesubst:<noinclude/>#expr: {{{1|}}}+0 }}
   |{{#time:{{#ifeq:{{#time:Y|{{{1|einval}}} 2000}}|{{#time:Y|{{{1|einval}}} 2001}}|j F Y|j F}}| {{{1|einval}}}}}
    |<noinclude><!--not a pure number--></noinclude>
}}</span></includeonly><noinclude>
    |{{safesubst:<noinclude/>#ifexpr: {{{1|}}}+0 > 10000000000000
<!--  
      |<noinclude><!-- a yyyymmddhhmmss timestamp --></noinclude>
** The reformatting stuff is temporary and pending resolution of bug #4582.
      |{{safesubst:<noinclude/>#ifeq: {{safesubst:<noinclude/>#expr:{{{1|}}}+0}} | {{{1|}}}
** It would not have been necessary at the moment either if someone didn't
          | none <noinclude><!-- pure number eg 123.456 --></noinclude>
** "urgently" need to have dates (emitted by {{citation}}) reformatted.
          | <noinclude><!-- assume yy-mm-dd --></noinclude>
** A handler for wpAutoDate is in the works. PLEASE BE PATIENT.  
        }}
-->
    }}
{{template doc}}
  }}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
|{{safesubst:<noinclude/>#switch:  {{safesubst:<noinclude/>lc:{{{2|}}}}} | none | asis | link | lnone =none }}
|{{safesubst:<noinclude/>#ifexpr:  {{safesubst:<noinclude/>#time:Y|{{{1|}}} }} < 1000 | none }}
|{{safesubst:<noinclude/>#switch:  {{safesubst:<noinclude/>#time:Ynj|{{{1|}}} }}|100031|110031|130031|140031|150031=none}}
|= {{safesubst:<noinclude/>#if:{{{1|}}}
      |{{safesubst:<noinclude/>#switch:{{{2}}}
        |link|lnone|l=[[{{{1}}}]]
        |{{{1}}}
      }}
    }}<noinclude><!-- error or "none", so no formatting --></noinclude>
|<noinclude><!-- continue with formatting --></noinclude>
  {{safesubst:<noinclude/>#ifeq:<noinclude><!--
    --></noinclude>{{safesubst:<noinclude/>#time:Y|{{{1}}} 2008}}<noinclude><!--
    --></noinclude>{{safesubst:<noinclude/>#iferror: {{safesubst:<noinclude/>#ifexpr: {{{1}}}>10000000000000 | no }} | }}<noinclude><!--
    --></noinclude>{{safesubst:<noinclude/>#time:Y|{{{1}}} 2004}}
   |20082004
  |<noinclude><!-- no year --></noinclude>
    {{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>#time:d|{{{1}}} 2036}}|{{safesubst:<noinclude/>#time:d|{{{1}}} }}
    |<noinclude><!-- month+day --></noinclude>{{safesubst:<noinclude/>#time:
      {{safesubst:<noinclude/>#switch: {{safesubst:<noinclude/>lc: {{safesubst:<noinclude/>#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
      | lmdy | liso | lymd      = [[:F j]]
      | mdy  | iso  | ymd      = F j
      | ldmy | l                = [[:j F]]
      | #default                = j F
      }}|{{{1}}} 2000 }}<noinclude><!-- default='dmy' or null or "" or unsupported option --></noinclude>
    |<noinclude><!-- month only --></noinclude>{{safesubst:<noinclude/>#time:
      {{safesubst:<noinclude/>#switch: {{safesubst:<noinclude/>lc: {{safesubst:<noinclude/>#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
      | lmdy | liso | lymd
      | ldmy | l                = [[F]]
      | #default                = F
      }}|{{{1}}} 2000 }}<noinclude><!-- default='dmy'/'mdy'/'ymd'/'iso'/null/""/unsupported opt --></noinclude>
    }}
  |<noinclude><!-- with year--></noinclude>
    {{safesubst:<noinclude/>#if: {{safesubst:<noinclude/>#iferror:{{safesubst:<noinclude/>#time:j|2 {{{1|}}}}}|*D*|{{safesubst:<noinclude/>#iferror:{{safesubst:<noinclude/>#time:j|2000 {{{1|}}}}}|*D*| }}}}
    |<noinclude><!-- day+month+year --></noinclude>{{safesubst:<noinclude/>#time:
      {{safesubst:<noinclude/>#switch: {{safesubst:<noinclude/>lc: {{safesubst:<noinclude/>#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
      | lmdy                    = [[:F j]], [[Y]]
      | mdy                    = F j, Y
      | liso                    = [[Y|Y-]][[F j|m-d]]<noinclude><!-- i.e. [[Y-m-d]] --></noinclude>
      | iso                    = Y-m-d
      | lymd                    = [[Y]] [[:F j]]
      | ymd                    = Y F j
      | ldmy | l                = [[:j F]] [[Y]]
      | #default                = j F Y
      }}|{{{1|}}} }}<noinclude><!-- #default='dmy' or null or "" or unsupported option --></noinclude>
    |<noinclude><!-- month+year --></noinclude>{{safesubst:<noinclude/>#time:
      {{safesubst:<noinclude/>#switch: {{safesubst:<noinclude/>lc: {{safesubst:<noinclude/>#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
      | lmdy | liso | lymd | ldmy | l  = [[:F Y]]
      | #default                = F Y
      }}|{{{1|}}} }}<noinclude><!-- default='dmy'/'iso'/'mdy'/null/""/unsupported option --></noinclude>
    }}
  }}   
}}<noinclude>
{{documentation}}
</noinclude>
</noinclude>