Difference between revisions of "Template:Navbox"

From comp.tf
Jump to navigation Jump to search
(Fixing shortlinks for view/discussion/edit)
Line 69: Line 69:
 
will yield
 
will yield
 
{{Navbox
 
{{Navbox
 +
| templatename = Maps navbox
 
| collapsed = true
 
| collapsed = true
 
| title = [[Maplist|List of maps played in competitive TF2]]
 
| title = [[Maplist|List of maps played in competitive TF2]]

Revision as of 11:33, 5 July 2013

{{{title}}}

Usage

This template creates a navigation box, same as the ones on other wikis. This template should not be used directly on pages, but it should be used to create other templates. These are linked on pages to prevent redundancy.

Syntax:

{{Navbox
| templatename = Maps navbox //This is the name of the sub-template page you'll be creating, without the Template: prefix.
| collapsed = true //Omitting this parameter completely will leave the navbox uncollapsed.
| title = [[Maplist|List of maps played in competitive TF2]]
| group1 = [[5CP]]
| list1 = [[cp_badlands|Badlands]] · [[cp_granary|Granary]]
...
}}

will yield

List of maps played in competitive TF2
5CP Badlands · Granary