LLWiki正在建设中,欢迎加入我们

“Template:Countdown”的版本间差异

跳转到导航 跳转到搜索
添加12字节 、​ 2020年10月30日 (五) 05:55
无编辑摘要
<noinclude>{{doc|content={{CCnotice|MGP=template:countdown}}
 
示例:{{code|<nowiki>{{Countdown|</nowiki>{{#timel:Y-m-d|+1 day}}<nowiki> T00:00+08:00|after=距离明天(CST)还有$1。}}</nowiki>}}
 
效果:{{Countdown|{{#timel:Y-m-d|+1 day}} T00:00+08:00|after=距离明天(CST)还有$1。}}}}[[category:计算模板]][[category:使用Widget的模板]]</noinclude><includeonly><!--</includeonly><syntaxhighlight lang="html+handlebars">
-->{{#if:{{{1|}}}{{{time|}}}|{{#Widget:Countdown}}<span class="countdownNode" data-target="{{{1|{{{time}}}}}}" title="小时个月"><span>{{#regex:{{{before|$1前}}}|/\$1/|<span class="countdown"></span>}}</span><span>{{#regex:{{{after|还剩$1}}}|/\$1/|<span class="countdown"></span>}}</span></span>|}}<!--
</syntaxhighlight><includeonly>--></includeonly>
16,874

个编辑

导航菜单