Difference between revisions of "Template:Day"

From blackwiki
Jump to navigation Jump to search
imported>EEng
(Well, it wasn't discussed when it was inserted either. Anyway, WP:OR not to mention that it's idiotic nonsense trivia)
imported>Kbrose
(c/e)
 
Line 15: Line 15:
 
}} in the [[Gregorian calendar]].{{#switch:{{#expr:364-{{#time:z|{{{1|{{PAGENAME}}}}}, 2001}}}}
 
}} in the [[Gregorian calendar]].{{#switch:{{#expr:364-{{#time:z|{{{1|{{PAGENAME}}}}}, 2001}}}}
 
   |0=
 
   |0=
   |1= There is one day remaining until the end of the year.
+
   |1= One day remains until the end of the year.
   |2= There are two days remaining until the end of the year.
+
   |2= Two days remain until the end of the year.
   |3= There are three days remaining until the end of the year.
+
   |3= Three days remain until the end of the year.
   |4= There are four days remaining until the end of the year.
+
   |4= Four days remain until the end of the year.
   |5= There are five days remaining until the end of the year.
+
   |5= Five days remain until the end of the year.
   |6= There are six days remaining until the end of the year.
+
   |6= Six days remain until the end of the year.
   |7= There are seven days remaining until the end of the year.
+
   |7= Seven days remain until the end of the year.
   |8= There are eight days remaining until the end of the year.
+
   |8= Eight days remain until the end of the year.
   |9= There are nine days remaining until the end of the year.
+
   |9= Nine days remain until the end of the year.
   |&#32;There are {{#expr:364-{{#time:z|{{{1|{{PAGENAME}}}}}, 2001}}}} days remaining until the end of the year{{#ifexpr:{{#time:n|{{{1|{{PAGENAME}}}}}}}<3
+
   |&#32; {{#expr:364-{{#time:z|{{{1|{{PAGENAME}}}}}, 2001}}}} days remain until the end of the year{{#ifexpr:{{#time:n|{{{1|{{PAGENAME}}}}}}}<3
 
     |&#32;({{#expr:365-{{#time:z|{{{1|{{PAGENAME}}}}}, 2000}}}} in [[leap year]]s)
 
     |&#32;({{#expr:365-{{#time:z|{{{1|{{PAGENAME}}}}}, 2000}}}} in [[leap year]]s)
 
     |
 
     |
 
   }}.
 
   }}.
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 00:55, 20 April 2019

Template documentation[view] [edit] [history] [purge]
Template:Subpage other

Usage

This template is the article lead for the pages January 1 through December 31, but is not used on February 29. The template is not supposed to be a countdown clock for the current year, but rather should be a consistent lead that produces the same output regardless of the current year.

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 Mar
{{Nmonth}} produces May
{{LastMonth}} produces March 2026
{{NextMonth}} produces May 2026


Individual templates

Categories of templates