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.
m (table style hook. not documenting it because I don't want it to be overused.)
No edit summary
Line 1: Line 1:
<onlyinclude><includeonly>{| class="navbox" style="{{{style|}}}"
<onlyinclude><includeonly>{{#vardefine:navbox-hide|{{#switch:{{lc:{{{hide|}}}}}
! class="title" | {{{1|}}}<span class="_togglegroup _toggle_initshow _toggle _toggler toggle-visible">[hide]</span><span class="_toggle_inithide _toggle _toggler toggle-hidden" style="display: none;">[show]</span>
| true | yes | y = hide | false | no | n = show
| {{#ifexpr: {{#vardefineecho:navbox-ctr|{{#expr: {{#var:navbox-ctr}} + 1}}}} > 3
  | hide | show }}}}}}{| class="navbox" style="{{{style|}}}"
! class="title" | {{{1|}}}{{Toggler|default={{#var:navbox-hide}}}}
|-
|-
|<div class="_toggle_initshow _toggle toggle-visible">
|<div class="_toggle_init{{#var:navbox-hide}} _toggle">
{|</includeonly></onlyinclude>
{|</includeonly></onlyinclude>



Revision as of 21:09, February 12, 2013


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|title}}
{{Navbox/Header|header}}
{{Navbox/Row|section|content}}
{{Navbox/Bottom}}
  • 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.