Wasteland Wiki
m (Protected "Template:Navbar" [edit=autoconfirmed:move=autoconfirmed])
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{type|}}}
+
<includeonly><onlyinclude><!--
| full= <div class="noprint plainlinks t_navbar" id="Tnavbar-mini">[{{fullurl:Template:{{{1}}}}} <span class="t_navbar_item" title="View this template.">view</span>]&middot;[{{fullurl:Template_talk:{{{1}}}}} <span class="t_navbar_item" title="Discussion about this template.">talk</span>]&middot;[{{fullurl:Template:{{{1}}}|action=edit}} <span class="t_navbar_item" title="You can edit this template. Please use the preview button before saving.">edit</span>]</div>
 
| mini
 
| #default = <div class="noprint plainlinks t_navbar" id="Tnavbar-mini">[{{fullurl:Template:{{{1}}}}} <span class="t_navbar_item" title="View this template.">v</span>]&middot;[{{fullurl:Template_talk:{{{1}}}}} <span class="t_navbar_item" title="Discussion about this template.">d</span>]&middot;[{{fullurl:Template:{{{1}}}|action=edit}} <span class="t_navbar_item" title="You can edit this template. Please use the preview button before saving.">e</span>]</div>}}</includeonly><noinclude>
 
   
  +
--><div class="va-navbar noprint"><!--
{{documentation}}
 
  +
-->[{{fullurl:{{ns:Template}}:{{{1}}}}} <span class="va-navbar-item" title="View this template"><!--
  +
-->{{#switch:{{lc:{{{type|}}}}}|full=view|mini|#default=v}}<!--
  +
--></span>]<!--
  +
-->&middot;<!--
  +
-->[{{fullurl:{{ns:Template talk}}:{{{1}}}}} <span class="va-navbar-item" title="Discuss this template"><!--
  +
-->{{#switch:{{lc:{{{type|}}}}}|full=talk|mini|#default=d}}<!--
  +
--></span>]<!--
  +
-->&middot;<!--
  +
-->[{{fullurl:{{ns:Template}}:{{{1}}}|action=edit}} <span class="va-navbar-item" title="Edit this template"><!--
  +
-->{{#switch:{{lc:{{{type|}}}}}|full=edit|mini|#default=e}}<!--
  +
--></span>]<!--
  +
--></div><!--
   
  +
--></onlyinclude></includeonly>
[[Category:Utility templates|{{PAGENAME}}]]</noinclude>
 
  +
{{Documentation}}
 
[[Category:Auxiliary templates]]

Latest revision as of 13:55, 17 March 2012

Template documentation (for the template shown above, sometimes hidden or invisible)

Template for adding view · discuss · edit navigational functionality to another template.

Usage

Simply place the following inside the template:

{{navbar|Name of Template}}

Parameters

OptionalIcon optional.png
(default: "mini")
type

Determines type of navbar. Available options:

  • mini: Link names are abbreviated to "v", "d" and "e"
  • full: Link names are not abbreviated
Documentation transcluded from Template:Navbar/doc.