Difference between revisions of "Template:Countdown/testcases"
imported>Technical 13 (I remembered the loophole...) |
imported>Technical 13 (using seconds for duration doesn't help any.) |
||
| 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=hour=0{{!}}minute=0{{!}}second=0{{!}}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={{#expr:{{#time:t|-1 month}}*60*60*24}}|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={{#expr:{{#time:t|-1 month}}*60*60*24}}|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=hour=0{{!}}minute=0{{!}}second=0{{!}}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=hour=0{{!}}minute=0{{!}}second=0{{!}}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=hour=0{{!}}minute=0{{!}}second=0{{!}}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={{#expr:{{#time:t|-1 month}}*60*60*24}}|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={{#expr:{{#time:t|-1 month}}*60*60*24}}|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=hour=0{{!}}minute=0{{!}}second=0{{!}}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=hour=0{{!}}minute=0{{!}}second=0{{!}}event=the event starts{{!}}eventstart=STARTED{{!}}eventend=ENDED}} | ||
Revision as of 03:17, 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=2419200|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 5 days, 20 hours, 10 minutes and 22 seconds 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=2419200|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 5 days, 20 hours, 10 minutes and 22 seconds 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 5 days, 20 hours, 10 minutes and 22 seconds 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 5 days, 20 hours, 10 minutes and 22 seconds until the event starts. (refresh)