Duration

This template emits the hAudio microformat.

Duration Template documentation

Usage

Unformatted input

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.

Parent templates

This template can be used in:

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

Examples

Unformatted input

  • {{Duration|1:22:34}} renders as: एक्स्प्रेशन गल्ती: अनपेक्षित उद्गार चिन्ह ":"।
  • {{Duration|74:32}} renders as: एक्स्प्रेशन गल्ती: अनपेक्षित उद्गार चिन्ह ":"।
  • {{Duration|1:02: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: एक्स्प्रेशन गल्ती: अनपेक्षित उद्गार चिन्ह ":"।

h, m and s parameters

  • {{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: :२२:
  • आकृति:N {{Duration|h=one|m=22|s=0}} renders as: एक्स्प्रेशन गल्ती: अनपेक्षित शब्द "one"।
  • आकृति:N {{Duration|h=1|m=22|s=78}} renders as: Error: 's' must not be greater than 59.
  • आकृति:N {{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: :२२:
  • आकृति:N {{Duration|1|22|}} renders as: एक्स्प्रेशन त्रुटि: >क घटक नै भेटल।
  • {{Duration|0|0|0}} renders as: (blank)
  • {{Duration|||}} renders as: (blank)
  • आकृति:N {{Duration|1|22|34|55}} renders as: Error: Parameter number 4 should not be specified.
  • आकृति:N {{Duration|one|22|0}} renders as: एक्स्प्रेशन गल्ती: अनपेक्षित शब्द "one"।
  • आकृति:N {{Duration|1|22|78}} renders as: Error: 's' must not be greater than 59.
  • आकृति:N {{Duration|1.1|2.2}} renders as: Error: 'h' and 'm' values must be integers.

Microformat

आकृति:UF-audio-part

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for Duration

For use in templates emitting the hAudio [[microformat]]

साँचे के पैरामीटर्ससाँचा डेटा सम्पादित करें

इस साँचे के लिए पैरामीटरों के इनलाइन प्रारूपण को प्राथमिकता दी जाती है।

पैरामीटरविवरणप्रकारस्थिति
Hoursh 1

कोई विवरण नहीं

    उदाहरण
    3
संख्यासुझावित
Minutesm 2

कोई विवरण नहीं

    उदाहरण
    32
संख्यासुझावित
Secondss 3

कोई विवरण नहीं

    उदाहरण
    42
संख्यासुझावित

Tags:

🔥 Trending searches on Wiki मैथिली:

४ अप्रैलदिसम्बर ३०बार्सिलोनाकुरुक्षेत्र युद्धअप्रैलशंखरापुर नगरपालिकाताँजाकोट गाउँपालिकाकल्याण सिंहइन्डोनेशियन भाषादीपिका पादुकोणमई १२२६ अक्टुबरजनवरी१८ मार्चअङ्ग्रेजी भाषाजयराम ठाकुरमार्च १२१८९४लुई पास्चरगाँजाफरबरी२२ अप्रैल९ फरबरी२९ जनवरीगढवाल (वंश)मलाला युसुफजईक्षेत्रफलएन्टिगुआ आ बर्बुडाबैङ्ककराम नवमीकथकसिङ्गापुरहनुमान चालीसा१९५८शून्यशेख जाइद भव्य मस्जिदडि एम यक्स(गायक)चलचित्रसीरियाइरफान खानअर्घाखाँची जिला५ दिसम्बर१९७७१० जनवरीरोमन क्याथोलिक चर्चबयाला१ जनवरीरसायनशास्‍त्र१९८९दिनेश लाल यादवकन्नड़ भाषारने देकार्त१८९८रामसेतुममता शर्मा३० सितम्बरअर्चना पुरण सिंहराम नाथ कोविन्दउदय मंडलमार्च ६मई १५इवाअगस्त २३जनवरी १४🡆 More