Difference between revisions of "Template:Recent tournament results week nav"

From QBWiki
Jump to navigation Jump to search
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

Recent tournament results by week
Previous
Current
Next
November 16, 2024-November 22, 2024
November 23, 2024-November 29, 2024
November 30, 2024-December 6, 2024

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.


Recent tournament results by week
Previous
Current
Next
October 23, 2021-October 29, 2021
October 30, 2021-November 5, 2021
November 6, 2021-November 12, 2021