Template:Collapsible option
- |state=collapsed:{{BASEPAGENAME|state=collapsed}},
等 個 模 顯示 係 收 埋 ,即 係 成 個 模 淨 係 睇到個 標題 列 - |state=expanded:{{BASEPAGENAME|state=expanded}},
等 個 模 顯示 係 攤開,即 係 成 個 模 都 睇到 - |state=autocollapse: {{BASEPAGENAME|state=autocollapse}},
等 個 模 ,- 如果
有 第 個 {{navbar}}、{{sidebar}},或 是 但 有可 折 埋 參 數 嘅第啲表同時 出現 ,就收埋 得 返 個 標題 列 - 如果冇第啲可
折 埋 嘅嘢,就顯示 攤開
- 如果
如果|state=autocollapse
.
{{Collapsible option}} provides a standardised message for transclusion on the pages of collapsible templates whose collapsibility may be managed by the parameter state
.
呢個<noinclude>...</noinclude>
Indicating optional use of state name[編輯 ]
The state
parameter used to manage collapsible templates need not always be named explicitly, i.e. {{[Template name]|state}} can be the same as {{[Template name]|state=state}}. To indicate this in the {{Collapsible option}} message, add the parameter |statename=optional. This modifies the message so that it reads (if it were used for itself):
- |state=collapsed:{{Collapsible option|state=collapsed}},
等 個 模 顯示 係 收 埋 ,即 係 成 個 模 淨 係 睇到個 標題 列 - |state=expanded:{{Collapsible option|state=expanded}},
等 個 模 顯示 係 攤開,即 係 成 個 模 都 睇到 - |state=autocollapse: {{Collapsible option|state=autocollapse}},
等 個 模 ,- 如果
有 第 個 {{navbar}}、{{sidebar}},或 是 但 有可 折 埋 參 數 嘅第啲表同時 出現 ,就收埋 得 返 個 標題 列 - 如果冇第啲可
折 埋 嘅嘢,就顯示 攤開
- 如果
如果|state=autocollapse
.
{{{1|}}}
as part of a collapsible template'sstate
parameterTemplate:Spaced ndashfor instance, as |state={{{state|{{{1|}}}}}} or |state={{{state|{{{1|<noinclude>expanded</noinclude>}}}}}}, etc.<noinclude>
,<includeonly>
as part of a collapsible template'sstate
argumentTemplate:Spaced ndashfor instance, as |state={{{state<includeonly>|collapsed</includeonly>}}}
Changing the default state[編輯 ]
To change the default state {{Collapsible option}} uses, add the parameter |default=collapsed or |default=expanded accordingly. To restore the default, remove any |default= previously included.
nobase[編輯 ]
If the template name given to {{Collapsible option}} includes a (forward-)slash character ("/"), the parameter |nobase= (set to "on", "true", etc.) will need to be added so that the name is displayed correctly (i.e. so that {{PAGENAME}}
rather than the default {{BASEPAGENAME}}
is used to display it).
請加 |