模板:Collapse/doc
腳本錯誤:沒有「Message box」這個模塊。
腳本錯誤:沒有「Shortcut」這個模塊。
腳本錯誤:沒有「Message box」這個模塊。
Template:Collapsible templates
Template:Tlx模板是
用來在短的討論中放置摺疊盒。如果需要摺疊很長的介紹文字,請使用
Template:Tlx... 很多文字 ...Template:Tlx。
此模板應只在Wikipedia:refactoring指引下被使用。它不應被用於結束討論而不顧其他人的反對(除非擾亂性編輯)。
用途[編輯]
注意:{{Collapse}}需要被替換引用(subst)以使時間戳的特性正常工作。
It is definitely safest to use the named |1= and |2= parameters, because otherwise any "=" character will break the template.
參數 bg[編輯]
bg參數是可選的。它決定背景顏色。請使用網絡顏色值(例如:#F0F2F5)。
- 示例:
{{Collapse|1=被摺疊的介紹|bg=#F0F2F5}} 產生
延伸內容
|
|---|
|
被摺疊的介紹
|
參數 padding[編輯]
padding參數調整塊的padding值(默認 8px)。
{{Collapse|1=被摺疊的介紹|padding=20px}}創建如下的形狀(展開標籤以查看邊界的padding效果):
延伸內容
|
|---|
|
被摺疊的介紹
|
被用在標題上的時候[編輯]
當模板被用來摺疊一節內容(包括標題)的時候,例如像這樣:
| == Heading == 腳本錯誤:沒有「String」這個模塊。 |
模板會被替換為:
{{subst:Collapse|1=脚本错误:没有“String”这个模块。|2=Heading}}
參數 expand[編輯]
加入|expand=yes可使框默認以展開的形式體現,並附帶「收起」連結。而不是默認收起,附帶展開連結。注意|expand=no不起作用。欲禁用此特性,則需要移除整個 |expand參數與值。
當內容包括表格的時候[編輯]
被用在包含表格附近的時候,此模板容易出錯。替代的解決方案是使用Template:Tlx和Template:Tlx包圍內容來達到摺疊效果。
另見[編輯]
- {{collapse top}}
- {{collapse bottom}}
- {{discussion top}}
- {{archive top}}
- {{hidden archive top}}