m (Protected "Template:Navbar" [edit=autoconfirmed:move=autoconfirmed]) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> |
+ | <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>]·[{{fullurl:Template_talk:{{{1}}}}} <span class="t_navbar_item" title="Discussion about this template.">talk</span>]·[{{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>]·[{{fullurl:Template_talk:{{{1}}}}} <span class="t_navbar_item" title="Discussion about this template.">d</span>]·[{{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>]<!-- |
||
+ | -->·<!-- |
||
+ | -->[{{fullurl:{{ns:Template talk}}:{{{1}}}}} <span class="va-navbar-item" title="Discuss this template"><!-- |
||
+ | -->{{#switch:{{lc:{{{type|}}}}}|full=talk|mini|#default=d}}<!-- |
||
+ | --></span>]<!-- |
||
+ | -->·<!-- |
||
+ | -->[{{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> |
||
⚫ | |||
+ | {{Documentation}} |
||
⚫ |
Latest revision as of 13:55, 17 March 2012
Template for adding view · discuss · edit
navigational functionality to another template.
Usage
Simply place the following inside the template:
{{navbar|Name of Template}}
Parameters
(default: "mini")
typeDetermines type of navbar. Available options:
- mini: Link names are abbreviated to "v", "d" and "e"
- full: Link names are not abbreviated