模板: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
}}