LLWiki正在建設中,歡迎加入我們

「Template:Countdown」修訂間的差異

出自LLWiki
跳至導覽 跳至搜尋
第1行: 第1行:
<noinclude>{{doc|content={{CCnotice|MGP=template:countdown}}
<noinclude>{{doc|content={{CCnotice|MGP=template:countdown}}


示例:{{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>T00:00+08:00|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}}T00:00+08:00|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月30日 (五) 05:55 的修訂

Template-info.png 模板文檔
這個文檔是內聯文檔。

本頁面含有來自萌娘百科的文本,以CC BY-NC-SA 3.0授權引入。經過雙方的修改,內容可能已與來源有很大差異。

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

效果:距離明天(CST)還有

<syntaxhighlight lang="html+handlebars">

--></includeonly>