Template:Month: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (Protected "Template:Month": High traffic page: useful template to be used often that doesn't need frequent modification ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m (cleaner formatting)
 
Line 27: 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,
Line 37: Line 37:
  <pre><nowiki>{{month|02}} {{date|22}}</nowiki> 2022.</pre>
  <pre><nowiki>{{month|02}} {{date|22}}</nowiki> 2022.</pre>


<br>will produce
render as: February 22<sup>nd</sup> 2022.
 
February 22<sup>nd</sup> 2022.


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 18: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.