Template:MenuBox
来自Valve Developer Community
跳转到导航
跳转到搜索
文档页面 Template:MenuBox/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
Creates a right-floating navigation box. This template will normally be wrapped in another.
Parameters
| Parameter | Description | Example |
|---|---|---|
{{{title}}}
|
Title of the menu box. | | title = Main Page |
{{{link}}}
|
Adds a link for the title. If this is not set, it will use the {{{title}}} as the link. | | link = Half-Life 2 |
{{{nolink}}}
|
Prevents the link from being loaded. Useful for pages that don't have a page for it. | | nolink = 1 |
{{{icon}}}
|
A file link that will be placed before the title. | | icon = [[File:Icon hl2.png|link=Half-Life 2]] (or {{hl2}}) |
{{{text}}}
|
Used for adding a list of items or text. | | text = <span>
# MenuBox List Item 1
# MenuBox List Item 2
# MenuBox List Item 3
# MenuBox List Item 4
# MenuBox List Item 5
# MenuBox List Item 6
# MenuBox List Item 7
</span> |
{{{txtcolor}}}
|
Color of the content text. | | txtcolor = |
{{{bgcolor}}}
|
Main background color. | | bgcolor = #323232 |
{{{bgcolor2}}}
|
Title box colormain background color. | | bgcolor2 = #262626 |
{{{bdcolor}}}
|
Outer border color. | | bdcolor = #525252 |
{{{bdcolor2}}}
|
Bottom border on title box. | | bdcolor2 = #262626 |
{{{nofloat}}}
|
Sets the position to be inline. | | nofloat = 1 |
Preview and example
{{MenuBox
| title = Main Page
| icon = {{hl2}}
| text = <span>
# MenuBox List Item 1
# MenuBox List Item 2
# MenuBox List Item 3
# MenuBox List Item 4
# MenuBox List Item 5
# MenuBox List Item 6
# MenuBox List Item 7
</span>
}}