模板:Date

Ph9讨论 | 贡献2020年12月27日 (日) 14:47的版本 (导入1个版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{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
     }}| }}
   }}
 }}    

}}

50px Template documentation[create]