आकृति:Duration/doc

मैथिली विकिपिडियासँ, एक मुक्त विश्वकोश

This template emits the hAudio microformat.

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
संख्यासुझावित