Template:Hexmonth/doc

From Brighter Shores Wiki
Revision as of 17:13, 30 December 2024 by Artoire (talk | contribs) (Note how to get month easily)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:Hexmonth.
It contains usage information, categories, and other content that is not part of the original template page.

Converts a month name (short like "Jan" or in full like "January") into a hex number. Used for sorting dates chronologically.

To convert from a timestamp, use {{Hexmonth|{{#time:F|<datetime>}}}}. For example, {{Hexmonth|{{#time:F|{{REVISIONTIMESTAMP}}}}}} results in C.

Usage

{{Hexmonth|month}}

Wikitext Result
{{Hexmonth|January}} 1
{{Hexmonth|February}} 2
{{Hexmonth|March}} 3
{{Hexmonth|April}} 4
{{Hexmonth|May}} 5
{{Hexmonth|June}} 6
{{Hexmonth|July}} 7
{{Hexmonth|August}} 8
{{Hexmonth|September}} 9
{{Hexmonth|October}} A
{{Hexmonth|November}} B
{{Hexmonth|December}} C