Defences
Template:Navbox
Jump to navigation
Jump to search
Template documentation
|
---|
View or edit this documentation. (About template documentation)
Portions of the template sample may not be visible without values provided. |
Usage
The {{Navbox}} has a specific structure it must follow. Let's say we want to make a navbox for Parts:
- {{Navbox}} defines a navbox.
- {{NavboxSection}} defines a section that can hold a number of {{NavboxGroup}}s. A navbox can have any number of sections.
{{NavboxSection|Parts|...}}
will hold ALL parts. - {{NavboxGroup}} can contain either other {{NavboxGroup}}s or {{NavboxItem}}s:
- Nesting {{NavboxGroup}}s allows defining subcategories. For instance,
{{NavboxGroup|Energy Weapons|{{NavboxGroup|Laser Blasters|...}}|...}}
. - {{NavboxItem}}s hold the links to individual articles, e.g.
{{NavboxItem|Laser Blaster}}
.
- Nesting {{NavboxGroup}}s allows defining subcategories. For instance,
For our parts, we would have to define a group for each part type: {{NavboxGroup|Energy Weapons}}
, {{NavboxGroup|Projectile Weapons}}
, etc.
Please, respect the spacing before and in-between the rows. It is much easier to read when it is consistent.
These groups should be nested inside the Parts
section, like this:
{{NavboxSection|Parts
|{{NavboxGroup|Energy Weapons
|...
}}
|{{NavboxGroup|Projectile Weapons
|...
}}
|...
}}
Each group can then be divided into more groups:
{{NavboxGroup|Energy Weapons
|{{NavboxGroup|Laser Blasters
|...
}}
|{{NavboxGroup|Ion
|...
}}
|...
}}
or contain the resulting items:
{{NavboxGroup|Storage
|{{NavboxItem|Storage 2x2}}
|{{NavboxItem|Storage 3x2}}
|{{NavboxItem|Storage 3x3}}
|...
}}
but not both.
Example
More complex example
This template is used to create navigational blocks, placed at a bottom of a page. You can read about general navboxes here: https://www.mediawiki.org/wiki/Template:Navbox
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
Category:
- Navigation templates