Template:Navbox/doc: Difference between revisions
Initial creating, taken from RuneScape. Styling to be added soon |
m Fixed ShipNavbox link |
||
| Line 3: | Line 3: | ||
{{Underconstruction}} | {{Underconstruction}} | ||
==Usage== | ==Usage== | ||
This template can be used to make a standard navigation box. It is intended for use within another template that standardises the title and contents of the box (see [[Template: | This template can be used to make a standard navigation box. It is intended for use within another template that standardises the title and contents of the box (see [[Template:ShipNavbox]]). This template SHOULD NOT be used directly within articles, as it creates a maintenance burden to do so whenever the contents of the box have to be updated. | ||
The purpose of this template is to standardise the attributes of all navigation boxes, for example, their colours and other CSS attributes. The template is fairly simple, and could be extended to add other features in the future. Using this template allows changes to be implemented much quicker and easier than editing each template separately. | The purpose of this template is to standardise the attributes of all navigation boxes, for example, their colours and other CSS attributes. The template is fairly simple, and could be extended to add other features in the future. Using this template allows changes to be implemented much quicker and easier than editing each template separately. | ||
| Line 139: | Line 139: | ||
==Categorising== | ==Categorising== | ||
Navboxes are very useful for transcluding categories onto a large number of pages that share both a trait and the navigation box. For example: [[Template: | Navboxes are very useful for transcluding categories onto a large number of pages that share both a trait and the navigation box. For example: [[Template:ShipNavbox]] transcludes [[:Category:Ships]] onto every page that uses it. | ||
There are 2 methods of categorising pages with navboxes: | There are 2 methods of categorising pages with navboxes: | ||