Diferencia entre revisiones de «Plantilla:MONTHABBREV/doc Ver historial

(Created Redirect)
 
(Página creada con «{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> This template returns the English abbreviation (between "Jan" and "Dec") of the month whose...»)
 
(No se muestra una edición intermedia de otro usuario)
Línea 1: Línea 1:
#REDIRECT [[Creating_and_Editing_street_segments#Road_elevation]]
{{Documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
This template returns the English abbreviation (between "Jan" and "Dec") of the month whose number is in parameter. Alternatively, the English name or abbreviation (in any letter case) can be provided.
; Syntax<nowiki>:</nowiki>
: <tt><nowiki>{{</nowiki>MONTHABBREV|</tt>''month''<tt>}}</tt>
* The ''month'' value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).
 
; Examples for all standard English month names<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHABBREV|january}}</nowiki></tt> returns {{MONTHABBREV|january}}
: <tt><nowiki>{{MONTHABBREV|february}}</nowiki></tt> returns {{MONTHABBREV|february}}
: <tt><nowiki>{{MONTHABBREV|march}}</nowiki></tt> returns {{MONTHABBREV|march}}
: <tt><nowiki>{{MONTHABBREV|april}}</nowiki></tt> returns {{MONTHABBREV|april}}
: <tt><nowiki>{{MONTHABBREV|may}}</nowiki></tt> returns {{MONTHABBREV|may}}
: <tt><nowiki>{{MONTHABBREV|june}}</nowiki></tt> returns {{MONTHABBREV|june}}
: <tt><nowiki>{{MONTHABBREV|july}}</nowiki></tt> returns {{MONTHABBREV|july}}
: <tt><nowiki>{{MONTHABBREV|august}}</nowiki></tt> returns {{MONTHABBREV|august}}
: <tt><nowiki>{{MONTHABBREV|september}}</nowiki></tt> returns {{MONTHABBREV|september}}
: <tt><nowiki>{{MONTHABBREV|october}}</nowiki></tt> returns {{MONTHABBREV|october}}
: <tt><nowiki>{{MONTHABBREV|november}}</nowiki></tt> returns {{MONTHABBREV|november}}
: <tt><nowiki>{{MONTHABBREV|december}}</nowiki></tt> returns {{MONTHABBREV|december}}
 
; Examples for all abbreviated English month names<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHABBREV|JAN}}</nowiki></tt> returns {{MONTHABBREV|JAN}}
: <tt><nowiki>{{MONTHABBREV|FEB}}</nowiki></tt> returns {{MONTHABBREV|FEB}}
: <tt><nowiki>{{MONTHABBREV|MAR}}</nowiki></tt> returns {{MONTHABBREV|MAR}}
: <tt><nowiki>{{MONTHABBREV|APR}}</nowiki></tt> returns {{MONTHABBREV|APR}}
: <tt><nowiki>{{MONTHABBREV|MAY}}</nowiki></tt> returns {{MONTHABBREV|MAY}}
: <tt><nowiki>{{MONTHABBREV|JUN}}</nowiki></tt> returns {{MONTHABBREV|JUN}}
: <tt><nowiki>{{MONTHABBREV|JUL}}</nowiki></tt> returns {{MONTHABBREV|JUL}}
: <tt><nowiki>{{MONTHABBREV|AUG}}</nowiki></tt> returns {{MONTHABBREV|AUG}}
: <tt><nowiki>{{MONTHABBREV|SEP}}</nowiki></tt> returns {{MONTHABBREV|SEP}}
: <tt><nowiki>{{MONTHABBREV|OCT}}</nowiki></tt> returns {{MONTHABBREV|OCT}}
: <tt><nowiki>{{MONTHABBREV|NOV}}</nowiki></tt> returns {{MONTHABBREV|NOV}}
: <tt><nowiki>{{MONTHABBREV|DEC}}</nowiki></tt> returns {{MONTHABBREV|DEC}}
 
