Template:PortableNavbox
跳转到导航
跳转到搜索
参见 w:c:dev:Global Lua Modules/PortableNavbox。
模板参数
- 第1个参数是导航框的标题;
- 第2、4、6……个参数是导航框的小标题;
- 第3、5、7……个参数是导航框的内容;
- 在导航框的内容中,叹号
!
会被置换为圆点•
。
- 在导航框的内容中,叹号
theme
parameter changes the theme class of the portable infobox creating the navbox.- type parameter changes the type class of the portable navbox.
- header-background and header-text parameters change the colors of the navbox's headers. Currently has support for Hex, RGB and HSL color codes.
- Due to how portable infobox works, transparency from the colors (in RGBA or HSLA color codes) will be stripped off. Using names for colors ("red", "silver", "azure",...) also does not work. In these cases, use CSS to stylize the navbox instead.
- 对于collapse参数:
- 若参数没有值(或异于
yes
和no
),导航框将默认打开,且折叠按钮不存在; - 若参数为
yes
,导航框将默认折叠,且折叠按钮存在; - 若参数为
no
,导航框将默认展开,且折叠按钮存在。
- 若参数没有值(或异于
stacked
parameter, when set toyes
, has the same effect aslayout="stacked"
would on
用法示例
{{PortableNavbox | 标题 | 小标题 | 项目1 ! 项目2 ! 项目3 }}