Template:Hexmonth
Jump to navigation
Jump to search
Template documentation
This documentation is transcluded from Template:Hexmonth/doc. [edit] [history] [purge]
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 |