ढाँचा:Duration
For use in templates emitting the hAudio microformat.
Usage
सम्पादन गर्नुहोस्{{Duration |h= |m= |s= }}
Where:
- h= hours
- m= minutes
- s= seconds
m and s values default to zero if not set, according to the pattern below.
Parent templates
सम्पादन गर्नुहोस्This template can be used in:
- {{Infobox album}}
- {{Infobox single}}
- {{Infobox song}}
- {{Singles}}
not all of which currently emit hAudio; work to have them do so is in hand.
Examples
सम्पादन गर्नुहोस्{{Duration|h=1|m=22|s=34}}
renders as: १:२२:३४{{Duration|m=74|s=32}}
renders as: ७४:३२{{Duration|m=2|s=34}}
renders as: २:३४{{Duration|h=1|s=34}}
renders as: १:०:३४{{Duration|h=1}}
renders as: १:०:००{{Duration|h=0|m=22|s=34}}
renders as: ०:२२:३४{{Duration|h=0|m=0|s=34}}
renders as: ०:०:३४{{Duration|h=1|m=22|s=34.5678}}
renders as: १:२२:३४.५६७८{{Duration|h=1|m=22|s=3}}
renders as: १:२२:३{{Duration|h=1|m=2|s=34}}
renders as: १:२:३४{{Duration|h=1|m=2|s=3}}
renders as: १:२:३{{Duration|h=1|m=2}}
renders as: १:२:००{{Duration|s=34}}
renders as: ०:३४{{Duration|m=0|s=34}}
renders as: ०:३४{{Duration|h=1|m=0|s=34}}
renders as: १:०:३४{{Duration|h=1|m=22|s=0}}
renders as: १:२२:०{{Duration|h=one|m=22|s=0}}
renders as: अभिव्यक्ति त्रुटि: अज्ञात शब्द "one"।{{Duration|h=1|m=22|s=78}}
renders as: Error:'s'
must not be greater than 59.{{Duration|h=1.1|m=2.2}}
renders as: Error:'h'
and'm'
values must be integers.
Numbered parameters
सम्पादन गर्नुहोस्{{Duration|1|22|34}}
renders as: १:२२:३४{{Duration||74|32}}
renders as: ७४:३२{{Duration|1|2|34}}
renders as: १:२:३४{{Duration|1|2|3}}
renders as: १:२:३{{Duration|0|22|34}}
renders as: ०:२२:३४{{Duration|0|0|34}}
renders as: ०:०:३४{{Duration||0|34}}
renders as: ०:३४{{Duration|||34}}
renders as: ०:३४{{Duration|1|22|34.5678}}
renders as: १:२२:३४.५६७८{{Duration||1|22}}
renders as: १:२२{{Duration|1|22}}
renders as: १:२२:००{{Duration|1|22|0}}
renders as: १:२२:०{{Duration|1|22|}}
renders as: अज्ञात त्रुटी:> को लागि ओपरन्ड छुटेको{{Duration|0|0|0}}
renders as:{{Duration|||}}
renders as:{{Duration|1|22|34|55}}
renders as: Error: Parameter number 4 should not be specified.{{Duration|one|22|0}}
renders as: अभिव्यक्ति त्रुटि: अज्ञात शब्द "one"।{{Duration|1|22|78}}
renders as: Error:'s'
must not be greater than 59.{{Duration|1.1|2.2}}
renders as: Error:'h'
and'm'
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.