Template:MenuBox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Adding Template:Doc)
Line 6: Line 6:
</div>
</div>
</div>
</div>
</div></includeonly><noinclude>
</div></includeonly>
 
<noinclude>
Creates a right-floating navigation box. This template will normally be wrapped in another.
{{Doc}}
{{tip|If you don't want the title to become a link, you can trick it by using <code>link&#61;name of current page</code>.}}
</noinclude>
== Simple 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>
}}
<pre>
{{MenuBox
|title= Main Page
|icon= [[File:Icon hl2.png|link=Half-Life 2]] (or {{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>
}}</pre>
 
== All parameters ==
<pre>{{MenuBox
|title = page to link at top
|link = alternative link for the title
|icon = a file link that will be placed before the title
|text = content text
|txtcolor = color of the content text
|bgcolor = main background color
|bgcolor2 = title box color
|bdcolor = outer border color
|bdcolor2 = bottom border on title box
|nofloat = set true to appear inline
}}
</pre></noinclude>

Revision as of 11:25, 26 February 2025


English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

Creates a right-floating navigation box. This template will normally be wrapped in another.

Parameters

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>
}}