Difference between revisions of "User:Tjtrumpet2323/sandbox"

From Geohashing
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|2008-07-01}}|{{#time: m|2008-07-01}}|{{#time: d|2008-07-01}}}}</nowiki>
+
| <nowiki>{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}}</nowiki>
| {{#dow:{{#time: Y|2008-07-01}}|{{#time: m|2008-07-01}}|{{#time: d|2008-07-01}}}}
+
| {{#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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01}}|{{#time: m|2008-07-01}}|{{#time: d|2008-07-01}}}} }}</nowiki>
+
| <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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01}}|{{#time: m|2008-07-01}}|{{#time: d|2008-07-01}}}} }}
+
| {{#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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01}}|{{#time: m|2008-07-01}}|{{#time: d|2008-07-01}}}} |1}}</nowiki>
+
| <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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01}}|{{#time: m|2008-07-01}}|{{#time: d|2008-07-01}}}} |1}}
+
| {{#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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01}}|{{#time: m|2008-07-01}}|{{#time: d|2008-07-01}}}} |2}}</nowiki>
+
| <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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01}}|{{#time: m|2008-07-01}}|{{#time: d|2008-07-01}}}} |2}}
+
| {{#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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01 -1 day}}|{{#time: m|2008-07-01 -1 day}}|{{#time: d|2008-07-01 -1 day}}}} }}</nowiki>
+
| <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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01 -1 day}}|{{#time: m|2008-07-01 -1 day}}|{{#time: d|2008-07-01 -1 day}}}} }}
+
| {{#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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01 -1 day}}|{{#time: m|2008-07-01 -1 day}}|{{#time: d|2008-07-01 -1 day}}}} |1}}</nowiki>
+
| <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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01 -1 day}}|{{#time: m|2008-07-01 -1 day}}|{{#time: d|2008-07-01 -1 day}}}} |1}}
+
| {{#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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01 -1 day}}|{{#time: m|2008-07-01 -1 day}}|{{#time: d|2008-07-01 -1 day}}}} |2}}</nowiki>
+
| <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|2008-07-01}}-{{#dow:{{#time: Y|2008-07-01 -1 day}}|{{#time: m|2008-07-01 -1 day}}|{{#time: d|2008-07-01 -1 day}}}} |2}}
+
| {{#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