Jump to content

Template:CURRENTISOYEAR

From Meta, a Wikimedia project coordination wiki

2024


Template documentation

This templates returns the ISO year number for today (as set by UTC time on the Wikipedia server).

The ISO year (always equal to the gregorian year between January the 4th, in ISO week 1, and December the 28th) always includes an integer number, 52 or 53, of ISO weeks starting each on monday and ending on sunday; the ISO year may be smaller (by 1) on the first zero to three days of January, and may be larger (by 1) on the last zero to three days of December.

Syntax:
  • {{CURRENTISOYEAR}}
    note that digits are still localized in a page translated to Arabic, Farsi, Hidi, Marathi, ... (just like with {{CURRENTYEAR}}, or with format strings "Y" (Gregorian year) or "o" (ISO year) with the #time parser function).
    Don't use this simple form in numeric expressions with parser finction #expr, which does not parse these numbers, or in the date value parameter of #time !
  • {{CURRENTISOYEAR|n}}
    Format the next numeric code as a raw ASCII number, with digits "0-9", suitable for use in numeric expressions with #expr, or in a date/time value parameter of #time (see also the "xn" flag in #time).
  • {{CURRENTISOYEAR|r}}
    Format the next number as a roman numeral, with digits "IVCXM", only works for positive numbers up to 9999 (see also the "xr" flag in #time).
  • {{CURRENTISOYEAR|h}}
    the return number will use Hebrew digits (see also the "xh" flag in #time).
See also:
Template:CURRENTYEARCC
Template:CURRENTYEARYY
Template:CURRENTCENTURY
Template:CURRENTMONTHDAYS
Template:CURRENTJULIANDAY
Template:CURRENTWEEKDAY
Template:CURRENTISOWEEK
Template:CURRENTISLEAPYEAR
Template:ISOYEAR

fr:Modèle:CURRENTISOYEAR