Difference between revisions of "Template:Currentweek"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) |
Kevin Wang (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | {{#vardefine:offset|{{dayoffset}}}}{{#time:F j, Y|{{#expr: {{{1|0}}}*7-{{#var:offset}}}} days}}-{{#time:F j, Y|{{#expr: {{{1|0}}}*7-{{#var:offset}}+7}} days}}<noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}}}{{#time:F j, Y|{{#expr: {{{1|0}}}*7-{{#var:offset}}}} days}}-{{#time:F j, Y|{{#expr: {{{1|0}}}*7-{{#var:offset}}+7}} days}}<noinclude> | ||
The week from Saturday to Friday. Intended to represent the period of time in which a set of [[tournament]] results from a given weekend is the most recent. There currently ''{{#ifexist:QBWiki:Recent tournament results/{{currentweek}}|is|is not}}'' a page of results for the [[QBWiki:Recent tournament results/{{currentweek}}|current week]]. | The week from Saturday to Friday. Intended to represent the period of time in which a set of [[tournament]] results from a given weekend is the most recent. There currently ''{{#ifexist:QBWiki:Recent tournament results/{{currentweek}}|is|is not}}'' a page of results for the [[QBWiki:Recent tournament results/{{currentweek}}|current week]]. |
Revision as of 16:01, 7 November 2021
May 18, 2024-May 25, 2024
The week from Saturday to Friday. Intended to represent the period of time in which a set of tournament results from a given weekend is the most recent. There currently is not a page of results for the current week.
Can be offset by providing a week offset
input | output |
---|---|
{{currentweek|-2}} | May 4, 2024-May 11, 2024 |
{{currentweek|-1}} | May 11, 2024-May 18, 2024 |
{{currentweek|0}} | May 18, 2024-May 25, 2024 |
{{currentweek|1}} | May 25, 2024-June 1, 2024 |
{{currentweek|2}} | June 1, 2024-June 8, 2024 |