|
|
本館粉絲專頁 |
|
|
使用者:Digipunk/FC:修訂版本之間的差異
台灣棒球維基館
小 (移除重複參數(MM 寫了兩次)) |
小 |
||
| 第113行: | 第113行: | ||
:* 如果有指定年月,便顯示指定的年月。 | :* 如果有指定年月,便顯示指定的年月。 | ||
:* 如果未指定年月,則: | :* 如果未指定年月,則: | ||
| − | ::* 如果位於「Y年/ | + | ::* 如果位於「Y年/M月」頁面,則自動取用該頁面標題裡的年月。<B>【此模板的主要用途】</B> |
::* 否則便顯示目前年月。 | ::* 否則便顯示目前年月。 | ||
| + | |||
| + | ===第六列=== | ||
| + | <DIV STYLE="width:85%"> | ||
| + | :* 因每月的日數及起始日之不同,日曆會以五列或六列的形式呈現。但某些時候為顧及版面問題,希望高度一致,可設定 <tt>row6=1</tt> 強制顯示第六列,無論該月份的日期會不會用到第六列。 | ||
| + | :* 強制顯示第六列時,才一併顯示前後月的零星日期。 | ||
| + | ====範例:預設值==== | ||
| + | :* 有時候有第六列,有時候沒有。 | ||
| + | {| CELLSPACING="6" | ||
| + | |- STYLE="vertical-align:top" | ||
| + | |{{{{User:Digipunk/TPL|FC}}|st=position:static|2016/1}} | ||
| + | |{{{{User:Digipunk/TPL|FC}}|st=position:static|2016/2}} | ||
| + | |} | ||
| + | ====範例:強制顯示第六列==== | ||
| + | {| CELLSPACING="6" | ||
| + | |- STYLE="vertical-align:top" | ||
| + | |{{{{User:Digipunk/TPL|FC}}|st=position:static|2016/1|row6=1}} | ||
| + | |{{{{User:Digipunk/TPL|FC}}|st=position:static|2016/2|row6=1}} | ||
| + | |} | ||
==範例== | ==範例== | ||
| 第126行: | 第144行: | ||
==開發記錄== | ==開發記錄== | ||
| + | :* <tt>[2015-11]</tt> 初次實作,但受限於模板編輯權限,完成後未公開。 | ||
:* <tt>[2016-07-24]</tt> 建立模板。 | :* <tt>[2016-07-24]</tt> 建立模板。 | ||
| + | :* <tt>[2016-07-27]</tt> 強制顯示第六列時才順便顯示前後月的零星日期。 | ||
</NOINCLUDE> | </NOINCLUDE> | ||
2016年7月27日 (三) 10:54的修訂版本
目次 |
浮動式小日曆(FC,Floating Calendar)
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F1","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F2","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F3","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F4","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F5","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F6","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F7","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F8","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F9","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F10","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F11","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2025%2F12","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
語法
| 1 | {{FC | |
| 2 | <!-- 【順序參數】 --> | |
| 3 | | 1 | = <年月。格式:YYYY/MM。預設值:目前年月> |
| 4 | ||
| 5 | <!-- 【具名參數】 --> | |
| 6 | | st | = <額外樣式> |
| 7 | | row6 | = <設為 1 表示強迫顯示第六列。預設值為看情況決定第六列要不要顯示> |
| 7 | }} | |
說明
- 原則上,浮動式小月曆適用於逐條列舉棒球活動的「Y年/M月」頁面,提供快捷鏈結以增進閱讀效率。
預設行為
- 如果有指定年月,便顯示指定的年月。
- 如果未指定年月,則:
- 如果位於「Y年/M月」頁面,則自動取用該頁面標題裡的年月。【此模板的主要用途】
- 否則便顯示目前年月。
第六列
- 因每月的日數及起始日之不同,日曆會以五列或六列的形式呈現。但某些時候為顧及版面問題,希望高度一致,可設定 row6=1 強制顯示第六列,無論該月份的日期會不會用到第六列。
- 強制顯示第六列時,才一併顯示前後月的零星日期。
範例:預設值
- 有時候有第六列,有時候沒有。
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":0,"countdown":0,"arg1":"2016%2F1","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":0,"countdown":0,"arg1":"2016%2F2","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
範例:強制顯示第六列
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2016%2F1","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":1,"countdown":0,"arg1":"2016%2F2","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null,"div":"position%3Astatic"},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
|
範例
語法 得到結果 說明 {{FC}} ↙在左下角 無參數,取用預設值:目前年月
{"pagename":"%E4%BD%BF%E7%94%A8%E8%80%85%3ADigipunk%2FFC","localurl":"%2Fwiki%2Findex.php%3Ftitle%3D","ymp":0,"human":1,"row6":0,"countdown":0,"arg1":"","id":"DGPK-FC","title":"","from":"","to":"","more":"","shift":"","st":{"placeholder":null},"links":{"placeholder":null},"p-links":{"placeholder":null},"n-links":{"placeholder":null}}
開發記錄
- [2015-11] 初次實作,但受限於模板編輯權限,完成後未公開。
- [2016-07-24] 建立模板。
- [2016-07-27] 強制顯示第六列時才順便顯示前後月的零星日期。