Templat:Duration
Untuk digunakan dalam templat yang memancarkan mikroformat hAudio.
Penggunaan
sunting{{Duration |h= |m= |s= }}
dimana:
- h = jam (hours)
- m = menit (minutes)
- s = detik (seconds)
dengan nilai parameter m dan s secara default adalah nol jika tidak dimasukkan.
Templat ini dapat digunakan dalam:
- {{Infobox album}}
- {{Infobox single}}
- {{Infobox song}}
- {{Singles}}
Untuk saat ini tidak semua yang dapat menggunakan hAudio; dikarenakan kesulitan yang tinggi.
Pemakaian
suntingDengan definisi parameter
suntingKode | Hasil |
---|---|
{{Duration|h=1|m=22|s=34}} |
1:22:34 |
{{Duration|m=74|s=32}} |
74:32 |
{{Duration|m=2|s=34}} |
2:34 |
{{Duration|h=1|s=34}} |
1:00:34 |
{{Duration|h=1}} |
1:00:00 |
{{Duration|h=0|m=22|s=34}} |
0:22:34 |
{{Duration|h=0|m=0|s=34}} |
0:00:34 |
{{Duration|h=1|m=22|s=34.5678}} |
1:22:34.5678 |
{{Duration|h=1|m=22|s=3}} |
1:22:03 |
{{Duration|h=1|m=2|s=34}} |
1:02:34 |
{{Duration|h=1|m=2|s=3}} |
1:02:03 |
{{Duration|h=1|m=2}} |
1:02:00 |
{{Duration|s=34}} |
0:34 |
{{Duration|m=0|s=34}} |
0:34 |
{{Duration|h=1|m=0|s=34}} |
1:00:34 |
{{Duration|h=1|m=22|s=0}} |
1:22:00 |
{{Duration|h=one|m=22|s=0}} |
Error in Module:Duration: Invalid values |
{{Duration|h=1|m=22|s=78}} |
Error in Module:Duration: Seconds value must be less than 60 |
{{Duration|h=1.1|m=2.2}} |
Error in Module:Duration: Hours and minutes values must be integers |
Tanpa definisi parameter
suntingKode | Hasil |
---|---|
{{Duration|1|22|34}} |
1:22:34 |
{{Duration||74|32}} |
74:32 |
{{Duration|1|2|34}} |
1:02:34 |
{{Duration|1|2|3}} |
1:02:03 |
{{Duration|0|22|34}} |
0:22:34 |
{{Duration|0|0|34}} |
0:00:34 |
{{Duration||0|34}} |
0:34 |
{{Duration|||34}} |
0:34 |
{{Duration|1|22|34.5678}} |
1:22:34.5678 |
{{Duration||1|22}} |
1:22 |
{{Duration|1|22}} |
1:22:00 |
{{Duration|1|22|0}} |
1:22:00 |
{{Duration|1|22|}} |
1:22:00 |
{{Duration|0|0|0}} |
|
{{Duration|||}} |
|
{{Duration|1|22|34|55}} |
Error in Module:Duration: Parameter number 4 should not be specified |
{{Duration|one|22|0}} |
Error in Module:Duration: Invalid values |
{{Duration|1|22|78}} |
Error in Module:Duration: Seconds value must be less than 60 |
{{Duration|1.1|2.2}} |
Error in Module:Duration: Hours and minutes values must be integers |