◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“模板:Countdown”的版本间的差异
Mikumikuer(讨论 | 贡献) (撤销Mikumikuer(讨论)的版本29509) (1个标签:撤销) |
Mikumikuer(讨论 | 贡献) (撤销Mikumikuer(讨论)的版本29507) (1个标签:撤销) |
||
第1行: | 第1行: | ||
<includeonly><div>{{#ifexpr:{{#time:U|now}}<{{#time:U|{{#time:Y/m/d H:i:s e|{{{TimeStart|Now}}}}}}} | <includeonly><div>{{#ifexpr:{{#time:U|now}}<{{#time:U|{{#time:Y/m/d H:i:s e|{{{TimeStart|Now}}}}}}} | ||
− | |还有 <span data-options="no-leading-zeros" data-end=" | + | |还有 <span data-options="no-leading-zeros" data-end="toggle" data-toggle=".post-countdown1{{{EventName}}}" class="countdown" style="display:none;"><span class="countdowndate" style="font-weight:bold">{{TZC|{{{TimeStart}}}}}</span></span> 开始<span class="post-countdown1{{{EventName}}}" style="display:none;">活动已开始。<small>[{{fullurl:{{FULLPAGENAME}}|action=purge}} Purge page]</small></span> |
− | |时间剩余: <span data-options="no-leading-zeros" data-end=" | + | |时间剩余: <span data-options="no-leading-zeros" data-end="toggle" data-toggle=".post-countdown2{{{EventName}}}" class="countdown" style="display:none;"><span class="countdowndate" style="font-weight:bold">{{TZC|{{{TimeEnd}}}}}</span></span><span class="post-countdown2{{{EventName}}}" style="display:none;">活动已结束。 <small>[{{fullurl:{{FULLPAGENAME}}|action=purge}} Purge page]</small></span>}}</div></includeonly><noinclude>(Countdown) - Parses EventName, TimeStart and TimeEnd into a countdown, mostly used on [[event]] mentioning pages. |
*Each EventName must be unique, or the countdown end message will display for all countdowns once one TimeEnd is reached. | *Each EventName must be unique, or the countdown end message will display for all countdowns once one TimeEnd is reached. | ||
*When TimeStart has been reached, the countdown will show "Event has started" and provide a link to purge the page (the user can alternatively refresh). | *When TimeStart has been reached, the countdown will show "Event has started" and provide a link to purge the page (the user can alternatively refresh). | ||
*If |TimeStart is not included in the template call, the template will automatically use Now as a placeholder time, and will skip the Time Until Start portion and go into the Time remaining portion.</noinclude> | *If |TimeStart is not included in the template call, the template will automatically use Now as a placeholder time, and will skip the Time Until Start portion and go into the Time remaining portion.</noinclude> |
2019年7月31日 (三) 09:17的最新版本
(Countdown) - Parses EventName, TimeStart and TimeEnd into a countdown, mostly used on event mentioning pages.
- Each EventName must be unique, or the countdown end message will display for all countdowns once one TimeEnd is reached.
- When TimeStart has been reached, the countdown will show "Event has started" and provide a link to purge the page (the user can alternatively refresh).
- If |TimeStart is not included in the template call, the template will automatically use Now as a placeholder time, and will skip the Time Until Start portion and go into the Time remaining portion.