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

“Template:Countdown”的版本间差异

来自LLWiki
跳转到导航 跳转到搜索
第1行: 第1行:
<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>
示例:{{code|<nowiki>{{Countdown|</nowiki>{{#timel:Y-m-d|+1 day}}<nowiki> 00+08|after=距离明天(CST)还有$1。}}</nowiki>}}


效果:{{Countdown|time={{#timel:Y-m-d|+1 day}} 00+08|after=距离明天(CST)还有$1。}}}}[[category:功能模板]][[category:使用Widget的模板]]</noinclude>
效果:{{Countdown|{{#timel:Y-m-d|+1 day}} 00+08|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>

2020年10月1日 (四) 02:29的版本

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

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

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

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

<syntaxhighlight lang="html+handlebars">

--></includeonly>