FANDOM

1,908 Pages

(Redirected page to wikipedia:Template:Navbar)
 
(c/e)
Line 1: Line 1:
#REDIRECT [[wikipedia:Template:Navbar]]
+
<includeonly><span class="noprint plainlinks navbar" style="{{{style|}}}"><!--
  +
  +
-->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else:
  +
--><span style="{{{fontstyle|}}}">{{{text|This box:}}} </span>}}<!--
  +
  +
-->{{#if:{{{brackets|}}}|<span style="{{{fontstyle|}}}">&#91;</span>}}<!--
  +
  +
--><span style="white-space:nowrap;word-spacing:-.12em;"><!--
  +
-->[[{{transclude|{{{1}}}}}|<span style="{{{fontstyle|}}}" title="View this template"><!--
  +
-->{{#if:{{{mini|}}}|v|view}}</span>]]<!--
  +
  +
--><span style="{{{fontstyle|}}}">&#32;<b>&middot;</b>&#32;</span><!--
  +
-->[[{{TALKPAGENAME:{{transclude|{{{1}}}}}}}|<span style="{{{fontstyle|}}}" title="Discuss this template"><!--
  +
-->{{#if:{{{mini|}}}|d|talk}}</span>]]<!--
  +
  +
-->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else:
  +
--><span style="{{{fontstyle|}}}">&#32;<b>&middot;</b>&#32;</span><!--
  +
-->[{{fullurl:{{transclude|{{{1}}}}}|action=edit}} <span style="{{{fontstyle|}}}" title="Edit this template"><!--
  +
-->{{#if:{{{mini|}}}|e|edit}}</span>]}}<!--
  +
--></span><!--
  +
  +
-->{{#if:{{{brackets|}}}|<span style="{{{fontstyle|}}}">&#93;</span>}}<!--
  +
  +
--></span></includeonly><noinclude>
  +
  +
{{documentation}}
  +
[[Category:Pages not to be tested on]]</noinclude>

Revision as of 05:17, May 22, 2011


[edit] [purge] Template-info.svg Template documentation

Usage

General

Copyable examples when inside a given template adds navbar navigational functionality:

  • {{navbar|{{subst:PAGENAME}}|mini=1}}
  • {{navbar|{{subst:PAGENAME}}|plain=1}}
  • {{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}

The {{subst:PAGENAME}} will be substituted with the template's name when parsed by the servers.

  • {{navbar|navbar/doc}}
produces …

Examples

Required parameters

  • {{navbar|Name of Template}} the template name is required.

Optional parameters

Options Parameters Produces...
Normal {{navbar|Template Name}} This box: view · talk · edit
Different text {{navbar|Template Name|text=This template:}} This template: view · talk · edit
No "This box:" text. {{navbar|Template Name|plain=1}} view · talk · edit
Short version. {{navbar|Template Name|mini=1}} v · d · e
For a color option. {{navbar|Template Name|fontstyle=color:green}} This box: view · talk · edit
With brackets. {{navbar|Template Name|brackets=1}} This box: [view · talk · edit]

Deprecated parameters

The |miniv=1, |viewplain=1, |nodiv=1 and |fontcolor= parameters have been deprecated. To use the view-only version, use the {{v}} or {{view}} templates instead.

Prepackaged

{{Tnavbar-header}}
Positions v ·d ·e on the right edge of the line, often used in non-collapsible navbox heading.
{{Tnavbar-navframe}}
For use in conjunction with Navframe divs, positions v • d • e opposite of the [hide]/[show] feature.
{{Tnavbar-collapsible}}
For use in conjunction with Collapsible tables, floats v • d • e opposite of the [hide]/[show] feature

See also

Community content is available under CC-BY-SA unless otherwise noted.