Template:Duration/doc

This template emits the hAudio microformat.

Unformatted input
An unformatted duration can be input in the first parameter:  (hours:minutes:seconds) or   (minutes:seconds). There must be a seconds value, as inputs in hours and minutes are indistinguishable from inputs in minutes and seconds.

Numbered parameters
where parameters are hours, minutes and seconds respectively. If the hours or minutes values are zero, then leave them blank (e.g. ). Minutes and seconds values default to zero, although they should ideally be specified.

h, m and s parameters
where h, m and s are hours, minutes and seconds respectively. Minutes and seconds values default to zero, although they should ideally be specified.

Parent templates
This template can be used in:

Infobox album

Infobox single

Infobox song

In Infobox album, the microformat is added automatically if there is not one already. However, more complicated values might require this template.

Unformatted input

 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:

h, m and s parameters

 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:

Numbered parameters

 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as:
 * renders as: (blank)
 * renders as: (blank)
 * renders as:
 * renders as:
 * renders as:
 * renders as:

Microformat
{	"params": { "h": { "aliases": [ "1"			],			"label": "Hours", "example": "3", "type": "number", "suggested": true },		"m": { "aliases": [ "2"			],			"label": "Minutes", "example": "32", "type": "number", "suggested": true },		"s": { "aliases": [ "3"			],			"label": "Seconds", "example": "42", "type": "number", "suggested": true }	},	"description": "For use in templates emitting the hAudio microformat", "format": "inline" }