; Examples for all standard month numbers<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHABBREV|1}}</nowiki></tt> returns {{MONTHABBREV|1}}
: <tt><nowiki>{{MONTHABBREV|2}}</nowiki></tt> returns {{MONTHABBREV|2}}
: <tt><nowiki>{{MONTHABBREV|3}}</nowiki></tt> returns {{MONTHABBREV|3}}
: <tt><nowiki>{{MONTHABBREV|4}}</nowiki></tt> returns {{MONTHABBREV|4}}
: <tt><nowiki>{{MONTHABBREV|5}}</nowiki></tt> returns {{MONTHABBREV|5}}
: <tt><nowiki>{{MONTHABBREV|6}}</nowiki></tt> returns {{MONTHABBREV|6}}
: <tt><nowiki>{{MONTHABBREV|7}}</nowiki></tt> returns {{MONTHABBREV|7}}
: <tt><nowiki>{{MONTHABBREV|8}}</nowiki></tt> returns {{MONTHABBREV|8}}
: <tt><nowiki>{{MONTHABBREV|9}}</nowiki></tt> returns {{MONTHABBREV|9}}
: <tt><nowiki>{{MONTHABBREV|10}}</nowiki></tt> returns {{MONTHABBREV|10}}
: <tt><nowiki>{{MONTHABBREV|11}}</nowiki></tt> returns {{MONTHABBREV|11}}
: <tt><nowiki>{{MONTHABBREV|12}}</nowiki></tt> returns {{MONTHABBREV|12}}
 
; Examples for month numbers with extra leading zero<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHABBREV|01}}</nowiki></tt> returns {{MONTHABBREV|01}}
: <tt><nowiki>{{MONTHABBREV|02}}</nowiki></tt> returns {{MONTHABBREV|02}}
: <tt><nowiki>{{MONTHABBREV|03}}</nowiki></tt> returns {{MONTHABBREV|03}}
: <tt><nowiki>{{MONTHABBREV|04}}</nowiki></tt> returns {{MONTHABBREV|04}}
: <tt><nowiki>{{MONTHABBREV|05}}</nowiki></tt> returns {{MONTHABBREV|05}}
: <tt><nowiki>{{MONTHABBREV|06}}</nowiki></tt> returns {{MONTHABBREV|06}}
: <tt><nowiki>{{MONTHABBREV|07}}</nowiki></tt> returns {{MONTHABBREV|07}}
: <tt><nowiki>{{MONTHABBREV|08}}</nowiki></tt> returns {{MONTHABBREV|08}}
: <tt><nowiki>{{MONTHABBREV|09}}</nowiki></tt> returns {{MONTHABBREV|09}}
 
; Examples for month number underflows and overflows, from computed values<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHABBREV|-1200}}</nowiki></tt> returns {{MONTHABBREV|-1200}}
: <tt><nowiki>{{MONTHABBREV|-1201}}</nowiki></tt> returns {{MONTHABBREV|-1201}}
: <tt><nowiki>{{MONTHABBREV|-1212}}</nowiki></tt> returns {{MONTHABBREV|-1212}}
: <tt><nowiki>{{MONTHABBREV|-12}}</nowiki></tt> returns {{MONTHABBREV|-12}}
: <tt><nowiki>{{MONTHABBREV|-11}}</nowiki></tt> returns {{MONTHABBREV|-11}}
: <tt><nowiki>{{MONTHABBREV|-10}}</nowiki></tt> returns {{MONTHABBREV|-10}}
: <tt><nowiki>{{MONTHABBREV|-9}}</nowiki></tt> returns {{MONTHABBREV|-9}}
: <tt><nowiki>{{MONTHABBREV|-3}}</nowiki></tt> returns {{MONTHABBREV|-2}}
: <tt><nowiki>{{MONTHABBREV|-2}}</nowiki></tt> returns {{MONTHABBREV|-2}}
: <tt><nowiki>{{MONTHABBREV|-1}}</nowiki></tt> returns {{MONTHABBREV|-1}}
: <tt><nowiki>{{MONTHABBREV|0}}</nowiki></tt> returns {{MONTHABBREV|0}}
: <tt><nowiki>{{MONTHABBREV|13}}</nowiki></tt> returns {{MONTHABBREV|13}}
: <tt><nowiki>{{MONTHABBREV|14}}</nowiki></tt> returns {{MONTHABBREV|14}}
: <tt><nowiki>{{MONTHABBREV|15}}</nowiki></tt> returns {{MONTHABBREV|15}}
: <tt><nowiki>{{MONTHABBREV|16}}</nowiki></tt> returns {{MONTHABBREV|16}}
: <tt><nowiki>{{MONTHABBREV|23}}</nowiki></tt> returns {{MONTHABBREV|23}}
: <tt><nowiki>{{MONTHABBREV|24}}</nowiki></tt> returns {{MONTHABBREV|24}}
: <tt><nowiki>{{MONTHABBREV|25}}</nowiki></tt> returns {{MONTHABBREV|25}}
: <tt><nowiki>{{MONTHABBREV|1200}}</nowiki></tt> returns {{MONTHABBREV|1200}}
: <tt><nowiki>{{MONTHABBREV|1201}}</nowiki></tt> returns {{MONTHABBREV|1201}}
: <tt><nowiki>{{MONTHABBREV|1212}}</nowiki></tt> returns {{MONTHABBREV|1212}}
 
