Template:Navigation: Difference between revisions
Jump to navigation
Jump to search
hlist
m (Fix template) |
(Too bad, did not work) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| | {{Navbox | ||
| name = {{{name|{{{title|Add title}}}}}} | |||
| title = {{{title|Add title}}} | |||
| | | state = <noinclude>uncollapsed</noinclude> | ||
| listclass = hlist | |||
[[Category | | list1 = | ||
[[Category: | {{{content|Add content}}} | ||
}}<noinclude> | |||
{{Informative template|1= | |||
__NOTOC__ | |||
== Goal == | |||
This template is a template for simple navigation boxes at the bottom of pages. | |||
== Usage == | |||
<nowiki>{{</nowiki>'''navigation''' | |||
<nowiki>|</nowiki> ''name = '' | |||
<nowiki>|</nowiki> title = | |||
<nowiki>|</nowiki> content = | |||
<nowiki>}}</nowiki> | |||
; name: Optional parameter with the name of the template to be used when '''title''' is not name of the template. If not the V•T•E links will not work. | |||
; 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" • (<tt>&bull;</tt>). | |||
== The links on the title bar == | |||
To the left there is three links V•T•E related to the navbox. | |||
'''Note:''' ''These will only work when either '''title''' or '''name''' is the same as the name of the template!'' | |||
* '''V''' is a link to the navbox template | |||
* '''T''' is a link to edit the discussion page (Template <u>t</u>alk:''Page'') of the navbox template | |||
* '''E''' is a link to edit the navbox template | |||
To the right is a [hide] link will turn to a [show] link and hide the contents of the navbox. | |||
== Some hints and tips == | |||
* You can easily add automatic categorisation of the pages that uses the navbox by adding categories within <includeonly> 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}}. | |||
== Examples == | |||
<pre> | |||
{{Navigation | |||
|title=Dassault | |||
|content= | |||
[[Dassault/Dornier Alpha Jet|Alpha Jet]] • [[Dassault Mirage 2000|Mirage 2000]] • [[Dassault Mirage 2000-5|Mirage 2000-5]] • [[Dassault Mirage F.1|Mirage F.1]]}} | |||
</pre> | |||
{{Navigation | |||
|title=Dassault | |||
|content= | |||
[[Dassault/Dornier Alpha Jet|Alpha Jet]] • [[Dassault Mirage 2000|Mirage 2000]] • [[Dassault Mirage 2000-5|Mirage 2000-5]] • [[Dassault Mirage F.1|Mirage F.1]]}} | |||
== Known issues == | |||
The template shows the additional text "hlist" below the template, but only on pages in the template namespace. | |||
== Related templates == | |||
* {{tl|navbox}} | |||
* {{tl|navbox with collapsible groups}} | |||
[[Category:Navigation templates|Navigation templates]] | |||
}} | |||
</noinclude> | </noinclude> |
Latest revision as of 10:34, 21 June 2014
|
hlist
The following template description is not displayed when the template is inserted in an article.
Goal
This template is a template for simple navigation boxes at the bottom of pages.
Usage
{{navigation | name = | title = | content = }}
- name
- Optional parameter with the name of the template to be used when title is not name of the template. If not the V•T•E links will not work.
- 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" • (•).
The links on the title bar
To the left there is three links V•T•E related to the navbox.
Note: These will only work when either title or name is the same as the name of the template!
- V is a link to the navbox template
- T is a link to edit the discussion page (Template talk:Page) of the navbox template
- E is a link to edit the navbox template
To the right is a [hide] link will turn to a [show] link and hide the contents of the navbox.
Some hints and tips
- You can easily add automatic categorisation of the pages that uses the navbox by adding categories within <includeonly> tags.
- You can suppress categorisation when the template is used on other pages than articles by using {{main other}}.
- To make it easier to use even a simple template consider adding documentation using the {{informative template}}.
Examples
{{Navigation |title=Dassault |content= [[Dassault/Dornier Alpha Jet|Alpha Jet]] • [[Dassault Mirage 2000|Mirage 2000]] • [[Dassault Mirage 2000-5|Mirage 2000-5]] • [[Dassault Mirage F.1|Mirage F.1]]}}
|
Known issues
The template shows the additional text "hlist" below the template, but only on pages in the template namespace.
Related templates
- {{navbox}}
- {{navbox with collapsible groups}}