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

“Template:Countdown”的版本间差异

来自LLWiki
跳转到导航 跳转到搜索
(创建页面,内容为“<includeonly><span class="countdownNode" data-target="{{{1|}}}{{{time|}}}" data-before="{{{before|}}}" data-after="{{{after|}}}"> - </span>{{#Widget:Countdown}}</inc…”)
 
(使用CodeMirror可视化编辑)
 
(未显示同一用户的31个中间版本)
第1行: 第1行:
<noinclude>{{doc|content={{CCnotice|MGP=template:countdown}}
<includeonly><span class="countdownNode" data-target="{{{1|}}}{{{time|}}}" data-before="{{{before|}}}" data-after="{{{after|}}}"> - </span>{{#Widget:Countdown}}</includeonly><noinclude>{{doc|content=引自[[moegirl:template:countdown|萌娘百科:Template:Countdown]]。}}[[category:功能模板]]</noinclude>

示例:{{code|<nowiki>{{Countdown|</nowiki>{{#timel:Y年m月d日|+1 day}}<nowiki>00:00+08|after=距离明天(CST)还有$1。}}</nowiki>}}

效果:{{Countdown|{{#timel:Y年m月d日|+1 day}}00:00+08|after=距离明天(CST)还有$1。}}

说明:请尽量使用[[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>

2021年1月23日 (六) 10:23的最新版本

Template-info.png 模板文档
这个文档是内联文档。

本页面含有来自萌娘百科的文本,以CC BY-NC-SA 3.0授权引入。经过双方的修改,内容可能已与来源有很大差异。

示例:{{Countdown|2024年05月25日00:00+08|after=距离明天(CST)还有$1。}}

效果:距离明天(CST)还有

说明:请尽量使用ISO 8601标准格式,指定时区时必须用0补足两位。

-->{{#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>|}}<!--