टेम्पलेट:Duration/doc
ई टेम्पलेट:Duration के प्रलेखन उपपन्ना ह। इहाँ उपयोग खातिर जानकारी, श्रेणी सभ आ अउरी दूसर सामग्री मौजूद बा जेवन की मूल टेम्पलेट पन्ना के हिस्सा ना हवे। |
For use in templates emitting the hAudio microformat.
Usage
[संपादन करीं]{{Duration | h = 480 | m = 60 | s = 30 }}
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: 1:22:34{{Duration|m=74|s=32}}
renders as: 74:32{{Duration|m=2|s=34}}
renders as: 2:34{{Duration|h=1|s=34}}
renders as: 1:00:34{{Duration|h=1}}
renders as: 1:00:00{{Duration|h=0|m=22|s=34}}
renders as: 0:22:34{{Duration|h=0|m=0|s=34}}
renders as: 0:00:34{{Duration|h=1|m=22|s=34.5678}}
renders as: 1:22:34.5678{{Duration|h=1|m=22|s=3}}
renders as: 1:22:03{{Duration|h=1|m=2|s=34}}
renders as: 1:02:34{{Duration|h=1|m=2|s=3}}
renders as: 1:02:03{{Duration|h=1|m=2}}
renders as: 1:02:00{{Duration|s=34}}
renders as: 0:34{{Duration|m=0|s=34}}
renders as: 0:34{{Duration|h=1|m=0|s=34}}
renders as: 1:00:34{{Duration|h=1|m=22|s=0}}
renders as: 1:22:00-
{{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: 1:22:34{{Duration||74|32}}
renders as: 74:32{{Duration|1|2|34}}
renders as: 1:02:34{{Duration|1|2|3}}
renders as: 1:02:03{{Duration|0|22|34}}
renders as: 0:22:34{{Duration|0|0|34}}
renders as: 0:00:34{{Duration||0|34}}
renders as: 0:34{{Duration|||34}}
renders as: 0:34{{Duration|1|22|34.5678}}
renders as: 1:22:34.5678{{Duration||1|22}}
renders as: 1:22{{Duration|1|22}}
renders as: 1:22:00{{Duration|1|22|0}}
renders as: 1:22:00-
{{Duration|1|22|}}
renders as: एक्सप्रेशन खराबी: > खातिर गायब क्रिया-चीन्हा (Operand)! {{Duration|0|0|0}}
renders as: (blank){{Duration|||}}
renders as: (blank)-
{{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 that makes an audio recording's details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.
- Classes used
The HTML classes this microformat uses include:
- fn
- album
- description
- category
- contributor
- duration
- h
- item
- min
- photo
- position
- price
- published
- s
For use in templates emitting the hAudio [[microformat]]
Parameter | Description | Type | Status | |
---|---|---|---|---|
Hours | h 1 | no description
| Number | suggested |
Minutes | m 2 | no description
| Number | suggested |
Seconds | s 3 | no description
| Number | suggested |