|
|
(未显示同一用户的5个中间版本) |
<noinclude>{{doc|content={{CCnotice|MGP=template:countdown}}
示例:{{code|<nowiki>{{Countdown|</nowiki>{{#timel:Y-年m-月d日|+1 day}}<nowiki>T0000:00+08:00|after=距离明天(CST)还有$1。}}</nowiki>}}
效果:{{Countdown|{{#timel:Y-年m-月d日|+1 day}}T0000:00+08:00|after=距离明天(CST)还有$1。}}
说明:指定时间请尽量使用[[zhwiki:ISO 8601|ISO 8601标准格式]],指定时区时必须用0补足两位。}}[[category:计算模板]][[category:使用Widget的模板]]</noinclude><includeonly><!--</includeonly><syntaxhighlightpre langclass="html+handlebarswiki-highlight">-->{{#if:{{{1|}}}{{{time|}}}|{{#widget:abbr}}{{#Widget:Countdown}}<span class="countdownNode abbr" title="{{{1|{{{time}}}}}}"><span>{{#replace:{{{before|$1前}}}|$1|<span class="countdown"></span>}}</span><span>{{#replace:{{{after|还剩$1}}}|$1|<span class="countdown"></span>}}</span></span>|}}<!--</pre><includeonly>--></includeonly>
-->{{#if:{{{1|}}}{{{time|}}}|{{#Widget:Countdown}}<span class="countdownNode" title="{{{1|{{{time}}}}}}"><span>{{#replace:{{{before|$1前}}}|$1|<span class="countdown"></span>}}</span><span>{{#replace:{{{after|还剩$1}}}|$1|<span class="countdown"></span>}}</span></span>|}}<!--
</syntaxhighlight><includeonly>--></includeonly>
|