Difference between revisions of "Template:Currentweek"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) |
Kevin Wang (talk | contribs) m |
||
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}}+ | + | {{#vardefine:offset|{{dayoffset}}}}{{#time:F j, Y|{{#expr: {{{1|0}}}*7-{{#var:offset}}}} days}}-{{#time:F j, Y|{{#expr: {{{1|0}}}*7-{{#var:offset}}+6}} 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]]. |
Latest revision as of 17:57, 7 November 2021
February 15, 2025-February 21, 2025
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}} | February 1, 2025-February 7, 2025 |
{{currentweek|-1}} | February 8, 2025-February 14, 2025 |
{{currentweek|0}} | February 15, 2025-February 21, 2025 |
{{currentweek|1}} | February 22, 2025-February 28, 2025 |
{{currentweek|2}} | March 1, 2025-March 7, 2025 |