Difference between revisions of "Template:Countdown/testcases"
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}} | ||
| − | + | ||
== 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 | + | {{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 | + | {{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 | + | {{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 | + | {{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 | + | {{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 | + | {{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
| 42px | This is the template test cases page for the sandbox of Template:Countdown. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Testing sandbox version
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)