Template:Previous ISO week
Appearance
2024/45/1 (2024-11-04, Mon)
Usage
Returns the formatted date for the previous ISO week, given another reference ISO week.
Parameters
- isoyear
- (optional) the reference ISO year. The default value is
{{CURRENTISOYEAR}}
(or more exactly {{#time:xnY}} to be language-neutral, see the following remark). - isoweek
- (optional) the reference ISO week in that year. The default value is
{{CURRENTISOWEEK}}
(or more exactly {{#time:xnW}} to be language-neutral, see the following remark). - format
- (optional) format used to return the computed date. The default value is "o/W" with English digits, i.e. "xno/xnW" with the additional "xn" prefix to make sure decimal digits are not replaced by national variants (when the language specified below is Arabic, Persian, Hindi, Bengali, etc.). The sample shown here uses "o/W/N (Y-M-d, D)" ("N" should always return "1" for Monday, and "D" should always be "Mon" for English). You can also return an ISO date using "Y-m-d" (or more exactly "xnY-xnm-xnd" in order to be language-neutral).
- lang
- (optional) the language code used to format the returned date. The default value is "en" for English.
See also
{{Current ISO week}}
,{{Next ISO week}}
- format strings used by the Parserfunction #time (in MediaWiki documentation)