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

「Template:Countdown」修訂間的差異

出自LLWiki
跳至導覽 跳至搜尋
(// 使用Wikiplus小工具快速编辑)
(// 使用Wikiplus小工具快速编辑)
第1行: 第1行:
<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]]。
<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> +8Z|after=距离明天(CST)还有$1。}}</nowiki></code>
示例:<code><nowiki>{{Countdown|time=</nowiki>{{#timel:Y-m-d|+1 day}}<nowiki> 08Z|after=距离明天(CST)还有$1。}}</nowiki></code>


效果:{{Countdown|time={{#timel:Y-m-d|+1 day}} +8Z|after=距离明天(CST)还有$1。}}}}[[category:功能模板]]</noinclude>
效果:{{Countdown|time={{#timel:Y-m-d|+1 day}} 08Z|after=距离明天(CST)还有$1。}}}}[[category:功能模板]]</noinclude>

於 2020年8月18日 (二) 04:53 的修訂

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

引自萌娘百科:Template:Countdown

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

效果: -