模板:PortableNavbox

来自Timberborn Wiki
跳转到导航 跳转到搜索
模板:[刷新此页面] [编辑] [页面历史]

文档:[查看] [编辑] [页面历史]

模板文档

参见 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参数:
    • 若参数没有值(或异于yesno),导航框将默认打开,且折叠按钮不存在;
    • 若参数为yes,导航框将默认折叠,且折叠按钮存在;
    • 若参数为no,导航框将默认展开,且折叠按钮存在。
  • stacked parameter, when set to yes, has the same effect as layout="stacked" would on

用法示例

{{PortableNavbox
| 标题
| 小标题
| 项目1 ! 项目2 ! 项目3
}}