Template:Navbox documentation
| 此模板不能在维基百科的移动视图中显示,只能在桌面版显示。请阅读文档以获得解释。 |
这是使用{{navbox}}创建的导航模板,可以在条目附录末尾使用{{Navbox documentation}}将其嵌入包含于页面中,以便为读者提供相关条目之导览。
显示状态
- 如何控制本模板的显示状态
- 使用
{{Navbox documentation|state=collapsed}}使本模板显示为折叠(隐藏)状态。 - 使用
{{Navbox documentation|state=expanded}}使本模板显示为展开(显示)状态。 - 使用
{{Navbox documentation|state=autocollapse}}使本模板仅在页面上有其他相同类型的模板时,显示为折叠(隐藏)状态。 autocollapse已被设为默认状态。
模板数据
可放置于条目底部的导航框。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| State | state | 导航框的默认显示状态
| 字符串 | 推荐 |
嵌入状况
| 嵌入維護 |
|---|
| 檢查嵌入完整度 |
以模板文档的样式展示{{Collapsible option}}。{{Collapsible option}}模板另可使用|stateless=yes控制显示情况。参见该模板以获取更进一步的介绍。
TemplateData
This is a wrapper for {{Collapsible option}} to provide a semblance of documentation for navbox templates.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Top content | intro or 2 | Hatnotes, Usage, etc. (above {{collapsible option}} but below {{Template display|nomobile}}) | 内容 | 可选 |
| Content | 3 | TemplateData, See also, etc. (below {{collapsible option}}) | 内容 | 可选 |
| State | state 1 | The default initial state of the template. Set to either: (1) expand, (2) collapse, or (3) autocollapse
| 未知 | 推荐 |
| Template | template | To call the template anything other than {{PAGENAME}} within the documentation
| 字符串 | 可选 |
| Stateless | stateless | Hides the {{Collapsible option}} transclusion for when the navbox doesn't support a state.
| 未知 | 可选 |