An unformatted duration can be input in the first parameter: {{Duration|10:20:30}} (hours:minutes:seconds) or {{Duration|20:30}} (minutes:seconds). There must be a seconds value, as inputs in hours and minutes are indistinguishable from inputs in minutes and seconds.
Numbered parameters
{{Duration|10|20|30}}
where parameters are hours, minutes and seconds respectively. If the hours or minutes values are zero, then leave them blank (e.g. {{Duration||20|30}}). Minutes and seconds values default to zero, although they should ideally be specified.
h, m and s parameters
{{Duration|h=10|m=20|s=30}}
where h, m and s are hours, minutes and seconds respectively. Minutes and seconds values default to zero, although they should ideally be specified.
In {{Infobox album}}, the microformat is added automatically if there is not one already. However, more complicated values might require this template.
--111-- {{Duration|1|22|34|55}} renders as: Error in Module:Duration: Parameter number 4 should not be specified
--111-- {{Duration|one|22|0}} renders as: Error in Module:Duration: Invalid values
--111-- {{Duration|1|22|78}} renders as: Error in Module:Duration: Seconds value must be less than 60
--111-- {{Duration|1.1|2.2}} renders as: Error in Module:Duration: Hours and minutes values must be integers
Microformat
The HTML mark up produced by this template includes HTML classes intended to be part of an hAudio microformat, which makes an audio recording's details parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a playlist or database. For more information about the use of microformats on Wikipedia, please see the microformat project.
These classes may include:
fn
album
description
category
contributor
duration
h
item
min
photo
position
price
published
s
Please do not rename or remove these classes; nor collapse nested elements which use them.