Difference between revisions of "Template:Month/doc"

From comp.tf
Jump to navigation Jump to search
(Created page with "Converts numbers/abbreviations/full names of months into numbers or month names {| class="wikitable" !You type !You get |- |<code><nowiki>{{month|1}}</nowiki></code> |{{month|...")
 
Line 1: Line 1:
Converts numbers/abbreviations/full names of months into numbers or month names
+
This template converts numbers/abbreviations/full names of months into numbers or month names.
 
{| class="wikitable"
 
{| class="wikitable"
 
!You type
 
!You type
Line 16: Line 16:
 
|{{month|january}}
 
|{{month|january}}
 
|}
 
|}
A second parameter may also be added. If set to <code>num</code> or <code>number</code>, the template will instead return the numberical value of the month
+
A second parameter may also be added. If set to <code>num</code> or <code>number</code>, the template will instead return the numberical value of the month.
 
{| class="wikitable"
 
{| class="wikitable"
 
!You type
 
!You type

Revision as of 00:01, 16 April 2020

This template converts numbers/abbreviations/full names of months into numbers or month names.

You type You get
{{month|1}} January
{{month|01}} January
{{month|jan}} January
{{month|january}} January

A second parameter may also be added. If set to num or number, the template will instead return the numberical value of the month.

You type You get
{{month|jan|num}} 01