Template:Navigation: Difference between revisions

Jump to navigation Jump to search
m
Parameter "name" for the cases when "title" != template name, in order to get the V•T•E links to work in those cases. + Mentioning category suppression
m (Undo revision 65971 by Johan G (talk) What was I thinking?!)
m (Parameter "name" for the cases when "title" != template name, in order to get the V•T•E links to work in those cases. + Mentioning category suppression)
Line 1: Line 1:
{{Navbox
{{Navbox
| name  = {{{title|}}}
| name  = {{{name|{{{title|}}}}}}
| title = {{{title|}}}
| title = {{{title|}}}
| listclass = hlist
| listclass = hlist
Line 12: Line 12:


== Usage ==
== Usage ==
<pre>
<nowiki>{{</nowiki>'''navigation'''
{{navigation
<nowiki>|</nowiki> ''name    = ''
|title=
<nowiki>|</nowiki> title   =  
|content=
<nowiki>|</nowiki> content =  
}}
<nowiki>}}</nowiki>
</pre>


=== Parameters ===
; name:  Optional parameter to use when '''title''' is different from the name of the template, or else the V&bull;T&bull;E links will not work.
* <tt>'''title='''</tt> Title of the navbox, and should also be the name of the template
* <tt>'''content='''</tt> Contents of the navbox, commonly separated by "bullets" &bull; (<tt>&amp;bull;</tt>)


=== The links on the title bar ===
; title:  Title of the navbox.  Must be the name of the template when '''name''' is not used.
 
; content:  Contents of the navbox, commonly separated by "bullets" &bull; (<tt>&amp;bull;</tt>).
 
== The links on the title bar ==
To the left there is three links V&bull;T&bull;E related to the navbox.
To the left there is three links V&bull;T&bull;E related to the navbox.


''These will only work if the tamplate name is the same as the navbox title!''
'''Note:''' ''These will only work when '''name''', or when '''name''' is not used, '''title''' is the same as the name of the template!''


* '''V''' is a link to the navbox template
* '''V''' is a link to the navbox template
Line 34: Line 35:
To the right is a [hide] link will turn to a [show] link and hide the contents of the navbox.
To the right is a [hide] link will turn to a [show] link and hide the contents of the navbox.


=== Some hints and tips ===
== Some hints and tips ==
* The V&bull;T&bull;E links will work only if the name of the template is identical to the title of the navbox.
* You can easily add automatic categorisation of the pages that uses the navbox by adding categories within &lt;includeonly&gt; tags.
* You can easily add automatic categorisation of the pages that uses the navbox by adding categories within &lt;includeonly&gt; tags.
* You can [[Help:Templates#Category suppression|suppress categorisation]] when the template is used on other pages than articles by using {{tl|main other}}.
* To make it easier to use even a simple template consider adding documentation using the {{tl|informative template}}.
* To make it easier to use even a simple template consider adding documentation using the {{tl|informative template}}.


Navigation menu