Difference between revisions of "Template:Countdown/testcases"
imported>Technical 13 (add linkbar.) |
imported>Technical 13 (minor fix to live template usage..) |
||
| Line 35: | Line 35: | ||
{{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}} | {{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={{#expr:{{#time:t}}*60*60*24}}|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={{#expr:{{#time:t}}*60*60*24}}|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=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}} |
Revision as of 12:12, 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=2678400|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}
STARTED (refresh)
{{countdown/sandbox|year=2026|month=04|day=1|duration=2592000|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 6 days, 7 hours, 19 minutes and 47 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 6 days, 7 hours, 19 minutes and 47 seconds until the event starts. (refresh)
{{countdown|year=2026|month=03|day=1|duration=2678400|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 6 days, 7 hours, 19 minutes and 47 seconds until the event starts. (refresh)
{{countdown|year=2026|month=04|day=1|duration=2592000|hour=0|minute=0|second=0|event=the event starts|eventstart=STARTED|eventend=ENDED}}
There are 6 days, 7 hours, 19 minutes and 47 seconds until the event starts. (refresh)