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

“Template:Countdown”的版本间差异

跳转到导航 跳转到搜索
添加242字节 、​ 2021年1月23日 (六) 10:23
使用CodeMirror可视化编辑
(// 使用Wikiplus小工具快速编辑)
(使用CodeMirror可视化编辑)
 
(未显示同一用户的28个中间版本)
<noinclude>{{doc|content={{CCnotice|MGP=template:countdown}}
<includeonly>{{#vardefine:countdownId|{{#expr:{{#var:countdownId|0}}+1}}}}<span id="countdown{{#var:countdownId}}" class="countdownNode" data-target="{{{1|}}}{{{time|}}}" data-before="{{{before|}}}" data-after="{{{after|}}}"> - </span>{{#Widget:Countdown}}</includeonly><noinclude>{{doc|content=引自[[moegirl:template:countdown|萌娘百科:Template:Countdown]]。
 
示例:<{{code>|<nowiki>{{Countdown|time=</nowiki>{{#timel:Y-m-d|+1 day}}<nowiki> 00:00+808|after=距离明天(CST)还有$1。}}</nowiki></code>}}
 
效果:{{Countdown|time={{#timel:Y-m-d|+1 day}} 00:00+808|after=距离明天(CST)还有$1。}}}}[[category:功能模板]]</noinclude>
 
说明:请尽量使用[[zhwiki:ISO 8601|ISO 8601标准格式]],指定时区时必须用0补足两位。}}[[category:计算模板]][[category:使用Widget的模板]]</noinclude><includeonly><!--</includeonly><pre class="wiki-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>
16,874

个编辑

导航菜单