Difference between revisions of "Template:Is now"

From blackwiki
Jump to navigation Jump to search
imported>Davidwr
(New "is now" template, returns 1 if {{#time: {{{format string|U}}} matches any of {{{at1}}} through {{{at31}}}, 0 otherwise. To be used by other templates)
 
imported>Davidwr
(fix debug issue)
Line 7: Line 7:
 
               at1=12 at2=13 at3=14 at4=15 at5=16 at6=17 at7=18 at8=19 at9=20
 
               at1=12 at2=13 at3=14 at4=15 at5=16 at6=17 at7=18 at8=19 at9=20
 
               at10=21 at11=22 at12=23
 
               at10=21 at11=22 at12=23
 +
        * debug - if 1 then format string is printed, useful for debugging
 
  -->
 
  -->
−
{{#if: {{{debug|}}}|{{#time: {{{format string|U}}} }},|}}
+
{{#if: {{{debug|}}}|{{#time: {{{format string|U}}} }},}}
 
{{#switch: {{#time: {{{format string|U}}} }}
 
{{#switch: {{#time: {{{format string|U}}} }}
 
   |{{{at1|}}} |{{{at2|}}} |{{{at3|}}}  
 
   |{{{at1|}}} |{{{at2|}}} |{{{at3|}}}  

Revision as of 16:24, 1 April 2014


0