Difference between revisions of "Template:Recent tournament results week nav"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) (Created page with "{{#vardefine:week|{{#if:{{{1|}}}|{{{1}}}|{{currentweek}}}}}}<!-- -->{{#vardefine:day|{{#explode:{{#var:week}}|-}}}}<!-- -->{{#vardefine:offset|{{dayoffset|{{#var:day}}}}}}<!--...") |
Kevin Wang (talk | contribs) m |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
-->{{#vardefine:offset|{{dayoffset|{{#var:day}}}}}}<!-- | -->{{#vardefine:offset|{{dayoffset|{{#var:day}}}}}}<!-- | ||
-->{{#vardefine:saturday|{{#time:F j, Y|{{#var:day}} -{{#var:offset}} days}}}}<!-- | -->{{#vardefine:saturday|{{#time:F j, Y|{{#var:day}} -{{#var:offset}} days}}}}<!-- | ||
− | -->{{Left right nav|message=[[QBWiki:Recent tournament results|Recent tournament results]] | + | -->{{Left right nav|message=[[QBWiki:Recent tournament results|Recent tournament results]] by week |
|left=[[QBWiki:Recent tournament results/{{#time:F j, Y|{{#var:saturday}} -7 days}}-{{#time:F j, Y|{{#var:saturday}} -1 days}}|{{#time:F j, Y|{{#var:saturday}} -7 days}}-{{#time:F j, Y|{{#var:saturday}} -1 days}}]] | |left=[[QBWiki:Recent tournament results/{{#time:F j, Y|{{#var:saturday}} -7 days}}-{{#time:F j, Y|{{#var:saturday}} -1 days}}|{{#time:F j, Y|{{#var:saturday}} -7 days}}-{{#time:F j, Y|{{#var:saturday}} -1 days}}]] | ||
|center=[[QBWiki:Recent tournament results/{{#var:saturday}}-{{#time:F j, Y|{{#var:saturday}} +6 days}}|{{#var:saturday}}-{{#time:F j, Y|{{#var:saturday}} +6 days}}]] | |center=[[QBWiki:Recent tournament results/{{#var:saturday}}-{{#time:F j, Y|{{#var:saturday}} +6 days}}|{{#var:saturday}}-{{#time:F j, Y|{{#var:saturday}} +6 days}}]] | ||
Line 11: | Line 11: | ||
Create nav box with links to the recent tournament result pages for the preceding and following weeks. | Create nav box with links to the recent tournament result pages for the preceding and following weeks. | ||
− | Input should be a range of dates separated by a hyphen, canonically those produced by [[Template:currentweek]]. This nav will use only the first value and will not validate the dates provided. | + | Input should be a range of dates separated by a hyphen, canonically those produced by [[Template:currentweek]]. This nav will use only the first value and will not validate the dates provided. Future improvements could have it use a single day, since that's all that's really necessary anyways, but that's for another time. |
{{Recent tournament results week nav|October 30, 2021-November 5, 2021}} | {{Recent tournament results week nav|October 30, 2021-November 5, 2021}} | ||
</noinclude> | </noinclude> |
Latest revision as of 19:32, 7 November 2021
| |||
|
|
Create nav box with links to the recent tournament result pages for the preceding and following weeks.
Input should be a range of dates separated by a hyphen, canonically those produced by Template:currentweek. This nav will use only the first value and will not validate the dates provided. Future improvements could have it use a single day, since that's all that's really necessary anyways, but that's for another time.
| |||
|
|