Template:Navbox: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(integr)
No edit summary
Line 2: Line 2:
| hide | true | yes | y = hide | show | 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}}{{#if:{{{edit|}}}|{{!}}edit{{=}}{{{edit}}}}}}}
   | hide | show }}}}}}{{Box|class=navbox|style={{{style|}}}|title={{{1|}}}|hide={{#var:navbox-hide}}|edit={{{edit|}}}}}
{|</includeonly></onlyinclude>
{|</includeonly></onlyinclude>



Revision as of 02:02, August 11, 2014


Purpose

This meta-template is used to more easily create navigation footers.

Usage

This template is used as a composite of several subtemplates. Start with the code:

{{Navbox|edit{{=}}|hide{{=}}|title}}
{{Navbox/Header|header}}
{{Navbox/Row|section|content}}
{{Navbox/Bottom}}
  • edit — The name of the navbox template. Creates a link to edit that template. (Optional.)
  • hide — Navboxes are hidden by default if there are three or more above them. To override this, set hide=true or hide=false. (Optional.)
  • title — The title that appears at the top of the navbox.
  • header — A header inside the navbox, spanning across the width.
  • section — A label for the section/row. (Optional.)
  • content — The content of the row, usually a list of links.

{{Navbox}} and {{Navbox/Bottom}} are required. Between them, place any number of {{Navbox/Header}}s and {{Navbox/Row}}s in any order.

Any Navbox after the third one on a page is hidden by default, but they can be force to be shown or hidden by specifying "hide=false" or "hide=true", respectively. {{Cat|Box Templates