Template:Hexmonth/doc: Difference between revisions
Note how to get month easily
(Created page with "{{Documentation}} Converts a month name (short like "Jan" or in full like "January") into a hex number. Used for sorting dates chronologically. ==Usage== {{T|Hexmonth|month}} {| class="wikitable" ! Wikitext ! Result |- | <syntaxhighlight lang="wikitext" inline>{{Hexmonth|January}}</syntaxhighlight> | {{Hexmonth|January}} |- | <syntaxhighlight lang="wikitext" inline>{{Hexmonth|February}}</syntaxhighlight> | {{Hexmonth|February}} |- | <syntaxhighlight lang="wikitext" in...") |
(Note how to get month easily) |
||
Line 2:
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 <syntaxhighlight lang="wikitext" inline>{{Hexmonth|{{#time:F|<datetime>}}}}</syntaxhighlight>. For example, <syntaxhighlight lang="wikitext" inline>{{Hexmonth|{{#time:F|{{REVISIONTIMESTAMP}}}}}}</syntaxhighlight> results in {{Hexmonth|{{#time:F|{{REVISIONTIMESTAMP}}}}}}.
==Usage==
|