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

“Template:Countdown”的版本间差异

跳转到导航 跳转到搜索
添加51字节 、​ 2020年10月1日 (四) 02:29
无编辑摘要
<noinclude>{{doc|content={{CCnotice|MGP=template:countdown}}
<includeonly>{{#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>|}}</includeonly><noinclude>{{doc|content=引自[[moegirl:template:countdown|萌娘百科:Template:Countdown]]。
 
示例:<{{code>|<nowiki>{{Countdown|time=</nowiki>{{#timel:Y-m-d|+1 day}}<nowiki> 00+08|after=距离明天(CST)还有$1。}}</nowiki></code>}}
 
效果:{{Countdown|time={{#timel:Y-m-d|+1 day}} 00+08|after=距离明天(CST)还有$1。}}}}[[category:功能模板]][[category:使用Widget的模板]]</noinclude><includeonly><!--</includeonly><syntaxhighlight lang="html+handlebars">
<includeonly-->{{#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>|}}</includeonly><noinclude>{{doc|content=引自[[moegirl:template:countdown|萌娘百科:Template:Countdown]]。!--
</syntaxhighlight><includeonly>--></includeonly>
16,874

个编辑

导航菜单