Difference between revisions of "Template:Date"

From Timelines
Jump to: navigation, search
m (Changed protection level of Template:Date: Highly visible template ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
(Moved sandbox live to fix wrong output when substituted)
 
Line 11: Line 11:
 
     }}
 
     }}
 
   }}
 
   }}
  |{{{{{|safesubst:}}}#switch:  {{lc:{{{2|}}}}} | none | asis | link | lnone =none }}
+
  |{{{{{|safesubst:}}}#switch:  {{{{{|safesubst:}}}lc:{{{2|}}}}} | none | asis | link | lnone =none }}
 
  |{{{{{|safesubst:}}}#ifexpr:  {{{{{|safesubst:}}}#time:Y|{{{1|}}} }} < 1000 | none }}
 
  |{{{{{|safesubst:}}}#ifexpr:  {{{{{|safesubst:}}}#time:Y|{{{1|}}} }} < 1000 | none }}
 
  |{{{{{|safesubst:}}}#switch:  {{{{{|safesubst:}}}#time:Ynj|{{{1|}}} }}|100031|110031|130031|140031|150031=none}}
 
  |{{{{{|safesubst:}}}#switch:  {{{{{|safesubst:}}}#time:Ynj|{{{1|}}} }}|100031|110031|130031|140031|150031=none}}
Line 29: Line 29:
 
     {{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#time:d|{{{1}}} 2036}}|{{{{{|safesubst:}}}#time:d|{{{1}}} }}
 
     {{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#time:d|{{{1}}} 2036}}|{{{{{|safesubst:}}}#time:d|{{{1}}} }}
 
     |<noinclude><!-- month+day --></noinclude>{{{{{|safesubst:}}}#time:
 
     |<noinclude><!-- month+day --></noinclude>{{{{{|safesubst:}}}#time:
       {{{{{|safesubst:}}}#switch: {{lc: {{{{{|safesubst:}}}#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
+
       {{{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}lc: {{{{{|safesubst:}}}#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
 
       | lmdy | liso | lymd      = [[:F j]]
 
       | lmdy | liso | lymd      = [[:F j]]
 
       | mdy  | iso  | ymd      = F j
 
       | mdy  | iso  | ymd      = F j
Line 36: Line 36:
 
       }}|{{{1}}} 2000 }}<noinclude><!-- default='dmy' or null or "" or unsupported option --></noinclude>
 
       }}|{{{1}}} 2000 }}<noinclude><!-- default='dmy' or null or "" or unsupported option --></noinclude>
 
     |<noinclude><!-- month only --></noinclude>{{{{{|safesubst:}}}#time:
 
     |<noinclude><!-- month only --></noinclude>{{{{{|safesubst:}}}#time:
       {{{{{|safesubst:}}}#switch: {{lc: {{{{{|safesubst:}}}#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
+
       {{{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}lc: {{{{{|safesubst:}}}#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
 
       | lmdy | liso | lymd  
 
       | lmdy | liso | lymd  
 
       | ldmy | l                = [[F]]
 
       | ldmy | l                = [[F]]
Line 45: Line 45:
 
     {{{{{|safesubst:}}}#if: {{{{{|safesubst:}}}#iferror:{{{{{|safesubst:}}}#time:j|2 {{{1|}}}}}|*D*|{{{{{|safesubst:}}}#iferror:{{{{{|safesubst:}}}#time:j|2000 {{{1|}}}}}|*D*| }}}}
 
     {{{{{|safesubst:}}}#if: {{{{{|safesubst:}}}#iferror:{{{{{|safesubst:}}}#time:j|2 {{{1|}}}}}|*D*|{{{{{|safesubst:}}}#iferror:{{{{{|safesubst:}}}#time:j|2000 {{{1|}}}}}|*D*| }}}}
 
     |<noinclude><!-- day+month+year --></noinclude>{{{{{|safesubst:}}}#time:
 
     |<noinclude><!-- day+month+year --></noinclude>{{{{{|safesubst:}}}#time:
       {{{{{|safesubst:}}}#switch: {{lc: {{{{{|safesubst:}}}#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
+
       {{{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}lc: {{{{{|safesubst:}}}#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
 
       | lmdy                    = [[:F j]], [[Y]]
 
       | lmdy                    = [[:F j]], [[Y]]
 
       | mdy                    = F j, Y
 
       | mdy                    = F j, Y
Line 56: Line 56:
 
       }}|{{{1|}}} }}<noinclude><!-- #default='dmy' or null or "" or unsupported option --></noinclude>
 
       }}|{{{1|}}} }}<noinclude><!-- #default='dmy' or null or "" or unsupported option --></noinclude>
 
     |<noinclude><!-- month+year --></noinclude>{{{{{|safesubst:}}}#time:
 
     |<noinclude><!-- month+year --></noinclude>{{{{{|safesubst:}}}#time:
       {{{{{|safesubst:}}}#switch: {{lc: {{{{{|safesubst:}}}#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
+
       {{{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}lc: {{{{{|safesubst:}}}#ifeq:{{{3|}}}|y|L}}{{{2|}}} }}
 
       | lmdy | liso | lymd | ldmy | l  = [[:F Y]]
 
       | lmdy | liso | lymd | ldmy | l  = [[:F Y]]
 
       | #default                = F Y
 
       | #default                = F Y

Latest revision as of 08:05, 12 September 2015

18 December 2024

Template documentation[create]