Template:Navbox: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m
no edit summary
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{{#vardefine:navbox-hide|{{#switch:{{lc:{{{hide|}}}}}
<onlyinclude><includeonly>{{#vardefine:navbox-hide|{{#switch:{{lc:{{{hide|}}}}}
| true | yes | y = hide | false | no | n = show
| hide | true | yes | y = hide | show | false | no | n = show
| {{#ifexpr: {{++|navbox-ctr}} > 3
| {{#ifexpr: {{++|navbox-ctr}} > 3
   | hide | show }}}}}}{{Box|class=navbox|style={{{style|}}}|title={{{1|}}}|hide={{#var:navbox-hide}}}}
   | hide | show }}}}}}{{Box|class=navbox|style={{{style|}}}|title={{{1|}}}|hide={{#var:navbox-hide}}|edit={{{edit|{{#if:{{{1|}}}|Template:{{{1}}}}}}}}}}
{|</includeonly></onlyinclude>
{|</includeonly></onlyinclude>


Line 11: Line 11:
This template is used as a composite of several subtemplates. Start with the code:
This template is used as a composite of several subtemplates. Start with the code:
{{Float|left|<pre>
{{Float|left|<pre>
{{Navbox|title}}
{{Navbox|edit{{=}}|hide{{=}}|title}}
{{Navbox/Header|header}}
{{Navbox/Header|header}}
{{Navbox/Row|section|content}}
{{Navbox/Row|section|content}}
{{Navbox/Bottom}}
{{Navbox/Bottom}}
</pre>}}
</pre>}}
{{Usage/Param|edit|The name of the navbox template. Creates a link to edit that template.|optional}}
{{Usage/Param|hide|Navboxes are hidden by default if there are three or more above them. To override this, set hide{{=}}true or hide{{=}}false.|optional}}
{{Usage/Param|title|The title that appears at the top of the navbox.}}
{{Usage/Param|title|The title that appears at the top of the navbox.}}
{{Usage/Param|header|A header inside the navbox, spanning across the width.}}
{{Usage/Param|header|A header inside the navbox, spanning across the width.}}

Navigation menu