Template:Current ISO week
Appearance
From Meta, a Wikimedia project coordination wiki
2025年08月1日 (2025年02月17日, Mon)
Usage
Returns the formatted date for the current ISO week, given a 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
{{Previous ISO week}}
,{{Next ISO week}}
- format strings used by the Parserfunction #time (in MediaWiki documentation)
The above documentation is transcluded from Template:Current ISO week/doc. (edit | history)
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.