More actions
en>Alistair3149 No edit summary |
Sirlegolot (talk | contribs) m (7 revisions imported) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 40: | Line 40: | ||
;<code>id</code> | ;<code>id</code> | ||
:ID used for HTML, mostly used in template | :ID used for HTML, mostly used in template | ||
== Example == | |||
<pre><nowiki> | |||
{{Navplate | |||
|id=test | |||
|subtitle=List of | |||
|title=Title | |||
|header1 = Header 1 | |||
|label2 = Label 1 | |||
|list2 = [[Item 1]][[Item 2]] | |||
|label3 = Label 2 | |||
|list3 = [[Item 1]][[Item 2]] | |||
|header4 = Header 2 | |||
|label5 = Label 3 | |||
|list5 = [[Item 1]][[Item 2]] | |||
|label6 = Label 4 | |||
|list6 = [[Item 1]][[Item 2]] | |||
}} | |||
</nowiki></pre> | |||
gives | |||
{{Navplate | |||
|id=test | |||
|subtitle=List of | |||
|title=Title | |||
|header1 = Header 1 | |||
|label2 = Label 1 | |||
|list2 = [[Item 1]][[Item 2]] | |||
|label3 = Label 2 | |||
|list3 = [[Item 1]][[Item 2]] | |||
|header4 = Header 2 | |||
|label5 = Label 3 | |||
|list5 = [[Item 1]][[Item 2]] | |||
|label6 = Label 4 | |||
|list6 = [[Item 1]][[Item 2]] | |||
}} | |||
== TemplateData == | == TemplateData == |
Latest revision as of 07:56, 29 July 2024
{{navplate}} allows a navigational template to be set up relatively quickly by supplying it with one or more lists of links, similar to Template:Navbox on Wikipedia.
Usage
Please remove the parameters that are left blank.
{{Navplate |subtitle = |title = |label1 = |list1 = |label2 = |list2 = |label3 = |list3 = }}
Parameter list
subtitle
- Subtitle text above the title, it should be connected to the title
title
- Title of the subject (wikilink is optional)
labeln
- Label text for the list
listn
- Text listing wikilinks
headern
- Group header text
id
- ID used for HTML, mostly used in template
Example
{{Navplate |id=test |subtitle=List of |title=Title |header1 = Header 1 |label2 = Label 1 |list2 = [[Item 1]][[Item 2]] |label3 = Label 2 |list3 = [[Item 1]][[Item 2]] |header4 = Header 2 |label5 = Label 3 |list5 = [[Item 1]][[Item 2]] |label6 = Label 4 |list6 = [[Item 1]][[Item 2]] }}
gives
TemplateData
Creates a navigational box for links to other pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Subtitle | subtitle | Subtitle text above the title, it should be connected to the title
| String | suggested |
Title | title | Title of the subject (wikilink is optional)
| Unknown | required |
ID | id | ID used for HTML | Unknown | optional |