Templat:Jam digital: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Kenrick95 (bicara | kontrib)
Kenrick95 (bicara | kontrib)
Tidak ada ringkasan suntingan
Baris 2:
<div style="float: left; border:solid black {{{4}}}; margin: 0px;"><!-- {{#if{{{4|}}}|{{{4}}}|black}} -->
{| cellspacing="0" style="background: {{{3}}};"
| style="padding: 0pt; line-height: 1.25em;" |{{#ifexpr: {{#time: H| {{{1}}} hours}} < 10|[[Image:LED digit 0.png|{{{2}}}]][[Image:LED digit {{#expr:{{#time: H| {{{1}}} hours}}*1}}.png|{{{2}}}]]|{{#ifexpr: {{#time: H| {{{1}}} hours}} < 20|[[Image:LED digit 1.png|{{{2}}}]][[Image:LED digit {{#expr:{{#time: H| {{{1}}} hours}}-10*1}}.png|{{{2}}}]]|[[Image:LED digit 2.png|{{{2}}}]][[Image:LED digit {{#expr:{{#time: H| {{{1}}} hours}}-20*1}}.png|{{{2}}}]]}}}}[[Image:LED colon.png|{{{2}}}]]{{#ifexpr: {{CURRENTMINUTE#time:i}}<10|[[Image:LED digit 0.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE#time:i}}*1}}.png|{{{2}}}]]|{{#switch: {{#expr:{{#expr: {{CURRENTMINUTE#time:i}}/10}}-{{#expr:{{#expr: {{CURRENTMINUTE#time:i}} mod 10 }}/10}}}}
| 1 = [[Image:LED digit 1.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE#time:i}} - 10}}.png|{{{2}}}]]
| 2 = [[Image:LED digit 2.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE#time:i}} - 20}}.png|{{{2}}}]]
| 3 = [[Image:LED digit 3.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE#time:i}} - 30}}.png|{{{2}}}]]
| 4 = [[Image:LED digit 4.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE#time:i}} - 40}}.png|{{{2}}}]]
| 5 = [[Image:LED digit 5.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE#time:i}} - 50}}.png|{{{2}}}]]
}}}}
|}</div>