Difference between revisions of "Template:Date/sandbox"

1,547 bytes added ,  14:55, 3 February 2009
m
1 revision
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
<noinclude>
{{#switch:none
{{pp-semi-protected|small=yes}}</noinclude>
|{{#iferror: {{#time:Y_M_d|{{{1|}}} }} | none }} <!-- #time: can't handle -->
{{db-meta
|{{#iferror: {{#expr: {{{1|}}}+0 }}
|bot={{{bot|}}}
    |<!--not a pure number-->
|criterion=G6
    |{{#ifexpr: {{{1|}}}+0 > 100000000000
|1={{#if:{{{wording|}}}|&#32;because {{{wording}}}|. It needs to be deleted to merge histories, reverse a redirect, or perform other non-controversial technical tasks}}
      |<!-- a yyyymmddhhmmss timestamp -->
|2={{{1|{{#if:{{{wording|}}}|Asserted to be non-controversial maintenance}}}}}
      |{{#ifeq: {{#expr:{{{1|}}}+0}} | {{{1|}}}
|notes={{#if:{{{wording|}}}||'''Please try to avoid using this template in its default state'''. If you can't [[Wikipedia:Criteria for speedy deletion/Deletion templates|find]] a better tag, please use <code><nowiki>{{db-g6|wording=</nowiki>''reason''<nowiki>}}</nowiki></code>, replacing "reason" with a specific rationale for the requested deletion.}}
          | none <!-- pure number eg 123.456 -->
|summary={{#if:{{{summary|}}}|{{{summary}}}|{{{wording|Housekeeping and routine (non-controversial) cleanup}}}}}
          | <!-- assume yy-mm-dd -->
|temp={{{temp|}}}
        }}
}}<includeonly>{{{category|[[Category:Candidates for speedy deletion]]}}}</includeonly><noinclude>
    }}
{{db doc|G6}} </noinclude>
  }}
|{{#switch:  {{lc:{{{2|}}}}} | none | asis=none }}
|{{#ifexpr:  {{#time:Y|{{{1|}}} }} < 1000 | none }}
|{{#switch:  {{#time:Ynj|{{{1|}}} }}|100031|110031|130031|140031|150031=none}}
|= {{{1|}}}<!-- error or "none", so no formatting -->
|<!-- continue with formatting -->
  {{#ifeq:{{#time:Y|{{{1|1 Jan 2000}}} 2008}}{{#time:Y|{{{1|1 Jan 2000}}} 2004}}|20082004
  |<!-- no year -->
    {{#ifeq:{{#time:d|{{{1|}}} 2036}}|{{#time:d|{{{1|}}} }}
    |<!-- month+day -->{{#time:
      {{#switch: {{lc: {{#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
      | lmdy | liso | lymd      = [[:F j]]
      | mdy  | iso  | ymd      = F j
      | ldmy | l                = [[:j F]]
      | #default                = j F
      }}|{{{1|}}} 2000 }}<!-- default='dmy' or null or "" or unsupported option -->
    |<!-- month only -->{{#time:
      {{#switch: {{lc: {{#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
      | lmdy | liso | lymd
      | ldmy | l                = [[F]]
      | #default                = F
      }}|{{{1|}}} 2000 }}<!-- default='dmy'/'mdy'/'ymd'/'iso'/null/""/unsupported opt -->
    }}
  |<!-- with year-->
    {{#if: {{#iferror:{{#time:j|2 {{{1|}}}}}|*D*|{{#iferror:{{#time:j|2000 {{{1|}}}}}|*D*| }}}}
    |<!-- day+month+year -->{{#time:
      {{#switch: {{lc: {{#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
      | lmdy                    = [[:F j]], [[Y]]
      | mdy                    = F j, Y
      | liso                    = [[Y|Y-]][[F j|m-d]]<!-- i.e. [[Y-m-d]] -->
      | iso                    = Y-m-d
      | lymd                    = [[Y]] [[:F j]]
      | ymd                    = Y F j
      | ldmy | l                = [[:j F]] [[Y]]
      | #default                = j F Y
      }}|{{{1|}}} }}<!-- #default='dmy' or null or "" or unsupported option -->
    |<!-- month+year -->{{#time:
      {{#switch: {{lc: {{#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
      | lmdy | liso | lymd | ldmy | l  = [[:F Y]]
      | #default                = F Y
      }}|{{{1|}}} }}<!-- default='dmy'/'iso'/'mdy'/null/""/unsupported option -->
    }}
  }}   
}}<noinclude>
{{pp-template|small=yes}}
{{documentation}}
</noinclude>
Budlight
Bots, Bureaucrats, Administrators
529

edits