Template:Current ISO week/doc
This is a documentation subpage for Template:Current ISO week. It contains usage information, categories, and other content that is not part of the original template page. |
Usage
editReturns the formatted date for the current ISO week, given a reference ISO week.
Parameters
edit- 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
edit{{Previous ISO week}}
,{{Next ISO week}}
- format strings used by the Parserfunction #time (in MediaWiki documentation)