Difference between revisions of "Template:MenuBox"
Jump to navigation
Jump to search
Tip: If you don't want the title to become a link, you can trick it by using
(Created page with "<includeonly><div style="position:relative;margin:0 0 1em 1em;{{#if: {{{nofloat|}}} | display:inline-block; | float:right;}}"> <div class="navbox" style="border:2px solid {{{b...") |
|||
| Line 1: | Line 1: | ||
| − | <includeonly><div style="position: | + | <includeonly><div style="position:top;margin:0 0 1em 1em;{{#if: {{{nofloat|}}} | display:inline-block; | float:right;}}"> |
<div class="navbox" style="border:2px solid {{{bdcolor|#525252}}}; text-align:left;background:{{{bgcolor|#323232}}};"> | <div class="navbox" style="border:2px solid {{{bdcolor|#525252}}}; text-align:left;background:{{{bgcolor|#323232}}};"> | ||
<div style="text-align:center; padding:.6em; background-color:{{{bgcolor2|#262626}}}; border-bottom: 2px solid {{{bdcolor2|#262626}}}; font-size:1em;position:relative;z-index:1">'''[[{{#if: {{{link|}}} | {{{link}}} | {{{title}}} }}|{{#if: {{{title|}}} | {{{title}}} | {{{link}}} }}]]'''</div> | <div style="text-align:center; padding:.6em; background-color:{{{bgcolor2|#262626}}}; border-bottom: 2px solid {{{bdcolor2|#262626}}}; font-size:1em;position:relative;z-index:1">'''[[{{#if: {{{link|}}} | {{{link}}} | {{{title}}} }}|{{#if: {{{title|}}} | {{{title}}} | {{{link}}} }}]]'''</div> | ||
Revision as of 21:41, 4 August 2020
Creates a right-floating navigation box. This template will normally be wrapped in another.
link=name of current page.Simple example
{{MenuBox
|title= Main Page
|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>
}}
All parameters
{{MenuBox
|title = page to link at top
|link = alternative link for 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
}}