imported>Tjtrumpet2323 (→MediaWiki Implementation Tests) |
imported>Tjtrumpet2323 (→MediaWiki Implementation Tests) |
||
Line 5: | Line 5: | ||
{| class="wikitable" style="text-align: left; vertical-align: top; border: 3px solid black; border-collapse: collapse; margin: 1em" border="1" cellpadding="2" | {| class="wikitable" style="text-align: left; vertical-align: top; border: 3px solid black; border-collapse: collapse; margin: 1em" border="1" cellpadding="2" | ||
! Code !! Output | ! Code !! Output | ||
+ | |- | ||
+ | | <nowiki>{{#vardefine: date|2008-07-01}}</nowiki> | ||
+ | | {{#vardefine: date|2008-07-01}} | ||
|- | |- | ||
| <nowiki>{{#dow:2008|07|01}}</nowiki> | | <nowiki>{{#dow:2008|07|01}}</nowiki> | ||
| {{#dow:2008|07|01}} | | {{#dow:2008|07|01}} | ||
|- | |- | ||
− | | <nowiki>{{#dow:{{#time: Y| | + | | <nowiki>{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}}</nowiki> |
− | | {{#dow:{{#time: Y| | + | | {{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |
|- | |- | ||
! Non-30W Code !! Non-30W Output | ! Non-30W Code !! Non-30W Output | ||
|- | |- | ||
− | | <nowiki>{{#md5:{{#time: Y-m-d| | + | | <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} }}</nowiki> |
− | | {{#md5:{{#time: Y-m-d| | + | | {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} }} |
|- | |- | ||
− | | <nowiki>{{#md5:{{#time: Y-m-d| | + | | <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1}}</nowiki> |
− | | {{#md5:{{#time: Y-m-d| | + | | {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1}} |
|- | |- | ||
− | | <nowiki>{{#md5:{{#time: Y-m-d| | + | | <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2}}</nowiki> |
− | | {{#md5:{{#time: Y-m-d| | + | | {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2}} |
|- | |- | ||
! 30W Code !! 30W Output | ! 30W Code !! 30W Output | ||
|- | |- | ||
− | | <nowiki>{{#md5:{{#time: Y-m-d| | + | | <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} }}</nowiki> |
− | | {{#md5:{{#time: Y-m-d| | + | | {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} }} |
|- | |- | ||
− | | <nowiki>{{#md5:{{#time: Y-m-d| | + | | <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1}}</nowiki> |
− | | {{#md5:{{#time: Y-m-d| | + | | {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1}} |
|- | |- | ||
− | | <nowiki>{{#md5:{{#time: Y-m-d| | + | | <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2}}</nowiki> |
− | | {{#md5:{{#time: Y-m-d| | + | | {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2}} |
|} | |} |
Revision as of 17:39, 1 July 2008
My sandbox
MediaWiki Implementation Tests
Code | Output |
---|---|
{{#vardefine: date|2008-07-01}} | |
{{#dow:2008|07|01}} | 11344.64 |
{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} | 11344.64 |
Non-30W Code | Non-30W Output |
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} }} | 14d6b91b54f0a6c5c9a82d7f14358e47 |
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1}} | 14d6b91b54f0a6c |
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2}} | c9a82d7f14358e4 |
30W Code | 30W Output |
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} }} | 44027044ca10c242c510f9b9c8658fbc |
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1}} | 44027044ca10c24 |
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2}} | c510f9b9c8658fb |