Difference between revisions of "Template:Countdown/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Technical 13
(Fixing display issue with {{Tlp|}} template having a technical limit of 9 parameters.)
imported>Technical 13
(I remembered the loophole...)
Line 1: Line 1:
 
{{template test cases notice}}
 
{{template test cases notice}}
'''ALL templates have <code>|hour=0|minute=0|second=0</code> set the same.
+
 
  
 
== Testing sandbox version ==
 
== Testing sandbox version ==
Line 8: Line 8:
 
{{Countdown/sandbox}}
 
{{Countdown/sandbox}}
  
{{tlp|countdown/sandbox|2=year={{#time:Y|-1 month}}|3=month={{#time:m|-1 month}}|4=day=1|5=duration={{#time:t|-1 month}}|6=event=the event starts|7=eventstart=STARTED|8=eventend=ENDED}}
+
{{tlp|countdown/sandbox|2=year={{#time:Y|-1 month}}|3=month={{#time:m|-1 month}}|4=day=1|5=duration={{#time:t|-1 month}}|6=hour=0{{!}}minute=0{{!}}second=0{{!}}event=the event starts{{!}}eventstart=STARTED{{!}}eventend=ENDED}}
  
 
{{countdown/sandbox|year={{#time:Y|-1 month}}|month={{#time:m|-1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t|-1 month}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
 
{{countdown/sandbox|year={{#time:Y|-1 month}}|month={{#time:m|-1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t|-1 month}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
  
{{tlp|countdown/sandbox|2=year={{#time:Y}}|3=month={{#time:m}}|4=day=1|5=duration={{#time:t}}|6=event=the event starts|7=eventstart=STARTED|8=eventend=ENDED}}
+
{{tlp|countdown/sandbox|2=year={{#time:Y}}|3=month={{#time:m}}|4=day=1|5=duration={{#time:t}}|6=hour=0{{!}}minute=0{{!}}second=0{{!}}event=the event starts{{!}}eventstart=STARTED{{!}}eventend=ENDED}}
  
 
{{countdown/sandbox|year={{#time:Y}}|month={{#time:m}}|day=1|hour=0|minute=0|second=0|duration={{#time:t}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
 
{{countdown/sandbox|year={{#time:Y}}|month={{#time:m}}|day=1|hour=0|minute=0|second=0|duration={{#time:t}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
  
{{tlp|countdown/sandbox|2=year={{#time:Y|+1 month}}|3=month={{#time:m|+1 month}}|4=day=1|5=duration={{#time:t|+1 month}}|6=event=the event starts|7=eventstart=STARTED|8=eventend=ENDED}}
+
{{tlp|countdown/sandbox|2=year={{#time:Y|+1 month}}|3=month={{#time:m|+1 month}}|4=day=1|5=duration={{#time:t|+1 month}}|6=hour=0{{!}}minute=0{{!}}second=0{{!}}event=the event starts{{!}}eventstart=STARTED{{!}}eventend=ENDED}}
  
 
{{countdown/sandbox|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t|+1 month}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
 
{{countdown/sandbox|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t|+1 month}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
Line 28: Line 28:
 
{{Countdown}}
 
{{Countdown}}
  
{{tlp|countdown|2=year={{#time:Y|-1 month}}|3=month={{#time:m|-1 month}}|4=day=1|5=duration={{#time:t|-1 month}}|6=event=the event starts|7=eventstart=STARTED|8=eventend=ENDED}}
+
{{tlp|countdown|2=year={{#time:Y|-1 month}}|3=month={{#time:m|-1 month}}|4=day=1|5=duration={{#time:t|-1 month}}|6=hour=0{{!}}minute=0{{!}}second=0{{!}}event=the event starts{{!}}eventstart=STARTED{{!}}eventend=ENDED}}
  
 
{{countdown|year={{#time:Y|-1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t|-1 month}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
 
{{countdown|year={{#time:Y|-1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t|-1 month}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
  
{{tlp|countdown|2=year={{#time:Y}}|3=month={{#time:m}}|4=day=1|5=duration={{#time:t}}|6=event=the event starts|7=eventstart=STARTED|8=eventend=ENDED}}
+
{{tlp|countdown|2=year={{#time:Y}}|3=month={{#time:m}}|4=day=1|5=duration={{#time:t}}|6=hour=0{{!}}minute=0{{!}}second=0{{!}}event=the event starts{{!}}eventstart=STARTED{{!}}eventend=ENDED}}
  
 
{{countdown|year={{#time:Y}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
 
{{countdown|year={{#time:Y}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
  
{{tlp|countdown|2=year={{#time:Y|+1 month}}|3=month={{#time:m|+1 month}}|4=day=1|5=duration={{#time:t|+1 month}}|6=event=the event starts|7=eventstart=STARTED|8=eventend=ENDED}}
+
{{tlp|countdown|2=year={{#time:Y|+1 month}}|3=month={{#time:m|+1 month}}|4=day=1|5=duration={{#time:t|+1 month}}|6=hour=0{{!}}minute=0{{!}}second=0{{!}}event=the event starts{{!}}eventstart=STARTED{{!}}eventend=ENDED}}
  
 
{{countdown|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t|+1 month}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}
 
{{countdown|year={{#time:Y|+1 month}}|month={{#time:m|+1 month}}|day=1|hour=0|minute=0|second=0|duration={{#time:t|+1 month}}|event=the event starts|eventstart=STARTED|eventend=ENDED}}

Revision as of 00:42, 20 September 2013


Testing sandbox version

{{Countdown/sandbox}}

Error: year, month, and day must be specified

{{countdown/sandbox|year=2026|month=02|day=1|duration=28|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}

ENDED (refresh)

{{countdown/sandbox|year=2026|month=03|day=1|duration=31|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}

ENDED (refresh)

{{countdown/sandbox|year=2026|month=04|day=1|duration=30|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}

There are 4 days, 13 hours and 16 minutes until the event starts. (refresh)

Testing main template

{{Countdown}}

Error: year, month, and day must be specified

{{countdown|year=2026|month=02|day=1|duration=28|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}

There are 4 days, 13 hours and 16 minutes until the event starts. (refresh)

{{countdown|year=2026|month=03|day=1|duration=31|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}

There are 4 days, 13 hours and 16 minutes until the event starts. (refresh)

{{countdown|year=2026|month=04|day=1|duration=30|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}

There are 4 days, 13 hours and 16 minutes until the event starts. (refresh)