Difference between revisions of "Template:Recent tournament results week nav"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) |
Kevin Wang (talk | contribs) m |
||
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}}]] |
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.
| |||
|
|