Template:Date

From Mirrorplay: Fae
Jump to navigation Jump to search

{{safesubst:#switch:none

|{{safesubst:#iferror: {{safesubst:#time:Y_M_d| }} | none }} 
|{{safesubst:#iferror: {{safesubst:#expr: +0 }}
   |
   |{{safesubst:#ifexpr: +0 > 10000000000000
      |
      |{{safesubst:#ifeq: {{safesubst:#expr:+0}} | 
         | none 
         | 
       }}
    }}
 }}
|{{safesubst:#switch:   | none | asis | link | lnone =none }}
|{{safesubst:#ifexpr:  {{safesubst:#time:Y| }} < 1000 | none }}
|{{safesubst:#switch:  {{safesubst:#time:Ynj| }}|100031|110031|130031|140031|150031=none}}
|= {{safesubst:#if:
     |{{safesubst:#switch:{{{2}}}
        |link|lnone|l=[[{{{1}}}]]
        |{{{1}}}
      }}
   }}
|
 {{safesubst:#ifeq:{{safesubst:#time:Y|{{{1}}} 2008}}{{safesubst:#iferror: {{safesubst:#ifexpr: {{{1}}}>10000000000000 | no }} | }}{{safesubst:#time:Y|{{{1}}} 2004}}
 |20082004
 |
   {{safesubst:#ifeq:{{safesubst:#time:d|{{{1}}} 2036}}|{{safesubst:#time:d|{{{1}}} }}
   |{{safesubst:#time:
     {{safesubst:#switch: {{safesubst:#ifeq:|y|l}}
     | lmdy | liso | lymd      = F j
     | mdy  | iso  | ymd       = F j
     | ldmy | l                = j F
     | #default                = j F
     }}|{{{1}}} 2000 }}
   |{{safesubst:#time:
     {{safesubst:#switch: {{safesubst:#ifeq:|y|l}}
     | lmdy | liso | lymd 
     | ldmy | l                = F
     | #default                = F
     }}|{{{1}}} 2000 }}
   }}
 |
   {{safesubst:#if: {{safesubst:#iferror:{{safesubst:#time:j|2 }}|*D*|{{safesubst:#iferror:{{safesubst:#time:j|2000 }}|*D*| }}}}
   |{{safesubst:#time:
     {{safesubst:#switch: {{safesubst:#ifeq:|y|l}}
     | lmdy                    = F j, Y
     | mdy                     = F j, Y
     | liso                    = Y-m-d
     | iso                     = Y-m-d
     | lymd                    = Y F j
     | ymd                     = Y F j
     | ldmy | l                = j F Y
     | #default                = j F Y
     }}| }}
   |{{safesubst:#time:
     {{safesubst:#switch: {{safesubst:#ifeq:|y|l}}
     | lmdy | liso | lymd | ldmy | l  = F Y
     | #default                = F Y
     }}| }}
   }}
 }}    

}}