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-05-25 08Z|after=距离明天(CST)还有$1。}}

效果: -