Template:Month: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (small tweak to markup)
m (cleaner formatting)
 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
  | 8 = August
  | 8 = August
  | 9 = September
  | 9 = September
| 01 = January
| 02 = February
| 03 = March
| 04 = April
| 05 = May
| 06 = June
| 07 = July
| 08 = August
| 09 = September
  | 10 = October
  | 10 = October
  | 11 = November
  | 11 = November
  | 12 = December
  | 12 = December
  |#default = Month
  |#default = MM
}}</includeonly><noinclude>
}}</includeonly><noinclude>
=== Description ===
=== Description ===
Line 18: Line 27:


=== Usage ===
=== Usage ===
To use this template, place <nowiki>{{month|##}}</nowiki> in the Infobox line for "episode date", where "##" is the number for the month.
To use this template, place <code><nowiki>{{month|##}}</nowiki></code> in the Infobox line for "episode date", where <code>#</code> is the number for the month.


For example,
For example,


  <nowiki>{{month|2}} {{date|22}}</nowiki> 2022.
  <pre><nowiki>{{month|2}} {{date|22}}</nowiki> 2022.</pre>


will produce
and


  February 22<sup>nd</sup> 2022.
  <pre><nowiki>{{month|02}} {{date|22}}</nowiki> 2022.</pre>


render as: February 22<sup>nd</sup> 2022.
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 17:23, 5 March 2023

Description

This template inserts the appropriate month text for the numeral abbreviation of the month.

Usage

To use this template, place {{month|##}} in the Infobox line for "episode date", where # is the number for the month.

For example,

{{month|2}} {{date|22}} 2022.

and

{{month|02}} {{date|22}} 2022.

render as: February 22nd 2022.