Difference between revisions of "Template:Navbox"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
{| class="mw-collapsible {{#if:{{{collapsed|}}} | mw-collapsed |}} navbox" style="margin:0 auto; border:1px solid #aaa; padding:2px;" cellpadding="2" | {| class="mw-collapsible {{#if:{{{collapsed|}}} | mw-collapsed |}} navbox" style="margin:0 auto; border:1px solid #aaa; padding:2px;" cellpadding="2" | ||
|- | |- | ||
− | | colspan={{#if:{{{subgroup1|}}}{{{subgroup2|}}}{{{subgroup3|}}}{{{subgroup4|}}}{{{subgroup5|}}}{{{subgroup6|}}}{{{subgroup7|}}}{{{subgroup8|}}}{{{subgroup9|}}}{{{subgroup10|}}}|3|2}} class="comptf-plainlinks" style="border:2px solid {{{header_border|# | + | | colspan={{#if:{{{subgroup1|}}}{{{subgroup2|}}}{{{subgroup3|}}}{{{subgroup4|}}}{{{subgroup5|}}}{{{subgroup6|}}}{{{subgroup7|}}}{{{subgroup8|}}}{{{subgroup9|}}}{{{subgroup10|}}}|3|2}} class="comptf-plainlinks" style="border:2px solid {{{header_border|#d5d5d5}}}; background-color: {{{header_fill|#d5d5d5}}}; color:{{{header_text|black}}}; font-size:10px; padding:2px 5px; text-align:center" | <span style="vertical-align:top; float:left;">{{VDE|Navbox Team/{{{team|}}}}}</span><span style="font-size:15px">'''{{{title|}}}</span> |
|- | |- | ||
{{#if:{{{group1|}}} | | {{#if:{{{group1|}}} | | ||
Line 81: | Line 81: | ||
| templatename = Maps navbox //This is the name of the sub-template page you'll be creating, without the Template: prefix. | | 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. | | collapsed = true //Omitting this parameter completely will leave the navbox uncollapsed. | ||
− | | title = [[Maplist| | + | | title = [[Maplist|List of maps played in competitive TF2]] |
| group1 = [[5CP]] | | group1 = [[5CP]] | ||
| list1 = [[cp_badlands|Badlands]] · [[cp_granary|Granary]] | | list1 = [[cp_badlands|Badlands]] · [[cp_granary|Granary]] | ||
Line 91: | Line 91: | ||
| templatename = Maps navbox | | templatename = Maps navbox | ||
| collapsed = true | | collapsed = true | ||
− | | title = [[Maplist| | + | | title = [[Maplist|List of maps played in competitive TF2]] |
| group1 = [[5CP]] | | group1 = [[5CP]] | ||
| list1 = [[cp_badlands|Badlands]] · [[cp_granary|Granary]] | | list1 = [[cp_badlands|Badlands]] · [[cp_granary|Granary]] |
Revision as of 02:19, 12 December 2019
V · D · E |
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
V · D · EList of maps played in competitive TF2 | |
5CP | Badlands · Granary |