Difference between revisions of "Template:Format time/doc"
Jump to navigation
Jump to search
test>Daviddwd (←Created page with '{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> ==...') |
test>Daviddwd |
||
| Line 5: | Line 5: | ||
== Template Data == | == Template Data == | ||
| − | {{ | + | {{TemplateDataHeader}} |
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
| Line 11: | Line 11: | ||
}}</includeonly> | }}</includeonly> | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "hour": { | ||
| + | "aliases": [ | ||
| + | "hh", | ||
| + | "1" | ||
| + | ], | ||
| + | "label": "Hour", | ||
| + | "description": "Hour of the day, in 24 hour format", | ||
| + | "example": "13", | ||
| + | "type": "number", | ||
| + | "autovalue": "", | ||
| + | "required": true | ||
| + | }, | ||
| + | "minute": { | ||
| + | "aliases": [ | ||
| + | "min", | ||
| + | "2" | ||
| + | ], | ||
| + | "label": "Minute", | ||
| + | "description": "minutes after the hour", | ||
| + | "example": "3", | ||
| + | "type": "number", | ||
| + | "autovalue": "0", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | |||
| + | "second": { | ||
| + | "aliases": [ | ||
| + | "ss", | ||
| + | "sec", | ||
| + | "3" | ||
| + | ], | ||
| + | "label": "Second", | ||
| + | "description": "Seconds after the minute", | ||
| + | "type": "number" | ||
| + | }, | ||
| + | "hour_format": { | ||
| + | "label": "Hour format", | ||
| + | "type": "string", | ||
| + | "suggested": true, | ||
| + | "description": "Formats hours and whether to render AM/PM or a.m./p.m.", | ||
| + | "example": "g (7:00 p.m.), G (07:00 PM), h (19:00), or H (19:00)" | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "hour", | ||
| + | "minute", | ||
| + | "second", | ||
| + | "hour_format" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
Revision as of 19:23, 12 December 2018
| This is a documentation subpage for Template:Format time. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Template Data
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Format time
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Hour | hour hh 1 | Hour of the day, in 24 hour format
| Number | required |
| Minute | minute min 2 | minutes after the hour
| Number | suggested |
| Second | second ss sec 3 | Seconds after the minute | Number | optional |
| Hour format | hour_format | Formats hours and whether to render AM/PM or a.m./p.m.
| String | suggested |