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

“Template:Countdown”的版本间差异

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


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

2020年10月6日 (二) 02:39的版本

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

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

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

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

<syntaxhighlight lang="html+handlebars">

--></includeonly>