Template:MONTHNAME/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Vanisaac m →See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other |
meta>Jonesey95 |
||
Line 6: | Line 6: | ||
=== Syntax === | === Syntax === | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|</nowiki></code>''month''<code>}}</code> | ||
* The ''month'' value is interpreted modulo 12 (extra leading zeroes and decimals are ignored). | * The ''month'' value is interpreted modulo 12 (extra leading zeroes and decimals are ignored). | ||
=== Compatibility synonym === | === Compatibility synonym === | ||
: < | : <code><nowiki>{{</nowiki>month name|</code>''month''<code>}}</code> | ||
=== Examples for all standard month numbers === | === Examples for all standard month numbers === | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|1}}</nowiki></code> returns {{MONTHNAME|1}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|2}}</nowiki></code> returns {{MONTHNAME|2}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|3}}</nowiki></code> returns {{MONTHNAME|3}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|4}}</nowiki></code> returns {{MONTHNAME|4}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|5}}</nowiki></code> returns {{MONTHNAME|5}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|6}}</nowiki></code> returns {{MONTHNAME|6}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|7}}</nowiki></code> returns {{MONTHNAME|7}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|8}}</nowiki></code> returns {{MONTHNAME|8}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|9}}</nowiki></code> returns {{MONTHNAME|9}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|10}}</nowiki></code> returns {{MONTHNAME|10}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|11}}</nowiki></code> returns {{MONTHNAME|11}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|12}}</nowiki></code> returns {{MONTHNAME|12}} | ||
=== Examples for month numbers with extra leading zero === | === Examples for month numbers with extra leading zero === | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|01}}</nowiki></code> returns {{MONTHNAME|01}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|02}}</nowiki></code> returns {{MONTHNAME|02}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|03}}</nowiki></code> returns {{MONTHNAME|03}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|04}}</nowiki></code> returns {{MONTHNAME|04}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|05}}</nowiki></code> returns {{MONTHNAME|05}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|06}}</nowiki></code> returns {{MONTHNAME|06}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|07}}</nowiki></code> returns {{MONTHNAME|07}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|08}}</nowiki></code> returns {{MONTHNAME|08}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|09}}</nowiki></code> returns {{MONTHNAME|09}} | ||
=== Examples for month number cyclic underflows and overflows, from computed values === | === Examples for month number cyclic underflows and overflows, from computed values === | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|-12}}</nowiki></code> returns {{MONTHNAME|-12}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|-11}}</nowiki></code> returns {{MONTHNAME|-11}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|-10}}</nowiki></code> returns {{MONTHNAME|-10}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|-9}}</nowiki></code> returns {{MONTHNAME|-9}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|-3}}</nowiki></code> returns {{MONTHNAME|-3}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|-2}}</nowiki></code> returns {{MONTHNAME|-2}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|-1}}</nowiki></code> returns {{MONTHNAME|-1}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|0}}</nowiki></code> returns {{MONTHNAME|0}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|13}}</nowiki></code> returns {{MONTHNAME|13}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|14}}</nowiki></code> returns {{MONTHNAME|14}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|15}}</nowiki></code> returns {{MONTHNAME|15}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|16}}</nowiki></code> returns {{MONTHNAME|16}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|23}}</nowiki></code> returns {{MONTHNAME|23}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|24}}</nowiki></code> returns {{MONTHNAME|24}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|25}}</nowiki></code> returns {{MONTHNAME|25}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|1200}}</nowiki></code> returns {{MONTHNAME|1200}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|1201}}</nowiki></code> returns {{MONTHNAME|1201}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|1212}}</nowiki></code> returns {{MONTHNAME|1212}} | ||
=== Examples for all standard English month names === | === Examples for all standard English month names === | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|JANUARY}}</nowiki></code> returns {{MONTHNAME|JANUARY}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|FEBRUARY}}</nowiki></code> returns {{MONTHNAME|FEBRUARY}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|MARCH}}</nowiki></code> returns {{MONTHNAME|MARCH}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|APRIL}}</nowiki></code> returns {{MONTHNAME|APRIL}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|MAY}}</nowiki></code> returns {{MONTHNAME|MAY}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|JUNE}}</nowiki></code> returns {{MONTHNAME|JUNE}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|JULY}}</nowiki></code> returns {{MONTHNAME|JULY}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|AUGUST}}</nowiki></code> returns {{MONTHNAME|AUGUST}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|SEPTEMBER}}</nowiki></code> returns {{MONTHNAME|SEPTEMBER}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|OCTOBER}}</nowiki></code> returns {{MONTHNAME|OCTOBER}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|NOVEMBER}}</nowiki></code> returns {{MONTHNAME|NOVEMBER}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|DECEMBER}}</nowiki></code> returns {{MONTHNAME|DECEMBER}} | ||
=== Examples for all abbreviated English month names === | === Examples for all abbreviated English month names === | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|jan}}</nowiki></code> returns {{MONTHNAME|jan}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|feb}}</nowiki></code> returns {{MONTHNAME|feb}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|mar}}</nowiki></code> returns {{MONTHNAME|mar}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|apr}}</nowiki></code> returns {{MONTHNAME|apr}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|may}}</nowiki></code> returns {{MONTHNAME|may}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|jun}}</nowiki></code> returns {{MONTHNAME|jun}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|jul}}</nowiki></code> returns {{MONTHNAME|jul}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|aug}}</nowiki></code> returns {{MONTHNAME|aug}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|sep}}</nowiki></code> returns {{MONTHNAME|sep}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|oct}}</nowiki></code> returns {{MONTHNAME|oct}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|nov}}</nowiki></code> returns {{MONTHNAME|nov}} | ||
: < | : <code><nowiki>{{</nowiki>MONTHNAME<nowiki>|dec}}</nowiki></code> returns {{MONTHNAME|dec}} | ||
=== See also === | === See also === |
Revision as of 17:51, 3 June 2020
This is a documentation subpage for Template:MONTHNAME. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on 837,000+ pages, or roughly 12291% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template returns the name of the month whose number is in parameter. Alternatively, the English month name or abbreviation (with any letter case) can be given.
Syntax
{{MONTHNAME|
month}}
- The month value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).
Compatibility synonym
{{month name|
month}}
Examples for all standard month numbers
{{MONTHNAME|1}}
returns January{{MONTHNAME|2}}
returns February{{MONTHNAME|3}}
returns March{{MONTHNAME|4}}
returns April{{MONTHNAME|5}}
returns May{{MONTHNAME|6}}
returns June{{MONTHNAME|7}}
returns July{{MONTHNAME|8}}
returns August{{MONTHNAME|9}}
returns September{{MONTHNAME|10}}
returns October{{MONTHNAME|11}}
returns November{{MONTHNAME|12}}
returns December
Examples for month numbers with extra leading zero
{{MONTHNAME|01}}
returns January{{MONTHNAME|02}}
returns February{{MONTHNAME|03}}
returns March{{MONTHNAME|04}}
returns April{{MONTHNAME|05}}
returns May{{MONTHNAME|06}}
returns June{{MONTHNAME|07}}
returns July{{MONTHNAME|08}}
returns August{{MONTHNAME|09}}
returns September
Examples for month number cyclic underflows and overflows, from computed values
{{MONTHNAME|-12}}
returns December{{MONTHNAME|-11}}
returns January{{MONTHNAME|-10}}
returns February{{MONTHNAME|-9}}
returns March{{MONTHNAME|-3}}
returns September{{MONTHNAME|-2}}
returns October{{MONTHNAME|-1}}
returns November{{MONTHNAME|0}}
returns December{{MONTHNAME|13}}
returns January{{MONTHNAME|14}}
returns February{{MONTHNAME|15}}
returns March{{MONTHNAME|16}}
returns April{{MONTHNAME|23}}
returns November{{MONTHNAME|24}}
returns December{{MONTHNAME|25}}
returns January{{MONTHNAME|1200}}
returns December{{MONTHNAME|1201}}
returns January{{MONTHNAME|1212}}
returns December
Examples for all standard English month names
{{MONTHNAME|JANUARY}}
returns January{{MONTHNAME|FEBRUARY}}
returns February{{MONTHNAME|MARCH}}
returns March{{MONTHNAME|APRIL}}
returns April{{MONTHNAME|MAY}}
returns May{{MONTHNAME|JUNE}}
returns June{{MONTHNAME|JULY}}
returns July{{MONTHNAME|AUGUST}}
returns August{{MONTHNAME|SEPTEMBER}}
returns September{{MONTHNAME|OCTOBER}}
returns October{{MONTHNAME|NOVEMBER}}
returns November{{MONTHNAME|DECEMBER}}
returns December
Examples for all abbreviated English month names
{{MONTHNAME|jan}}
returns January{{MONTHNAME|feb}}
returns February{{MONTHNAME|mar}}
returns March{{MONTHNAME|apr}}
returns April{{MONTHNAME|may}}
returns May{{MONTHNAME|jun}}
returns June{{MONTHNAME|jul}}
returns July{{MONTHNAME|aug}}
returns August{{MONTHNAME|sep}}
returns September{{MONTHNAME|oct}}
returns October{{MONTHNAME|nov}}
returns November{{MONTHNAME|dec}}
returns December
See also
[
] all subsections that follow:
This template does not put a working clock on your page. The clock will not update the time on your screen every minute. Instead, it records the date and time that the page was most recently edited or purged. If you want a clock that constantly updates, then go to Special:Preferences#mw-prefsection-gadgets and enable the Appearance item, "Add a clock to the personal toolbar that displays the current time in UTC and provides a link to purge the current page". |
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
Date and time Templates made for substitution:
Month:
{{Lmonth}} produces Nov
{{Nmonth}} produces Jan
{{LastMonth}} produces November 2024
{{NextMonth}} produces January 2025
Individual Templates
- {{Calendar}}
- {{Calendar clock with Wikipedia stats}}
- {{Clock}}
- {{Digital clock}}
- {{Digital clock and date}}
Categories of Templates
- Category:Time, date and calendar templates
- Category:Date-computing templates
- Category:Date-computing templates based on current time
- Category:ISO date templates
- Category:Calendar templates