舰R百科是靠无数自愿编辑者持续地建设更新完善的。编辑非常简单,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

模板:Digital clock:修订间差异

来自舰R百科
跳转到导航 跳转到搜索
无编辑摘要
(以“abort:缺乏授权”替换内容)
 
第1行: 第1行:
<includeonly>
abort:缺乏授权
<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}}<10|[[Image:LED digit 0.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE}}*1}}.png|{{{2}}}]]|{{#switch: {{#expr:{{#expr: {{CURRENTMINUTE}}/10}}-{{#expr:{{#expr: {{CURRENTMINUTE}} mod 10 }}/10}}}}
| 1 = [[Image:LED digit 1.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE}} - 10}}.png|{{{2}}}]]
| 2 = [[Image:LED digit 2.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE}} - 20}}.png|{{{2}}}]]
| 3 = [[Image:LED digit 3.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE}} - 30}}.png|{{{2}}}]]
| 4 = [[Image:LED digit 4.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE}} - 40}}.png|{{{2}}}]]
| 5 = [[Image:LED digit 5.png|{{{2}}}]][[Image:LED digit {{#expr:{{CURRENTMINUTE}} - 50}}.png|{{{2}}}]]
}}}}
|}</div>
</includeonly>
<noinclude>
This is a digital clock that you can offset to fit your own timezone. First off, you will need to figure out the UTC offset. This website should do the trick if you don't already know the offset value: [http://wwp.greenwichmeantime.com/time-zone/ wwp.greenwichmeantime.com/time-zone/].
 
<center>'''''Please note that if you are in a timezone that experiences [[daylight saving time|DST]], you will have to manually offset your clock—the same way you have to adjust some of the older clocks in your house.''''' </center>
<center>
<big>This digital clock was created by [[User:Tkgd2007]]([[User_talk:Tkgd2007|talk]]). If you have any problems, questions, or suggestions, feel free to leave me a message on my talk page or email me. If you want to modify this code, please notify me first. Thanks!<br><br>
'''<pre><nowiki>{{Digital clock | UTC/GMT offset | clock size(per character) | font color | border size }}</nowiki></pre></center>'''</big>
<br><br>
{|
!Template output
!Example code
|-
|{{Digital clock|-4|24px|red|1px}}
|<pre>{{Digital clock|-5|24px|red|1px}}</pre>
|-
|{{Digital clock|+5|20px|#5E0|3px}}
|<pre>{{Digital clock|+5|20px|#5E0|3px}}</pre>
|-
|{{Digital clock|+0|18px|#FA0|5px}}
|<pre>{{Digital clock|+0|18px|#FA0|5px}}</pre>
|}
 
</noinclude>

2016年3月11日 (五) 03:01的最新版本

abort:缺乏授权