; See also<nowiki>:</nowiki>
: [[Template:MONTHNUMBER]]
: [[Template:MONTHNAME]]
 
<includeonly>
[[Category:Date-computing templates|MONTHABBREV]]
 
<!-- Interwiki links below here -->
</includeonly>

Revisión actual - 18:04 5 jul 2017

This is a documentation subpage for Plantilla:MONTHABBREV.
It contains usage information, categories and other content that is not part of the original plantilla page.

This template returns the English abbreviation (between "Jan" and "Dec") of the month whose number is in parameter. Alternatively, the English name or abbreviation (in any letter case) can be provided.

Syntax:
{{MONTHABBREV|month}}
  • The month value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).
Examples for all standard English month names:
{{MONTHABBREV|january}} returns Jan
{{MONTHABBREV|february}} returns Feb
{{MONTHABBREV|march}} returns Mar
{{MONTHABBREV|april}} returns Apr
{{MONTHABBREV|may}} returns May
{{MONTHABBREV|june}} returns Jun
{{MONTHABBREV|july}} returns Jul
{{MONTHABBREV|august}} returns Aug
{{MONTHABBREV|september}} returns Sep
{{MONTHABBREV|october}} returns Oct
{{MONTHABBREV|november}} returns Nov
{{MONTHABBREV|december}} returns Dec
Examples for all abbreviated English month names:
{{MONTHABBREV|JAN}} returns Jan
{{MONTHABBREV|FEB}} returns Feb
{{MONTHABBREV|MAR}} returns Mar
{{MONTHABBREV|APR}} returns Apr
{{MONTHABBREV|MAY}} returns May
{{MONTHABBREV|JUN}} returns Jun
{{MONTHABBREV|JUL}} returns Jul
{{MONTHABBREV|AUG}} returns Aug
{{MONTHABBREV|SEP}} returns Sep
{{MONTHABBREV|OCT}} returns Oct
{{MONTHABBREV|NOV}} returns Nov
{{MONTHABBREV|DEC}} returns Dec
Examples for all standard month numbers:
{{MONTHABBREV|1}} returns Jan
{{MONTHABBREV|2}} returns Feb
{{MONTHABBREV|3}} returns Mar
{{MONTHABBREV|4}} returns Apr
{{MONTHABBREV|5}} returns May
{{MONTHABBREV|6}} returns Jun
{{MONTHABBREV|7}} returns Jul
{{MONTHABBREV|8}} returns Aug
{{MONTHABBREV|9}} returns Sep
{{MONTHABBREV|10}} returns Oct
{{MONTHABBREV|11}} returns Nov
{{MONTHABBREV|12}} returns Dec
Examples for month numbers with extra leading zero:
{{MONTHABBREV|01}} returns Jan
{{MONTHABBREV|02}} returns Feb
{{MONTHABBREV|03}} returns Mar
{{MONTHABBREV|04}} returns Apr
{{MONTHABBREV|05}} returns May
{{MONTHABBREV|06}} returns Jun
{{MONTHABBREV|07}} returns Jul
{{MONTHABBREV|08}} returns Aug
{{MONTHABBREV|09}} returns Sep
Examples for month number underflows and overflows, from computed values:
{{MONTHABBREV|-1200}} returns Dec
{{MONTHABBREV|-1201}} returns Nov
{{MONTHABBREV|-1212}} returns Dec
{{MONTHABBREV|-12}} returns Dec
{{MONTHABBREV|-11}} returns Jan
{{MONTHABBREV|-10}} returns Feb
{{MONTHABBREV|-9}} returns Mar
{{MONTHABBREV|-3}} returns Oct
{{MONTHABBREV|-2}} returns Oct
{{MONTHABBREV|-1}} returns Nov
{{MONTHABBREV|0}} returns Dec
{{MONTHABBREV|13}} returns Jan
{{MONTHABBREV|14}} returns Feb
{{MONTHABBREV|15}} returns Mar
{{MONTHABBREV|16}} returns Apr
{{MONTHABBREV|23}} returns Nov
{{MONTHABBREV|24}} returns Dec
{{MONTHABBREV|25}} returns Jan
{{MONTHABBREV|1200}} returns Dec
{{MONTHABBREV|1201}} returns Jan
{{MONTHABBREV|1212}} returns Dec
See also:
Template:MONTHNUMBER
Template:MONTHNAME