Difference between revisions of "Template:Format time/doc"

From blackwiki
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 ==
{{TemplateData Header}}
+
{{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

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.

Template parameters

ParameterDescriptionTypeStatus
Hourhour hh 1

Hour of the day, in 24 hour format

Example
13
Auto value
Numberrequired
Minuteminute min 2

minutes after the hour

Example
3
Auto value
0
Numbersuggested
Secondsecond ss sec 3

Seconds after the minute

Numberoptional
Hour formathour_format

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)
Stringsuggested