Changes
Jump to navigation
Jump to search
m
Since <tt> is obsolete in HTML5, replace with <kbd> – see HTML element#tt and Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB
{{Documentation subpage}}
Returns AM or PM for the hour (between 0 and 24) in parameter:
* 00 (midnight at start of day) is normally 12 AM for the whole morning hour between 00:00 and 00:59.
* 01..11 (end of night and morning) is unambiguously 01..11 AM.
* 12 (noon) is normally 12 PM for the whole afternoon hour between 12:00 and 12:59.
* 13..23 (afternoon and start of night) is unambiguously 01..11 PM.
* 24 (midnight at end of day) is normally 12 AM (but the date must be adjusted when using the 12-hour format).
; Syntax<nowiki>:</nowiki>
: <kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki></kbd>''hour24''<kbd><nowiki>}}</nowiki></kbd>
; Examples for AM hours<nowiki>:</nowiki>
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>24<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|24}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>0<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|0}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>00<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|00}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>1<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|1}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>01<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|01}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>2<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|2}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>01<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|02}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>9<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|9}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>09<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|09}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>10<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|10}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>11<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|11}}"
; Examples for PM hours<nowiki>:</nowiki>
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>12<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|12}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>13<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|13}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>14<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|14}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>15<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|15}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>21<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|21}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>22<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|22}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>23<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|23}}"
; See also<nowiki>:</nowiki>
* [[Template:HOUR12]]
* [[Template:HOUR]]
<includeonly>
[[Category:Date-computing templates|{{PAGENAME}}]]
</includeonly>
Returns AM or PM for the hour (between 0 and 24) in parameter:
* 00 (midnight at start of day) is normally 12 AM for the whole morning hour between 00:00 and 00:59.
* 01..11 (end of night and morning) is unambiguously 01..11 AM.
* 12 (noon) is normally 12 PM for the whole afternoon hour between 12:00 and 12:59.
* 13..23 (afternoon and start of night) is unambiguously 01..11 PM.
* 24 (midnight at end of day) is normally 12 AM (but the date must be adjusted when using the 12-hour format).
; Syntax<nowiki>:</nowiki>
: <kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki></kbd>''hour24''<kbd><nowiki>}}</nowiki></kbd>
; Examples for AM hours<nowiki>:</nowiki>
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>24<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|24}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>0<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|0}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>00<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|00}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>1<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|1}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>01<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|01}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>2<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|2}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>01<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|02}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>9<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|9}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>09<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|09}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>10<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|10}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>11<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|11}}"
; Examples for PM hours<nowiki>:</nowiki>
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>12<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|12}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>13<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|13}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>14<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|14}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>15<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|15}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>21<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|21}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>22<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|22}}"
* "<kbd><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>23<nowiki>}}</nowiki></kbd>" returns "{{{{BASEPAGENAME}}|23}}"
; See also<nowiki>:</nowiki>
* [[Template:HOUR12]]
* [[Template:HOUR]]
<includeonly>
[[Category:Date-computing templates|{{PAGENAME}}]]
</includeonly>