• Moegirl.ICU:萌娘百科流亡社群 581077156(QQ),欢迎对萌娘百科运营感到失望的编辑者加入
  • Moegirl.ICU:账号认领正在试运行,有意者请参照账号认领流程

Template talk:Time Countdown

萌娘百科,万物皆可萌的百科全书!转载请标注来源页面的网页链接,并声明引自萌娘百科。内容不可商用。
跳转到导航 跳转到搜索

编辑请求 - Soramin - 2024.11.05

由Soramin提出的对Template:Time Countdown的编辑请求:

状态:   完成

将以下内容:

Line8, Line9, Line10, Line13

修改为:

Line8:|style="text-align:center;font-size:400%;line-height:100%"|'''{{#ifexpr: ( {{#time:U}} - {{#time:U|{{{year}}}-{{{month}}}-{{{day}}} {{{time}}}}} {{{bias|+8}}} * 3600) < 0
Line9:|<!-- Before the Time --><span style="font-size:0.5em;color: #dc5b37;">{{Countdown|time={{{year}}}-{{{month}}}-{{{day}}} {{{time|00:00}}}{{{bias|+8}}}|after=$1后}}</span>
Line10:|<!-- After the Time --><span style="font-size:0.5em">{{#if:{{{over_text|}}}|{{{over_text}}}|已结束<br>{{Countdown|time={{{year}}}-{{{month}}}-{{{day}}} {{{time|00:00}}}{{{bias|+8}}}|after=$1}}}}</span>{{#if:{{{permanentCountdown|}}}||{{ac|应当移除倒计时的页面}}}}
Line13:|style="color: grey; text-align: center;"|以{{#switch:{{{bias|+8}}}|0=UTC|#default=GMT{{{bias|+8}}}}}时间计算

新增對於時區的支持,未填寫bias的默認使用原有的GMT+8時區,對現時已使用這個模板的頁面沒有任何影響。我會稍後自行修改文檔的代碼。
修改後的效果可見這這個版本;處理編輯請求時也可以全文替換以下文本。

全文替換以下文本

<includeonly>{|class="toccolours" style="float:right;clear:right;margin:0 0 1em 1em; padding:6px; font-size:90%;width:22em;display:table"
|style="background: #dadada; text-align: center;font-size:110%"|'''{{{name}}}'''
|-
|style="text-align: center;" align="center"|{{#if:{{{logo|}}}|{{{logo}}}|}}
|-
|style="text-align: center;"|{{#if:{{{address|}}}|{{{address}}} - |}}{{{date|{{#time:Y年m月d日H:i:s|{{{year}}}-{{{month}}}-{{{day}}} {{{time}}}}}}}}
|-
|style="text-align:center;font-size:400%;line-height:100%"|'''{{#ifexpr: ( {{#time:U}} - {{#time:U|{{{year}}}-{{{month}}}-{{{day}}} {{{time}}}}} {{{bias|+8}}} * 3600) < 0
|<!-- Before the Time --><span style="font-size:0.5em;color: #dc5b37;">{{Countdown|time={{{year}}}-{{{month}}}-{{{day}}} {{{time|00:00}}}{{{bias|+8}}}|after=$1后}}</span>
|<!-- After the Time --><span style="font-size:0.5em">{{#if:{{{over_text|}}}|{{{over_text}}}|已结束<br>{{Countdown|time={{{year}}}-{{{month}}}-{{{day}}} {{{time|00:00}}}{{{bias|+8}}}|after=$1}}}}</span>{{#if:{{{permanentCountdown|}}}||{{ac|应当移除倒计时的页面}}}}
}}'''
|-
|style="color: grey; text-align: center;"|以{{#switch:{{{bias|+8}}}|0=UTC|#default=GMT{{{bias|+8}}}}}时间计算
|}
{{ac|使用了倒计时的页面}}</includeonly><noinclude>
{{Documentation}}[[分类:计算模板]]
</noinclude>

——Soramin讨论) 2024年11月5日 (二) 15:47 (CST)

完成——GuoPC / Talk / Contribs 2024年11月5日 (二) 18:41 (CST)

编辑请求 - Soramin - 2024.12.05

由Soramin提出的对Template:Time Countdown的编辑请求:

状态:   完成

将以下内容:

Line 6

修改为:

|style="text-align: center;"|{{#if:{{{address|}}}|{{{address}}} -{{0| }}|}}{{{date|{{#time:Y年m月d日H:i:s|{{{year}}}-{{{month}}}-{{{day}}} {{{time}}}}}}}}

修復未顯示的空格。
處理編輯請求時也可以全文替換以下文本。

全文替換以下文本

<includeonly>{|class="toccolours" style="float:right;clear:right;margin:0 0 1em 1em; padding:6px; font-size:90%;width:22em;display:table"
|style="background: #dadada; text-align: center;font-size:110%"|'''{{{name}}}'''
|-
|style="text-align: center;" align="center"|{{#if:{{{logo|}}}|{{{logo}}}|}}
|-
|style="text-align: center;"|{{#if:{{{address|}}}|{{{address}}} -{{0| }}|}}{{{date|{{#time:Y年m月d日H:i:s|{{{year}}}-{{{month}}}-{{{day}}} {{{time}}}}}}}}
|-
|style="text-align:center;font-size:400%;line-height:100%"|'''{{#ifexpr: ( {{#time:U}} - {{#time:U|{{{year}}}-{{{month}}}-{{{day}}} {{{time}}}}} {{{bias|+08}}} * 3600) < 0
|<!-- Before the Time --><span style="font-size:0.5em;color: #dc5b37;">{{Countdown|time={{{year}}}-{{{month}}}-{{{day}}} {{{time|00:00}}}{{{bias|+08}}}|after=$1后}}</span>
|<!-- After the Time --><span style="font-size:0.5em">{{#if:{{{over_text|}}}|{{{over_text}}}|已结束<br>{{Countdown|time={{{year}}}-{{{month}}}-{{{day}}} {{{time|00:00}}}{{{bias|+08}}}|after=$1}}}}</span>{{#if:{{{permanentCountdown|}}}||{{ac|应当移除倒计时的页面}}}}
}}'''
|-
|style="color: grey; text-align: center;"|以{{#switch:{{{bias|+08}}}|0=UTC|#default=GMT{{{bias|+08}}}}}时间计算
|}
{{ac|使用了倒计时的页面}}</includeonly><noinclude>
{{Documentation}}[[分类:计算模板]]
</noinclude>

——Soramin讨论) 2024年12月5日 (四) 21:50 (CST)

@Soramin 完成 已按需求将相应空格替换为&#32;&nbsp;,请检查是否达到效果。——GuoPC / Talk / Contribs 2024年12月11日 (三) 13:54 (CST) 修改于 2024年12月11日 (三) 14:08 (CST)
已修復顯示問題。--Soramin讨论) 2024年12月11日 (三) 19:39 (CST)