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