跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
快速跳转
快速上手
登场角色
歌曲列表
成就指南
任务指南
DLC购买指南
其他企划
CDC赛事
DJMAX Ent
DJMAX中文资料库
搜索
搜索
外观
外观
移至侧栏
隐藏
创建账号
登录
个人工具
创建账号
登录
查看“︁模板:Timer”︁的源代码
模板
讨论
简体中文
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
←
模板:Timer
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<includeonly><div style="{{{style|text-align:center;font-weight:bold;color:red;margin:0px 0px 10px 0px}}};{{{extra_style|}}}"> <span class="countdown" data-options="no-leading-zeros;{{#if:{{{short|}}}|short-format}}" {{#if:{{{countup|}}}||data-end="toggle" data-toggle=".{{{class|{{{endClass|countdownComplete{{{2|1}}}}}}}}}"}} style="display:none"> <span class="countdowndate">{{{1|{{{time|}}}}}}</span> {{#if:{{{countup|}}}|{{{text|{{{endText|}}}}}}}} </span>{{#if:{{{countup|}}}|| <span class="{{{class|{{{endClass|countdownComplete{{{2|1}}}}}}}}}" style="display:none">{{{text|{{{endText|计时结束}}}}}}</span>}} </div></includeonly><noinclude> 显示一个倒计时。 ==变量== * <code>time</code> 或 <code>[1]</code> : 一个[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse 时间],必要。 * <code>countup</code> : 布尔值。如果设定时间已过,则正数计时。会覆盖<code>class</code> & <code>[2]</code>的效果。 * <code>class</code> : 当同一页面有多个计时器时区别使用。比如,第一个计时器默认为 <code>countdownComplete1</code>,第二个计时器为<code>countdownComplete2</code>,等等。 ** <code>[2]</code> : 可以是任何一个数字,比如 <code>2</code> 是第二个计时器。 * <code>text</code> : 可选文本,默认为 <code>计时结束</code> 。在 <code>countup</code> 计时结束后使用。 * <code>style</code> : 自定义格式,可选。 * <code>extra_style</code> : 默认风格之外的其他CSS格式,可选。 JS补充细节请参考[[MediaWiki:Gadget-Countdown.js]]。 ==示例== <pre> {{Timer|January 1 2023 00:00:00 +0900|extra_style = text-align:left}} </pre> {{Timer|January 1 2023 00:00:00 +0900|extra_style = text-align:left}} <pre> {{Timer|January 1 2030 00:00:00 +0900|2|style = font-style:italic|text = 还没到。}} </pre> {{Timer|January 1 2030 00:00:00 +0900|2|style = font-style:italic|text = 还没到。}} <pre> {{Timer|January 19 2038 12:14:07 +0900|3|style = font-weight:bold|text = 就是现在!}} </pre> {{Timer|January 19 2038 12:14:07 +0900|3|style = font-weight:bold|text = 就是现在!}} ==countup 示例== <pre> {{Timer|January 1 2020 00:00:00 +0900|countup=true|extra_style = text-align:left}} </pre> {{Timer|January 1 2020 00:00:00 +0900|countup=true|extra_style = text-align:left}} <pre> {{Timer|January 1 1980 00:00:00 +0900|countup=true|style = font-style:italic|text = 之前}} </pre> {{Timer|January 1 1980 00:00:00 +0900|countup=true|style = font-style:italic|text = 之前}} <pre> {{Timer|January 19 2038 12:14:07 +0900|countup=true|style = font-weight:bold|text =。对未来时间依然会正数计时。}} </pre> {{Timer|January 19 2038 12:14:07 +0900|countup=true|style = font-weight:bold|text =。对未来时间依然会正数计时。}} </noinclude>
该页面使用的模板:
模板:Timer
(
查看源代码
)
返回
模板:Timer
。
搜索
搜索
查看“︁模板:Timer”︁的源代码
添加话题