Difference between revisions of "Template:CURRENTISOYEAR"

From blackwiki
Jump to navigation Jump to search
imported>Wetitpig0
imported>Andy M. Wang
(need to wrap noinclude. some wikiproject templates pass output of this to parser functions)
Line 1: Line 1:
{{Template for discussion/dated|page=CURRENTISOYEAR|link=Wikipedia:Templates for discussion/Log/2016 September 4#Template:CURRENTISOYEAR}}
+
<noinclude>{{Template for discussion/dated|page=CURRENTISOYEAR|link=Wikipedia:Templates for discussion/Log/2016 September 4#Template:CURRENTISOYEAR}}</noinclude>
 
<includeonly>{{#time:o}}</includeonly><noinclude>
 
<includeonly>{{#time:o}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
[[Category:Date-computing templates based on current time|{{PAGENAME}}]]
 
[[Category:Date-computing templates based on current time|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 05:38, 4 September 2016

Template:Template for discussion/dated

Template documentation[view] [edit] [history] [purge]

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.

Usage

{{CURRENTISOYEAR}} gives 2025

See also

[edit] all subsections that follow:

Multiple units of time

Type Adjustable Current Last Next
Date and time {{time}} {{Currentdate}} (MDY)
{{Plain now}} (DMY)
{{Now}} (DMY in a complete sentence)
{{Simple now}}
Date only {{Dateonly}}
{{Datedow}}
(Has the day of the week)
{{Date}} (Chose format)
{{DATE}} (prefixed by date=)
{{TODAY}} (DMY)
{{Yesterday}}
{{Day-1}}
{{Tomorrow}}
{{Day+1}}
Time only {{Timeonly}} {{CURRENTTIME}} (12 h format)
{{CURRENTTIME24}} (24 h format)
Banners {{Right now}}
(Blue with time and number of Wikipedia articles)
Timestamp {{Timestamp}}
(Format YYYYMMDDhhmmss)

Single units of time

Unit of time Adjustable Current Last Next
SECOND {{CURRENTSECOND}}
MINUTE {{CURRENTMINUTE}}
HOUR {{CURRENTHOUR}} {{Hour-1}} {{Hour+1}}
WEEK {{CURRENTWEEK}}
{{CURRENTWEEKOFMONTH}}
Day of Week {{Dow}} {{CURRENTDAYNAME}}
{{CURRENTWEEKDAYABBREV}}
{{CURRENTWEEKDAY}}
{{LASTWEEKDAYNAME}}
{{LASTWEEKDAYABBREV}}
{{NEXTWEEKDAYNAME}}
{{NEXTWEEKDAYABBREV}}
MONTH {{MONTHNAME}}
{{MONTHABBREV}}
{{MONTHNUMBER}}
{{MONTH}} (zero padded)
{{CURRENTMONTHNAME}}
{{CURRENTMONTHABBREV}}
{{CURRENTMONTH1}}
{{CURRENTMONTHDAYS}}
{{LASTMONTH}}
(Can make not zero-padded)
{{LASTMONTHNAME}}
{{LASTMONTHABBR}}
{{NEXTMONTH}}
(Can make not zero-padded)
{{NEXTMONTHNAME}}
{{NEXTMONTHABBR}}
Day of Month {{CURRENTDAY}}
{{CURRENTDAY2}} (zero padded)
YEAR {{CURRENTYEARCC}}
{{CURRENTYEARYY}}
{{CURRENTISOYEAR}}
{{CURRENTYEAR}}
{{LASTYEAR}} {{NEXTYEAR}}
Day of Year {{CURRENTDAYOFYEAR}}
DECADE {{DECADE}} {{CURRENTDECADE}} {{LASTDECADE}} {{NEXTDECADE}}
CENTURY {{CENTURY}} {{CURRENTCENTURY}} {{LASTCENTURY}} {{NEXTCENTURY}}
MILLENNIUM {{MILLENNIUM}} {{Currentmillennium}}

Date and time templates made for substitution:

Month:
{{Lmonth}} produces Aug
{{Nmonth}} produces Oct
{{LastMonth}} produces August 2025
{{NextMonth}} produces October 2025


Individual templates

Categories of templates

bn:টেমপ্লেট:Currentisoyear dsb:Pśedłoga:CURRENTISOYEAR fr:Modèle:CURRENTISOYEAR hsb:Předłoha:CURRENTISOYEAR ja:Template:CURRENTISOYEAR stq:Foarloage:CURRENTISOYEAR