Template:Navbox with columns: Difference between revisions

From MC Public Wiki
Jump to navigation Jump to search
(Created page with "<!-- Please do not edit without discussion first as this is a "VERY complex" template. -->{{Navbox |name = {{{name|}}} |navbar = {{{navbar|}}} |state = {{{state|}}} |border = {...")
 
No edit summary
Line 1: Line 1:
<!--
{{Documentation subpage}}
{{Navbox suite}}
A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.


Please do not edit without discussion first as this is a "VERY complex" template.
== Basic syntax ==
Only required parameters and ''colwidth'' included.


-->{{Navbox
<pre style="overflow:auto;">
|name = {{{name|}}}
{{Navbox with columns
|navbar = {{{navbar|}}}
|name       = {{subst:PAGENAME}}
|state = {{{state|}}}
|title      =  
|border = {{{border|{{{1|}}}}}}
|titleclass =
|bodyclass  =  
|colwidth =  <!--(to set a default width for each column,
                  preferably in a proportional unit such as 'em'*)-->
|col1  =  
|col2  =
}}
</pre>
<div style="line-height:1.35em; font-size:90%;">* See [[Em (typography)]]. Using proportional units means the template should still be displayed correctly across a range of browser font-sizes. If ''colwidth'' not specified, a default 10em is used.</div>


|title = {{{title|}}}
== Parameters ==
|above = {{{above|}}}
=== Setup parameters ===
|below = {{{below|}}}
:;''name''<ref name="common">Parameters marked with a footnote '''<sup>[1]</sup>''' are parameters in common with the sister templates {{tl|Navbox}} and {{tl|Navbox with collapsible groups}}. A much more complete description of those parameters is available at {{tl|Navbox}}.</ref>
|image = {{{image|}}}
::The name of the template. The name of this template, for example, is "Navbox with columns".
|imageleft = {{{imageleft|}}}


|bodyclass = {{{bodyclass|}}}
:;''state''<ref name="common"/>
|titleclass = {{{titleclass|}}}
::Possible values are <code>collapsed</code>, <code>uncollapsed</code>, <code>plain</code>, <code>off</code>, and the default <code>autocollapse</code>.  See {{tl|Navbox}} for more information.
|aboveclass = {{{aboveclass|}}}
|belowclass = {{{belowclass|}}}
|groupclass = {{{groupclass|}}}
|listclass = {{{listclass|}}}


|style = {{{style|}}}{{{bodystyle|}}}
:;''navbar''<ref name="common"/>
|basestyle = {{{basestyle|}}}
::Possible values are <code>plain</code>, <code>off</code>, and the default value of blank.  See {{tl|Navbox}} for more information.
|titlestyle = {{{titlestyle|}}}
|abovestyle = {{{abovestyle|}}}
|belowstyle = {{{belowstyle|}}}
|imagestyle = {{{imagestyle|}}}
|imageleftstyle = {{{imageleftstyle|}}}
|list1padding = 0px;


|list1 = <!--
:;''border''<ref name="common"/>
--><table cellspacing="0" class="navbox-columns-table" style="text-align:left;<!--
::Possible values are <code>child</code>, <code>none</code>, and the default value of blank. Set to <code>child</code> if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox.  The parent navbox may be the list area of {{tl|Navbox}}, a columns of another {{tl|Navbox with columns}}, or a section of {{tl|Navbox with collapsible groups}}.  See {{tl|Navbox}} for more information and examples.
  -->{{#if:{{{col1header|}}}{{{fullwidth|}}}|width:100%;<!--
-->|width:auto; margin-left:auto; margin-right:auto;}}{{{coltablestyle|}}}"><!--


===Basic data parameters===
:;'''''title'''''<ref name="common"/>
::The title of the template, displayed centered in the titlebar at the top of the template.


--- Header row ---
:;''above''<ref name="common"/>
::Text or other elements to appear above the columns.


-->{{#if:{{{col1header|}}}|<tr><!--
:;''image''<ref name="common"/>
::Image to the right of all of the columns.


--><td class="navbox-abovebelow" <!--
:;''imageleft''<ref name="common"/>
-->colspan={{{col1headercolspan|1}}} style="<!--
::Image to the left of all of the columns.
-->font-weight:bold;{{{colheaderstyle|}}}{{{col1headerstyle|}}}">{{{col1header}}}</td><!--


-->{{#if:{{{col2header|}}}|<td class="navbox-abovebelow" <!--
:;''below''<ref name="common"/>
-->colspan={{{col2headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::Text or other elements to appear below the columns.
-->font-weight:bold;{{{colheaderstyle|}}}{{{col2headerstyle|}}}">{{{col2header}}}</td>}}<!--


-->{{#if:{{{col3header|}}}|<td class="navbox-abovebelow" <!--
===Style parameters===
-->colspan={{{col3headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
:;''style''<ref name="common"/>
-->font-weight:bold;{{{colheaderstyle|}}}{{{col3headerstyle|}}}">{{{col3header}}}</td>}}<!--
::CSS style/s to apply to the template's body (i.e. including space not used by columns)


-->{{#if:{{{col4header|}}}|<td class="navbox-abovebelow" <!--
:;''titlestyle''<ref name="common"/>
-->colspan={{{col4headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::[[Wikipedia:CSS|CSS]] style/s to apply to titlebar; usually <code>background:''color''</code> (background defaults to [[Wikipedia:NavFrame|NavHead]] default).
-->font-weight:bold;{{{colheaderstyle|}}}{{{col4headerstyle|}}}">{{{col4header}}}</td>}}<!--


-->{{#if:{{{col5header|}}}|<td class="navbox-abovebelow" <!--
:;''abovestyle''<ref name="common"/>
-->colspan={{{col5headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
:;''belowstyle''<ref name="common"/>
-->font-weight:bold;{{{colheaderstyle|}}}{{{col5headerstyle|}}}">{{{col5header}}}</td>}}<!--
::CSS style/s to apply to the ''above'' and ''below'' parameters, respectively.


-->{{#if:{{{col6header|}}}|<td class="navbox-abovebelow" <!--
:;''basestyle''<ref name="common"/>
-->colspan={{{col6headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::CSS style/s to apply to the ''title'', ''above'', and ''below'', parameters, all at the same time.
-->font-weight:bold;{{{colheaderstyle|}}}{{{col6headerstyle|}}}">{{{col6header}}}</td>}}<!--


-->{{#if:{{{col7header|}}}|<td class="navbox-abovebelow" <!--
:;''imagestyle''<ref name="common"/>
-->colspan={{{col7headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::CSS style/s to apply to the ''image'' parameter.
-->font-weight:bold;{{{colheaderstyle|}}}{{{col7headerstyle|}}}">{{{col7header}}}</td>}}<!--


-->{{#if:{{{col8header|}}}|<td class="navbox-abovebelow" <!--
:;''imageleftstyle''<ref name="common"/>
-->colspan={{{col8headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::CSS style/s to apply to the ''imageleft'' parameter
-->font-weight:bold;{{{colheaderstyle|}}}{{{col8headerstyle|}}}">{{{col8header}}}</td>}}<!--


-->{{#if:{{{col9header|}}}|<td class="navbox-abovebelow" <!--
:;''colstyle''
-->colspan={{{col9headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::CSS style/s to apply across all columns; if used, usually <code>background:''color''</code> per ''titlestyle'' above.
-->font-weight:bold;{{{colheaderstyle|}}}{{{col9headerstyle|}}}">{{{col9header}}}</td>}}<!--


-->{{#if:{{{col10header|}}}|<td class="navbox-abovebelow" <!--
:;''oddcolstyle''
-->colspan={{{col10headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
:;''evencolstyle''
-->font-weight:bold;{{{colheaderstyle|}}}{{{col10headerstyle|}}}">{{{col10header}}}</td>}}<!--
::CSS style/s to apply to all odd/even-numbered columns, respectively.


-->{{#if:{{{col11header|}}}|<td class="navbox-abovebelow" <!--
:;''col<sub>n</sub>style''
-->colspan={{{col11headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::CSS style/s to apply to the n<sup>th</sup> column only.
-->font-weight:bold;{{{colheaderstyle|}}}{{{col11headerstyle|}}}">{{{col11header}}}</td>}}<!--


-->{{#if:{{{col12header|}}}|<td class="navbox-abovebelow" <!--
:;''colheaderstyle''
-->colspan={{{col12headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::CSS style/s to apply to all column headers.
-->font-weight:bold;{{{colheaderstyle|}}}{{{col12headerstyle|}}}">{{{col12header}}}</td>}}<!--


-->{{#if:{{{col13header|}}}|<td class="navbox-abovebelow" <!--
:;''col<sub>n</sub>headerstyle''
-->colspan={{{col13headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::CSS style/s to apply to the n<sup>th</sup> column header.
-->font-weight:bold;{{{colheaderstyle|}}}{{{col13headerstyle|}}}">{{{col13header}}}</td>}}<!--


-->{{#if:{{{col14header|}}}|<td class="navbox-abovebelow" <!--
:;''col<sub>n</sub>footerstyle''
-->colspan={{{col14headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::CSS style/s to apply to the n<sup>th</sup> column footer cell.
-->font-weight:bold;{{{colheaderstyle|}}}{{{col14headerstyle|}}}">{{{col14header}}}</td>}}<!--


-->{{#if:{{{col15header|}}}|<td class="navbox-abovebelow" <!--
===Columns parameters===
-->colspan={{{col15headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
:;''colwidth''
  -->font-weight:bold;{{{colheaderstyle|}}}{{{col15headerstyle|}}}">{{{col15header}}}</td>}}<!--
::Width, preferably in a proportional unit such as '[[Em (typography)|em]]', or as a percentage, used for each column whose width not specified by ''colNwidth'' below. Defaults to 10em. Examples:
:::<code>colwidth = 15em</code>
:::<code>colwidth = 25%</code>


-->{{#if:{{{col16header|}}}|<td class="navbox-abovebelow" <!--
:;''fullwidth''
  -->colspan={{{col16headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::If set to anything, then the total width of the columns are scaled linearly to make the sum of the widths 100%. A rather advanced parameter, this usually need not be used and should be left blank.  If a colheader or colfooter is used, then fullwidth is used automatically.  Example:
-->font-weight:bold;{{{colheaderstyle|}}}{{{col16headerstyle|}}}">{{{col16header}}}</td>}}<!--
:::<code>fullwidth = true</code>


-->{{#if:{{{col17header|}}}|<td class="navbox-abovebelow" <!--
:;''padding''
-->colspan={{{col17headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::Padding before first column, preferably in a proportional unit. Defaults to 5em. Padding is disabled by setting it to 0 (or 0em, or 0%).
  -->font-weight:bold;{{{colheaderstyle|}}}{{{col17headerstyle|}}}">{{{col17header}}}</td>}}<!--


-->{{#if:{{{col18header|}}}|<td class="navbox-abovebelow" <!--
:;''col<sub>n</sub>width''
-->colspan={{{col18headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::The n<sup>th</sup> column's width (overrides ''colwidth'' above).
-->font-weight:bold;{{{colheaderstyle|}}}{{{col18headerstyle|}}}">{{{col18header}}}</td>}}<!--


-->{{#if:{{{col19header|}}}|<td class="navbox-abovebelow" <!--
:;'''''col<sub>n</sub>'''''
-->colspan={{{col19headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!--
::The content of the n<sup>th</sup> column. If any columns are used, then <code>col1</code> is required.  There can be a maximum of 20 columns.
  -->font-weight:bold;{{{colheaderstyle|}}}{{{col19headerstyle|}}}">{{{col19header}}}</td>}}<!--


-->{{#if:{{{col20header|}}}|<td class="navbox-abovebelow" <!--
:;''col<sub>n</sub>header''
-->style="border-left:2px solid #fdfdfd;<!--
::A header cell for the n<sup>th</sup> column that appears above the column.  See below for examples.
-->font-weight:bold;{{{colheaderstyle|}}}{{{col20headerstyle|}}}">{{{col20header}}}</td>}}<!--


--></tr>}}<!--
:;''col<sub>n</sub>footer
::A footer cell that appears below the n<sup>th</sup> column.


:;''col<sub>n</sub>headercolspan
::A number specifying how many columns the n<sup>th</sup> column header should span.  It defaults to 1.  If it is greater than one, then do not specify column headers that it covers.  For example, if <code>col1headercolspan = 3</code>, then leave <code>col2header</code> and <code>col3header</code> blank.


--- Main columns---
:;''col<sub>n</sub>footercolspan
::A number specifying how many columns the n<sup>th</sup> column footer should span.  It defaults to 1.  If it is greater than one, then do not specify column footers that it covers.  For example, if <code>col1footercolspan = 3</code>, then leave <code>col2footer</code> and <code>col3footer</code> blank.


-->{{#if:{{{col1|}}}|{{#if:{{{col1header|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
===Additional groups/lists===
You may wish to add a few extra groups and/or lists below the columns.  The following parameters are given to provide such functionality.  See {{tl|Navbox}} for a more complete description of how they work, and for more examples.


--><tr style="vertical-align:top;"><!--
:;''group<sub>n</sub>''<ref name="common"/>
-->{{#if:{{{col1header|}}}{{{col1footer|}}}{{{fullwidth|}}}|<!--
::Allows up to 6 additional groups to go along with the lists below the columns.
-->|{{#switch:{{{padding|}}}|off|0|0em|0px|0%|0;|0em;|0px;|0%;=<!--
-->|#default=<td style="width:{{{padding|5em}}};">&nbsp;&nbsp;&nbsp;</td>}}}}<!--


--><td style="padding:0px;<!--
:;''list<sub>n</sub>''<ref name="common"/>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col1style|}}};width:{{{col1width|{{{colwidth|10em}}}}}};"><div>
::Allows up to 6 additional lists below the columns.
{{{col1}}}
</div></td>}}<!--


-->{{#if:{{{col2|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
:;''groupstyle<ref name="common"/>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col2style|}}};width:{{{col2width|{{{colwidth|10em}}}}}};"><div>
::The general CSS style/s for the groups.
{{{col2}}}
</div></td>}}<!--


-->{{#if:{{{col3|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
:;''group<sub>n</sub>''style<sup>†</sup>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col3style|}}};width:{{{col3width|{{{colwidth|10em}}}}}};"><div>
::CSS style/s for the n<sup>th</sup> group parameter.<ref name="common"/>
{{{col3}}}
:;''liststyle''<ref name="common"/>
</div></td>}}<!--
::The general CSS style/s for the lists.


-->{{#if:{{{col4|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
:;''list<sub>n</sub>style''
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col4style|}}};width:{{{col4width|{{{colwidth|10em}}}}}};"><div>
::CSS style/s for the n<sup>th</sup> list parameter.
{{{col4}}}
</div></td>}}<!--


-->{{#if:{{{col5|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
:;''listpadding''<ref name="common"/>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col5style|}}};width:{{{col5width|{{{colwidth|10em}}}}}};"><div>
::Amount of padding to have in each list cell.
{{{col5}}}
</div></td>}}<!--


-->{{#if:{{{col6|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
:; ''oddstyle''
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col6style|}}};width:{{{col6width|{{{colwidth|10em}}}}}};"><div>
:; ''evenstyle''
{{{col6}}}
::Applies to odd/even list numbers.  Overrules styles defined by ''liststyle''.  The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability.  These should not be changed except in extraordinary circumstances.
</div></td>}}<!--


-->{{#if:{{{col7|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
:; ''evenodd'' <span style="font-weight:normal;"><code>[swap, even, odd, off]</code></span>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col7style|}}};width:{{{col7width|{{{colwidth|10em}}}}}};"><div>
::See {{tl|Navbox}} for description.
{{{col7}}}
</div></td>}}<!--


-->{{#if:{{{col8|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
=== Microformats ===
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col8style|}}};width:{{{col8width|{{{colwidth|10em}}}}}};"><div>
;bodyclass : This parameter is inserted into the "class" attribute for the infobox as a whole.
{{{col8}}}
;titleclass : This parameter is inserted into the "class" attribute for the infobox's title caption.
</div></td>}}<!--


-->{{#if:{{{col9|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a navbox as containing [[hCard]] information about a person, for example, add the following parameter:
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col9style|}}};width:{{{col9width|{{{colwidth|10em}}}}}};"><div>
{{{col9}}}
</div></td>}}<!--


-->{{#if:{{{col10|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
<pre>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col10style|}}};width:{{{col10width|{{{colwidth|10em}}}}}};"><div>
|bodyclass = vcard
{{{col10}}}
</pre>
</div></td>}}<!--


-->{{#if:{{{col11|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
''and''
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col11style|}}};width:{{{col11width|{{{colwidth|10em}}}}}};"><div>
{{{col11}}}
</div></td>}}<!--


-->{{#if:{{{col12|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
<pre>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col12style|}}};width:{{{col12width|{{{colwidth|10em}}}}}};"><div>
|titleclass = fn
{{{col12}}}
</pre>
</div></td>}}<!--


-->{{#if:{{{col13|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
''or'' (for example):
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col13style|}}};width:{{{col13width|{{{colwidth|10em}}}}}};"><div>
{{{col13}}}
</div></td>}}<!--


-->{{#if:{{{col14|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
<pre><nowiki>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col14style|}}};width:{{{col14width|{{{colwidth|10em}}}}}};"><div>
|title = The books of <span class="fn">[[Iain Banks]]</span>
{{{col14}}}
</nowiki></pre>
</div></td>}}<!--


-->{{#if:{{{col15|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
...and so forth.
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col15style|}}};width:{{{col15width|{{{colwidth|10em}}}}}};"><div>
{{{col15}}}
</div></td>}}<!--


-->{{#if:{{{col16|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
See [[Wikipedia:WikiProject Microformats]] for more information on adding microformat information to Wikipedia, and [[microformat]] for more information on microformats in general.
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col16style|}}};width:{{{col16width|{{{colwidth|10em}}}}}};"><div>
{{{col16}}}
</div></td>}}<!--


-->{{#if:{{{col17|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
== Examples ==
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col17style|}}};width:{{{col17width|{{{colwidth|10em}}}}}};"><div>
===Basic example===
{{{col17}}}
<pre style="overflow:scroll;">
</div></td>}}<!--
{{Navbox with columns
|name    = East Asia Summit (EAS)
|title  = Member states of the [[East Asia Summit|East Asia Summit (EAS)]]
|width   = 18.25em
|padding = 10em


-->{{#if:{{{col18|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
|above = ''This is where the <nowiki>{{{above}}}</nowiki> would appear.''
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col18style|}}};width:{{{col18width|{{{colwidth|10em}}}}}};"><div>
{{{col18}}}
</div></td>}}<!--


-->{{#if:{{{col19|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
|col1 = {{AUS}}<br> {{BRU}}<br> {{flag|CHN|name=PR China}}<br> {{CAM}}
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col19style|}}};width:{{{col19width|{{{colwidth|10em}}}}}};"><div>
|col2 = {{IND}}<br> {{IDN}}<br> {{JPN}}<br> {{LAO}}
{{{col19}}}
|col3 = {{MAS}}<br> {{MMR}}<br> {{NZL}}<br> {{PHI}}
</div></td>}}<!--
|col4width = 17em
|col4 = {{SIN}}<br> {{KOR}}<br> {{THA}}<br> {{VIE}}


-->{{#if:{{{col20|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col20style|}}};width:{{{col20width|{{{colwidth|10em}}}}}};"><div>
}}
{{{col20}}}
</pre>
</div></td>}}<!--
{{Navbox with columns
|name    = East Asia Summit (EAS)
|state  = uncollapsed
|title  = Member states of the [[East Asia Summit|East Asia Summit (EAS)]]
|width  = 18.25em
|padding = 10em


|above = ''This is where the <nowiki>{{{above}}}</nowiki> parameter would appear.''


|col1 = {{AUS}}<br> {{BRU}}<br> {{flag|CHN|name=PR China}}<br> {{CAM}}
|col2 = {{IND}}<br> {{IDN}}<br> {{JPN}}<br> {{LAO}}
|col3 = {{MAS}}<br> {{MMR}}<br> {{NZL}}<br> {{PHI}}
|col4width = 17em
|col4 = {{SIN}}<br> {{KOR}}<br> {{THA}}<br> {{VIE}}


--- Footer row ---
|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
}}


-->{{#if:{{{col1footer|}}}|<!--
===Example with percentage widths===
-->{{#if:{{{col1|}}}{{{col1header|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
<pre style="overflow:scroll;">
{{Navbox with columns
| name = Plastics
| title = [[Plastic]]s
| colwidth = 33%
| colstyle = text-align: center
| col1 = [[Polyethylene]] (PE)<br> [[Polyethylene terephthalate]] (PET or PETE)<br> [[Polyvinyl chloride]] (PVC)<br> [[Polyvinylidene chloride]] (PVDC)<br> [[Polylactic acid]] (PLA)
| col2 = [[Polypropylene]] (PP)<br> [[Polyamide]] (PA)<br> [[Polycarbonate]] (PC)<br> [[Polytetrafluoroethylene]] (PTFE)<br> [[Polyurethane]] (PU)
| col3 = [[Polystyrene]] (PS)<br> [[Polyester]]<br> [[Acrylonitrile butadiene styrene]] (ABS)<br> [[Acrylic glass|Polymethyl methacrylate]] (PMMA)<br> [[Polyoxymethylene]] (POM)
}}
</pre>
{{Navbox with columns
| name = Plastics
| title = [[Plastic]]s
| state = uncollapsed
| cols = 3
| colwidth = 33%
| colstyle = text-align: center
| col1 = [[Polyethylene]] (PE)<br> [[Polyethylene terephthalate]] (PET or PETE)<br> [[Polyvinyl chloride]] (PVC)<br> [[Polyvinylidene chloride]] (PVDC)<br> [[Polylactic acid]] (PLA)
| col2 = [[Polypropylene]] (PP)<br> [[Polyamide]] (PA)<br> [[Polycarbonate]] (PC)<br> [[Polytetrafluoroethylene]] (PTFE)<br> [[Polyurethane]] (PU)
| col3 = [[Polystyrene]] (PS)<br> [[Polyester]]<br> [[Acrylonitrile butadiene styrene]] (ABS)<br> [[Acrylic glass|Polymethyl methacrylate]] (PMMA)<br> [[Polyoxymethylene]] (POM)
}}


--><td class="navbox-abovebelow" colspan={{{col1footercolspan|1}}} style="<!--
===Example with col<sub>n</sub>header and col<sub>n</sub>footer===
-->font-weight:bold;{{{colfooterstyle|}}};{{{col1footerstyle|}}}">{{{col1footer}}}</td><!--
The gray background for the columns is added for illustration only.
{{Navbox with columns
|name = Navbox with columns/doc
|state = uncollapsed
|title = col<sub>n</sub>header and col<sub>n</sub>footer example


-->{{#if:{{{col2footer|}}}|<td class="navbox-abovebelow" colspan={{{col2footercolspan|1}}} style="<!--
|colstyle = text-align:center;background:silver;
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col2footerstyle|}}}">{{{col2footer}}}</td>}}<!--
|colwidth = 25%


-->{{#if:{{{col3footer|}}}|<td class="navbox-abovebelow" colspan={{{col3footercolspan|1}}} style="<!--
|col1header = col1header
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col3footerstyle|}}}">{{{col3footer}}}</td>}}<!--
|col2header = col2header
|col3header = col3header
|col4header = col4header


-->{{#if:{{{col4footer|}}}|<td class="navbox-abovebelow" colspan={{{col4footercolspan|1}}} style="<!--
|col1 = col1
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col4footerstyle|}}}">{{{col4footer}}}</td>}}<!--
|col2 = col2
|col3 = col3
|col4 = col4


-->{{#if:{{{col5footer|}}}|<td class="navbox-abovebelow" colspan={{{col5footercolspan|1}}} style="<!--
|col1footer = col1footer
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col5footerstyle|}}}">{{{col5footer}}}</td>}}<!--
|col2footer = col2footer
|col3footer = col3footer
|col4footer = col4footer


-->{{#if:{{{col6footer|}}}|<td class="navbox-abovebelow" colspan={{{col6footercolspan|1}}} style="<!--
}}
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col6footerstyle|}}}">{{{col6footer}}}</td>}}<!--


-->{{#if:{{{col7footer|}}}|<td class="navbox-abovebelow" colspan={{{col7footercolspan|1}}} style="<!--
===Example with col<sub>n</sub>header using col<sub>n</sub>headercolspan===
  -->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col7footerstyle|}}}">{{{col7footer}}}</td>}}<!--
The gray background for the columns is added for illustration only. This example shows the col<sub>n</sub>headercolspan parameter being used, but you may also use col<sub>n</sub>footercolspan to adjust the span of the footer cells.
{{Navbox with columns
|name = Navbox with columns/doc
|state = uncollapsed
|title = col<sub>n</sub>header with col<sub>n</sub>colspan example


-->{{#if:{{{col8footer|}}}|<td class="navbox-abovebelow" colspan={{{col8footercolspan|1}}} style="<!--
|colstyle = text-align:center;background:silver;
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col8footerstyle|}}}">{{{col8footer}}}</td>}}<!--


-->{{#if:{{{col9footer|}}}|<td class="navbox-abovebelow" colspan={{{col9footercolspan|1}}} style="<!--
|col1header = col1header
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col9footerstyle|}}}">{{{col9footer}}}</td>}}<!--
|col2header = col2header (colspan=2)
|col4header = col4header
|col5header = col5header (colspan=3)


-->{{#if:{{{col10footer|}}}|<td class="navbox-abovebelow" colspan={{{col10footercolspan|1}}} style="<!--
|col2headercolspan = 2
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col10footerstyle|}}}">{{{col10footer}}}</td>}}<!--
|col5headercolspan = 3


-->{{#if:{{{col11footer|}}}|<td class="navbox-abovebelow" colspan={{{col11footercolspan|1}}} style="<!--
|col1 = col1
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col11footerstyle|}}}">{{{col11footer}}}</td>}}<!--
|col2 = col2
|col3 = col3
|col4 = col4
|col5 = col5
|col6 = col6
|col7 = col7
}}


-->{{#if:{{{col12footer|}}}|<td class="navbox-abovebelow" colspan={{{col12footercolspan|1}}} style="<!--
===Example to illustrate most fields===
  -->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col12footerstyle|}}}">{{{col12footer}}}</td>}}<!--
The gray background and centered text for the columns is for illustration only. The columns default to an off-white background and left text alignment.  This example shows how you can use up to six additional groups/lists after the columns.


-->{{#if:{{{col13footer|}}}|<td class="navbox-abovebelow" colspan={{{col13footercolspan|1}}} style="<!--
{{Navbox with columns
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col13footerstyle|}}}">{{{col13footer}}}</td>}}<!--
|name = Navbox with columns/doc
|state = uncollapsed
|title = Example to illustrate most fields
|colstyle = text-align:center;background:silver;


-->{{#if:{{{col14footer|}}}|<td class="navbox-abovebelow" colspan={{{col14footercolspan|1}}} style="<!--
|col1 = col1
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col14footerstyle|}}}">{{{col14footer}}}</td>}}<!--
|col2 = col2
|col3 = col3
|col4 = col4
|col5 = col5


-->{{#if:{{{col15footer|}}}|<td class="navbox-abovebelow" colspan={{{col15footercolspan|1}}} style="<!--
|col1header = col1header
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col15footerstyle|}}}">{{{col15footer}}}</td>}}<!--
|col2header = col2header
|col3header = col3header
|col4header = col4header
|col5header = col5header


-->{{#if:{{{col16footer|}}}|<td class="navbox-abovebelow" colspan={{{col16footercolspan|1}}} style="<!--
|col1footer = col1footer
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col16footerstyle|}}}">{{{col16footer}}}</td>}}<!--
|col2footer = col2footer
|col3footer = col3footer
|col4footer = col4footer
|col5footer = col5footer


-->{{#if:{{{col17footer|}}}|<td class="navbox-abovebelow" colspan={{{col17footercolspan|1}}} style="<!--
|group1 = group1
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col17footerstyle|}}}">{{{col17footer}}}</td>}}<!--
|group2 = group2
|group3 = group3
|group4 = group4
|group5 = group5
|group6 = group6


-->{{#if:{{{col18footer|}}}|<td class="navbox-abovebelow" colspan={{{col18footercolspan|1}}} style="<!--
|list1 = list1
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col18footerstyle|}}}">{{{col18footer}}}</td>}}<!--
|list2 = list2
|list3 = list3
|list4 = list4
|list5 = list5
|list6 = list6


-->{{#if:{{{col19footer|}}}|<td class="navbox-abovebelow" colspan={{{col19footercolspan|1}}} style="<!--
|above = above
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col19footerstyle|}}}">{{{col19footer}}}</td>}}<!--
|below = below
}}


-->{{#if:{{{col20footer|}}}|<td class="navbox-abovebelow" style="<!--
==Using child navboxes==
-->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col20footerstyle|}}}">{{{col20footer}}}</td>}}<!--
All three types of navbox templates, namely {{tl|Navbox}}, {{tl|Navbox with columns}}, and {{tl|Navbox with collapsible groups}}, can be nested inside of one another using the <code>border</code> parameter (which is common to all three).  For complex templates, it may be necessary to use nesting to achieve a desired look.


--></tr>}}<!--
===Nesting Navbox with columns in itself===
This example shows how one can nest multiple {{tl|Navbox with columns}} templates to get the right look.  Edit this page to see the code.  There is a main {{tl|Navbox with columns}} and two additional {{tl|Navbox with columns}} templates, with the "child" option set (see code).
{{Navbox with columns
|name = Navbox with columns/doc
|state = uncollapsed
|title = Subgroups with nesting
|colstyle = text-align:center;background:silver;


--></tr></table>
|col1width = 33%
|col2width = 17%
|col3width = 33%
|col4width = 17%


|col1header = Col1Header
|col2header = Col2Header
|col3header = Col3Header
|col4header = Col4Header


<!--  Allow a few additional groups/lists after columns  -->
|col1 = {{Navbox with columns|child
|liststyle = {{{liststyle|}}}
  |colwidth = 50%
|list1style = background:transparent;color:inherit;
  |colstyle = text-align:center;background:silver;
|list3style = {{{list1style|}}}
|list4style = {{{list2style|}}}
|list5style = {{{list3style|}}}
|list6style = {{{list3style|}}}
|list7style = {{{list5style|}}}
|list8style = {{{list6style|}}}


|list3 = {{{list1|}}}
  |col1header = Col1.1Header
|list4 = {{{list2|}}}
  |col2header = Col1.2Header
|list5 = {{{list3|}}}
|list6 = {{{list4|}}}
|list7 = {{{list5|}}}
|list8 = {{{list6|}}}


|groupstyle = {{{groupstyle|}}}
  |col1 = Col1.1
|group3style = {{{group1style|}}}
  |col2 = Col1.2
|group4style = {{{group2style|}}}
}}
|group5style = {{{group3style|}}}
|group6style = {{{group4style|}}}
|group7style = {{{group5style|}}}
|group8style = {{{group6style|}}}


|group3 = {{{group1|}}}
|col2 = Col2
|group4 = {{{group2|}}}
|group5 = {{{group3|}}}
|group6 = {{{group4|}}}
|group7 = {{{group5|}}}
|group8 = {{{group6|}}}


|oddstyle = {{{oddstyle|}}}
|col3 = {{Navbox with columns|child
|evenstyle = {{{evenstyle|}}}
  |colwidth = 33%
|{{#if:{{{evenodd|}}}|evenodd|void}} = {{{evenodd|}}}
  |colstyle = text-align:center;background:silver;


}}<noinclude>
  |col1header = Col3.1Header
{{documentation}}
  |col2header = Col3.2Header
  |col3header = Col3.3Header


<!---Please add metadata to the <includeonly> section at the bottom of the /doc subpage--->
  |col1 = Col3.1
</noinclude>
  |col2 = Col3.2
  |col3 = Col3.3
}}
 
|col4 = Col4
}}
 
===Nesting other Navbox forms===
This example shows {{tl|Navbox}}, {{tl|Navbox with collapsible groups}} and {{tl|Navbox with columns}} all working together.  Edit this page to see the code.  Note that each of the child navboxes has the first parameter set to <code>child</code>.
{{Navbox with collapsible groups
|name = Navbox with collapsible groups
|title = Navbox, Navbox with columns, and Navbox with collapsible groups together
|selected = {{{1|}}}
 
|group1 = [[:Category:Scouting|The Scouting Movement]]
|abbr1  = movement
|list1  = [[Scouting]]{{·}}''[[Scouting for Boys]]''{{·}}[[Scout method]]{{·}}[[Scout Law]]{{·}}[[Scout Promise]]{{·}}[[Scout Motto]]{{·}}[[Wood Badge]]{{·}}[[Age groups in Scouting and Guiding]]{{·}}[[Cub Scout]]{{·}}[[Boy Scout]]{{·}}[[Rover Scout]]{{·}}[[Brownie (Girl Guides)|Brownie]]{{·}}[[Girl Guiding and Girl Scouting]]{{·}}[[Ranger (Girl Guide)]]{{·}}[[Jamboree (Scouting)|Jamboree]]{{·}}[[Scout Leader]]{{·}}[[World Organization of the Scout Movement|WOSM]]{{·}}[[World Association of Girl Guides and Girl Scouts|WAGGGS]]{{·}}[[Non-aligned Scouting and Scout-like organisations|Non-aligned organisations]]{{·}}[[Scouting controversy and conflict]]{{·}}[[Scouting in popular culture]]{{·}}[[List of Scouts]]{{·}}[[List of highest awards in Scouting]]
 
|list2  = {{Navbox|child
|title      = [[French colonial empires|Former French colonies]] in [[Africa]] and the [[Indian Ocean]]
|titlestyle = background#
|groupstyle = background:lavender;
 
|group1 = [[Mahgreb]]
|list1  = [[French rule in Algeria|Algeria]]{{·}} [[French Morocco|Morocco]]&nbsp;<small>([[Arguin|Arguin Island]])</small>{{·}} [[History of Tunisia|Tunisia]]
 
|group2 = [[French West Africa]]
|list2  = [[History of Côte d'Ivoire#French Period|Côte d'Ivoire]]{{·}} [[French Dahomey|Dahomey]]{{·}} [[French Sudan]]{{·}} [[French Guinea|Guinea]]{{·}} [[History of Mauritania#French colonization and post-colonial history|Mauritania]]{{·}} [[History of Niger#Colonization|Niger]]{{·}} [[History of Senegal|Senegal]]{{·}} [[French Upper Volta|Upper Volta]]
 
|group3 = Togo
|list3  = [[French Togoland]]{{·}} [[James Island (The Gambia)|James Island]]
 
|group4 = [[French Equatorial Africa]]
|list4  = [[Colonial Chad|Chad]]{{·}} [[History of Gabon|Gabon]]{{·}} [[History of the Republic of the Congo|Middle Congo]]{{·}} [[Oubangui-Chari]]
 
|group5 = [[Comoros]]
|list5  = [[Anjouan]]{{·}} [[Grande Comore]]{{·}} [[Mohéli]]
 
|group6 = Southern Africa
|list6  = [[History of Djibouti#French interest|French Somaliland (Djibouti)]]{{·}} [[History of Madagascar#French control|Madagascar]]{{·}} [[Mauritius|Ile de France]]{{·}} [[Seychelles]]
}}
 
|group3 = [[Scouting in the United Kingdom]]
|abbr3  = Scouting
|list3  = [[The Scout Association]]{{·}}[[Girlguiding UK]]{{·}}[[Beaver Scouts]]{{·}}[[Cub Section (UK)]]{{·}}[[Venture Scout]]{{·}}[[Explorer Scouts]]{{·}}[[Brownie (Girl Guides)]]{{·}}[[Ranger (Girl Guide)]]{{·}}[[Rainbow (Girl Guides)]]{{·}}[[Scout Network]]{{·}}[[Chief Scout (United Kingdom)]]{{·}}[[Scout Counties]]{{·}}[[Scout District]]{{·}}[[Scout Section (UK)]]{{·}}[[Scout Activity Centre]]{{·}}[[Young Leaders (The Scout Association)|Young Leaders]]
 
|list4  = {{Navbox with columns|child
|title = Navbox with columns nested in itself
|colstyle = text-align:center;
 
|col1width = 33%
|col2width = 17%
|col3width = 33%
|col4width = 17%
 
|col1header = Col1Header
|col2header = Col2Header
|col3header = Col3Header
|col4header = Col4Header
 
|col1 = {{Navbox with columns|child
  |colwidth = 50%
  |colstyle = text-align:center;
 
  |col1header = Col1.1Header
  |col2header = Col1.2Header
 
  |col1 = Col1.1
  |col2 = Col1.2
}}
 
|col2 = Col2
 
|col3 = {{Navbox with columns|child
  |colwidth = 33%
  |colstyle = text-align:center;
 
  |col1header = Col3.1Header
  |col2header = Col3.2Header
  |col3header = Col3.3Header
 
  |col1 = Col3.1
  |col2 = Col3.2
  |col3 = Col3.3
}}
 
|col4 = Col4
}}
}}
 
==Footnote==
<references/>
 
== See also ==
{{Navigational templates}}
 
<includeonly>
<!--Categories-->
[[Category:Navigational boxes| ]]
 
<!--Other languages-->
[[ar:قالب:Navbox with columns]]
[[bn:টেমপ্লেট:Navbox with columns]]
[[bs:Šablon:Navkutija sa kolonama]]
[[ca:Plantilla:Navbox with columns]]
[[cs:Šablona:Navbox se sloupci]]
[[eo:Ŝablono:Navigilo kun kolumnoj]]
[[fr:Modèle:Méta palette de navigation avec colonnes]]
[[hy:Կաղապար:Սյունակներով նավարկման աղյուսակ]]
[[ko:틀:안내 다단]]
[[hsb:Předłoha:Nawitabela ze špaltami]]
[[ja:Template:Navbox with columns]]
[[ku:Şablon:Navbox with columns]]
[[mk:Шаблон:Navbox with columns]]
[[pl:Szablon:Navbox z kolumnami]]
[[pt:Predefinição:Navbox with columns]]
[[ro:Format:Casetă de navigare cu coloane]]
[[ru:Шаблон:Навигационная таблица с колонками]]
[[sv:Mall:Navbox with columns]]
[[uk:Шаблон:Navbox with columns]]
[[tr:Şablon:Dolaşım dikeç]]
[[vi:Tiêu bản:Navbox with columns]]
[[zh:Template:Navbox with columns]]
</includeonly>

Revision as of 12:44, 15 January 2012

A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.

Basic syntax

Only required parameters and colwidth included.

{{Navbox with columns
|name       = {{subst:PAGENAME}}
|title      = 
|titleclass = 
|bodyclass  = 
|colwidth =  <!--(to set a default width for each column,
                  preferably in a proportional unit such as 'em'*)-->
|col1  = 
|col2  = 
}}
* See Em (typography). Using proportional units means the template should still be displayed correctly across a range of browser font-sizes. If colwidth not specified, a default 10em is used.

Parameters

Setup parameters

name[1]
The name of the template. The name of this template, for example, is "Navbox with columns".
state[1]
Possible values are collapsed, uncollapsed, plain, off, and the default autocollapse. See {{Navbox}} for more information.
navbar[1]
Possible values are plain, off, and the default value of blank. See {{Navbox}} for more information.
border[1]
Possible values are child, none, and the default value of blank. Set to child if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{Navbox}}, a columns of another {{Navbox with columns}}, or a section of {{Navbox with collapsible groups}}. See {{Navbox}} for more information and examples.

Basic data parameters

title[1]
The title of the template, displayed centered in the titlebar at the top of the template.
above[1]
Text or other elements to appear above the columns.
image[1]
Image to the right of all of the columns.
imageleft[1]
Image to the left of all of the columns.
below[1]
Text or other elements to appear below the columns.

Style parameters

style[1]
CSS style/s to apply to the template's body (i.e. including space not used by columns)
titlestyle[1]
CSS style/s to apply to titlebar; usually background:color (background defaults to NavHead default).
abovestyle[1]
belowstyle[1]
CSS style/s to apply to the above and below parameters, respectively.
basestyle[1]
CSS style/s to apply to the title, above, and below, parameters, all at the same time.
imagestyle[1]
CSS style/s to apply to the image parameter.
imageleftstyle[1]
CSS style/s to apply to the imageleft parameter
colstyle
CSS style/s to apply across all columns; if used, usually background:color per titlestyle above.
oddcolstyle
evencolstyle
CSS style/s to apply to all odd/even-numbered columns, respectively.
colnstyle
CSS style/s to apply to the nth column only.
colheaderstyle
CSS style/s to apply to all column headers.
colnheaderstyle
CSS style/s to apply to the nth column header.
colnfooterstyle
CSS style/s to apply to the nth column footer cell.

Columns parameters

colwidth
Width, preferably in a proportional unit such as 'em', or as a percentage, used for each column whose width not specified by colNwidth below. Defaults to 10em. Examples:
colwidth = 15em
colwidth = 25%
fullwidth
If set to anything, then the total width of the columns are scaled linearly to make the sum of the widths 100%. A rather advanced parameter, this usually need not be used and should be left blank. If a colheader or colfooter is used, then fullwidth is used automatically. Example:
fullwidth = true
padding
Padding before first column, preferably in a proportional unit. Defaults to 5em. Padding is disabled by setting it to 0 (or 0em, or 0%).
colnwidth
The nth column's width (overrides colwidth above).
coln
The content of the nth column. If any columns are used, then col1 is required. There can be a maximum of 20 columns.
colnheader
A header cell for the nth column that appears above the column. See below for examples.
colnfooter
A footer cell that appears below the nth column.
colnheadercolspan
A number specifying how many columns the nth column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if col1headercolspan = 3, then leave col2header and col3header blank.
colnfootercolspan
A number specifying how many columns the nth column footer should span. It defaults to 1. If it is greater than one, then do not specify column footers that it covers. For example, if col1footercolspan = 3, then leave col2footer and col3footer blank.

Additional groups/lists

You may wish to add a few extra groups and/or lists below the columns. The following parameters are given to provide such functionality. See {{Navbox}} for a more complete description of how they work, and for more examples.

groupn[1]
Allows up to 6 additional groups to go along with the lists below the columns.
listn[1]
Allows up to 6 additional lists below the columns.
groupstyle[1]
The general CSS style/s for the groups.
groupnstyle
CSS style/s for the nth group parameter.[1]
liststyle[1]
The general CSS style/s for the lists.
listnstyle
CSS style/s for the nth list parameter.
listpadding[1]
Amount of padding to have in each list cell.
oddstyle
evenstyle
Applies to odd/even list numbers. Overrules styles defined by liststyle. The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability. These should not be changed except in extraordinary circumstances.
evenodd [swap, even, odd, off]
See {{Navbox}} for description.

Microformats

bodyclass
This parameter is inserted into the "class" attribute for the infobox as a whole.
titleclass
This parameter is inserted into the "class" attribute for the infobox's title caption.

This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a navbox as containing hCard information about a person, for example, add the following parameter:

|bodyclass = vcard

and

|titleclass = fn

or (for example):

|title = The books of <span class="fn">[[Iain Banks]]</span>

...and so forth.

See Wikipedia:WikiProject Microformats for more information on adding microformat information to Wikipedia, and microformat for more information on microformats in general.

Examples

Basic example

{{Navbox with columns
|name    = East Asia Summit (EAS)
|title   = Member states of the [[East Asia Summit|East Asia Summit (EAS)]]
|width   = 18.25em
|padding = 10em

|above = ''This is where the {{{above}}} would appear.''

|col1 = {{AUS}}<br> {{BRU}}<br> {{flag|CHN|name=PR China}}<br> {{CAM}}
|col2 = {{IND}}<br> {{IDN}}<br> {{JPN}}<br> {{LAO}}
|col3 = {{MAS}}<br> {{MMR}}<br> {{NZL}}<br> {{PHI}}
|col4width = 17em
|col4 = {{SIN}}<br> {{KOR}}<br> {{THA}}<br> {{VIE}}

|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
}}

A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.

Basic syntax

Only required parameters and colwidth included.

{{Navbox with columns
|name       = {{subst:PAGENAME}}
|title      = 
|titleclass = 
|bodyclass  = 
|colwidth =  <!--(to set a default width for each column,
                  preferably in a proportional unit such as 'em'*)-->
|col1  = 
|col2  = 
}}
* See Em (typography). Using proportional units means the template should still be displayed correctly across a range of browser font-sizes. If colwidth not specified, a default 10em is used.

Parameters

Setup parameters

name[1]
The name of the template. The name of this template, for example, is "Navbox with columns".
state[1]
Possible values are collapsed, uncollapsed, plain, off, and the default autocollapse. See {{Navbox}} for more information.
navbar[1]
Possible values are plain, off, and the default value of blank. See {{Navbox}} for more information.
border[1]
Possible values are child, none, and the default value of blank. Set to child if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{Navbox}}, a columns of another {{Navbox with columns}}, or a section of {{Navbox with collapsible groups}}. See {{Navbox}} for more information and examples.

Basic data parameters

title[1]
The title of the template, displayed centered in the titlebar at the top of the template.
above[1]
Text or other elements to appear above the columns.
image[1]
Image to the right of all of the columns.
imageleft[1]
Image to the left of all of the columns.
below[1]
Text or other elements to appear below the columns.

Style parameters

style[1]
CSS style/s to apply to the template's body (i.e. including space not used by columns)
titlestyle[1]
CSS style/s to apply to titlebar; usually background:color (background defaults to NavHead default).
abovestyle[1]
belowstyle[1]
CSS style/s to apply to the above and below parameters, respectively.
basestyle[1]
CSS style/s to apply to the title, above, and below, parameters, all at the same time.
imagestyle[1]
CSS style/s to apply to the image parameter.
imageleftstyle[1]
CSS style/s to apply to the imageleft parameter
colstyle
CSS style/s to apply across all columns; if used, usually background:color per titlestyle above.
oddcolstyle
evencolstyle
CSS style/s to apply to all odd/even-numbered columns, respectively.
colnstyle
CSS style/s to apply to the nth column only.
colheaderstyle
CSS style/s to apply to all column headers.
colnheaderstyle
CSS style/s to apply to the nth column header.
colnfooterstyle
CSS style/s to apply to the nth column footer cell.

Columns parameters

colwidth
Width, preferably in a proportional unit such as 'em', or as a percentage, used for each column whose width not specified by colNwidth below. Defaults to 10em. Examples:
colwidth = 15em
colwidth = 25%
fullwidth
If set to anything, then the total width of the columns are scaled linearly to make the sum of the widths 100%. A rather advanced parameter, this usually need not be used and should be left blank. If a colheader or colfooter is used, then fullwidth is used automatically. Example:
fullwidth = true
padding
Padding before first column, preferably in a proportional unit. Defaults to 5em. Padding is disabled by setting it to 0 (or 0em, or 0%).
colnwidth
The nth column's width (overrides colwidth above).
coln
The content of the nth column. If any columns are used, then col1 is required. There can be a maximum of 20 columns.
colnheader
A header cell for the nth column that appears above the column. See below for examples.
colnfooter
A footer cell that appears below the nth column.
colnheadercolspan
A number specifying how many columns the nth column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if col1headercolspan = 3, then leave col2header and col3header blank.
colnfootercolspan
A number specifying how many columns the nth column footer should span. It defaults to 1. If it is greater than one, then do not specify column footers that it covers. For example, if col1footercolspan = 3, then leave col2footer and col3footer blank.

Additional groups/lists

You may wish to add a few extra groups and/or lists below the columns. The following parameters are given to provide such functionality. See {{Navbox}} for a more complete description of how they work, and for more examples.

groupn[1]
Allows up to 6 additional groups to go along with the lists below the columns.
listn[1]
Allows up to 6 additional lists below the columns.
groupstyle[1]
The general CSS style/s for the groups.
groupnstyle
CSS style/s for the nth group parameter.[1]
liststyle[1]
The general CSS style/s for the lists.
listnstyle
CSS style/s for the nth list parameter.
listpadding[1]
Amount of padding to have in each list cell.
oddstyle
evenstyle
Applies to odd/even list numbers. Overrules styles defined by liststyle. The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability. These should not be changed except in extraordinary circumstances.
evenodd [swap, even, odd, off]
See {{Navbox}} for description.

Microformats

bodyclass
This parameter is inserted into the "class" attribute for the infobox as a whole.
titleclass
This parameter is inserted into the "class" attribute for the infobox's title caption.

This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a navbox as containing hCard information about a person, for example, add the following parameter:

|bodyclass = vcard

and

|titleclass = fn

or (for example):

|title = The books of <span class="fn">[[Iain Banks]]</span>

...and so forth.

See Wikipedia:WikiProject Microformats for more information on adding microformat information to Wikipedia, and microformat for more information on microformats in general.

Examples

Basic example

{{Navbox with columns
|name    = East Asia Summit (EAS)
|title   = Member states of the [[East Asia Summit|East Asia Summit (EAS)]]
|width   = 18.25em
|padding = 10em

|above = ''This is where the {{{above}}} would appear.''

|col1 = {{AUS}}<br> {{BRU}}<br> {{flag|CHN|name=PR China}}<br> {{CAM}}
|col2 = {{IND}}<br> {{IDN}}<br> {{JPN}}<br> {{LAO}}
|col3 = {{MAS}}<br> {{MMR}}<br> {{NZL}}<br> {{PHI}}
|col4width = 17em
|col4 = {{SIN}}<br> {{KOR}}<br> {{THA}}<br> {{VIE}}

|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
}}

Template loop detected: Template:Navbox with columns

Example with percentage widths

{{Navbox with columns
| name = Plastics
| title = [[Plastic]]s
| colwidth = 33%
| colstyle = text-align: center
| col1 = [[Polyethylene]] (PE)<br> [[Polyethylene terephthalate]] (PET or PETE)<br> [[Polyvinyl chloride]] (PVC)<br> [[Polyvinylidene chloride]] (PVDC)<br> [[Polylactic acid]] (PLA)
| col2 = [[Polypropylene]] (PP)<br> [[Polyamide]] (PA)<br> [[Polycarbonate]] (PC)<br> [[Polytetrafluoroethylene]] (PTFE)<br> [[Polyurethane]] (PU)
| col3 = [[Polystyrene]] (PS)<br> [[Polyester]]<br> [[Acrylonitrile butadiene styrene]] (ABS)<br> [[Acrylic glass|Polymethyl methacrylate]] (PMMA)<br> [[Polyoxymethylene]] (POM)
}}

Template loop detected: Template:Navbox with columns

Example with colnheader and colnfooter

The gray background for the columns is added for illustration only. Template loop detected: Template:Navbox with columns

Example with colnheader using colnheadercolspan

The gray background for the columns is added for illustration only. This example shows the colnheadercolspan parameter being used, but you may also use colnfootercolspan to adjust the span of the footer cells. Template loop detected: Template:Navbox with columns

Example to illustrate most fields

The gray background and centered text for the columns is for illustration only. The columns default to an off-white background and left text alignment. This example shows how you can use up to six additional groups/lists after the columns.

Template loop detected: Template:Navbox with columns

Using child navboxes

All three types of navbox templates, namely {{Navbox}}, {{Navbox with columns}}, and {{Navbox with collapsible groups}}, can be nested inside of one another using the border parameter (which is common to all three). For complex templates, it may be necessary to use nesting to achieve a desired look.

Nesting Navbox with columns in itself

This example shows how one can nest multiple {{Navbox with columns}} templates to get the right look. Edit this page to see the code. There is a main {{Navbox with columns}} and two additional {{Navbox with columns}} templates, with the "child" option set (see code). Template loop detected: Template:Navbox with columns

Nesting other Navbox forms

This example shows {{Navbox}}, {{Navbox with collapsible groups}} and {{Navbox with columns}} all working together. Edit this page to see the code. Note that each of the child navboxes has the first parameter set to child. Template:Navbox with collapsible groups

Footnote

  1. 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35 1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 Parameters marked with a footnote [1] are parameters in common with the sister templates {{Navbox}} and {{Navbox with collapsible groups}}. A much more complete description of those parameters is available at {{Navbox}}.

See also

Template:Navigational templates

ar:قالب:Navbox with columns bn:টেমপ্লেট:Navbox with columns bs:Šablon:Navkutija sa kolonama ca:Plantilla:Navbox with columns cs:Šablona:Navbox se sloupci eo:Ŝablono:Navigilo kun kolumnoj fr:Modèle:Méta palette de navigation avec colonnes hy:Կաղապար:Սյունակներով նավարկման աղյուսակ ko:틀:안내 다단 hsb:Předłoha:Nawitabela ze špaltami ja:Template:Navbox with columns ku:Şablon:Navbox with columns mk:Шаблон:Navbox with columns pl:Szablon:Navbox z kolumnami pt:Predefinição:Navbox with columns ro:Format:Casetă de navigare cu coloane ru:Шаблон:Навигационная таблица с колонками sv:Mall:Navbox with columns uk:Шаблон:Navbox with columns tr:Şablon:Dolaşım dikeç vi:Tiêu bản:Navbox with columns zh:Template:Navbox with columns


Example with percentage widths

{{Navbox with columns
| name = Plastics
| title = [[Plastic]]s
| colwidth = 33%
| colstyle = text-align: center
| col1 = [[Polyethylene]] (PE)<br> [[Polyethylene terephthalate]] (PET or PETE)<br> [[Polyvinyl chloride]] (PVC)<br> [[Polyvinylidene chloride]] (PVDC)<br> [[Polylactic acid]] (PLA)
| col2 = [[Polypropylene]] (PP)<br> [[Polyamide]] (PA)<br> [[Polycarbonate]] (PC)<br> [[Polytetrafluoroethylene]] (PTFE)<br> [[Polyurethane]] (PU)
| col3 = [[Polystyrene]] (PS)<br> [[Polyester]]<br> [[Acrylonitrile butadiene styrene]] (ABS)<br> [[Acrylic glass|Polymethyl methacrylate]] (PMMA)<br> [[Polyoxymethylene]] (POM)
}}

A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.

Basic syntax

Only required parameters and colwidth included.

{{Navbox with columns
|name       = {{subst:PAGENAME}}
|title      = 
|titleclass = 
|bodyclass  = 
|colwidth =  <!--(to set a default width for each column,
                  preferably in a proportional unit such as 'em'*)-->
|col1  = 
|col2  = 
}}
* See Em (typography). Using proportional units means the template should still be displayed correctly across a range of browser font-sizes. If colwidth not specified, a default 10em is used.

Parameters

Setup parameters

name[1]
The name of the template. The name of this template, for example, is "Navbox with columns".
state[1]
Possible values are collapsed, uncollapsed, plain, off, and the default autocollapse. See {{Navbox}} for more information.
navbar[1]
Possible values are plain, off, and the default value of blank. See {{Navbox}} for more information.
border[1]
Possible values are child, none, and the default value of blank. Set to child if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{Navbox}}, a columns of another {{Navbox with columns}}, or a section of {{Navbox with collapsible groups}}. See {{Navbox}} for more information and examples.

Basic data parameters

title[1]
The title of the template, displayed centered in the titlebar at the top of the template.
above[1]
Text or other elements to appear above the columns.
image[1]
Image to the right of all of the columns.
imageleft[1]
Image to the left of all of the columns.
below[1]
Text or other elements to appear below the columns.

Style parameters

style[1]
CSS style/s to apply to the template's body (i.e. including space not used by columns)
titlestyle[1]
CSS style/s to apply to titlebar; usually background:color (background defaults to NavHead default).
abovestyle[1]
belowstyle[1]
CSS style/s to apply to the above and below parameters, respectively.
basestyle[1]
CSS style/s to apply to the title, above, and below, parameters, all at the same time.
imagestyle[1]
CSS style/s to apply to the image parameter.
imageleftstyle[1]
CSS style/s to apply to the imageleft parameter
colstyle
CSS style/s to apply across all columns; if used, usually background:color per titlestyle above.
oddcolstyle
evencolstyle
CSS style/s to apply to all odd/even-numbered columns, respectively.
colnstyle
CSS style/s to apply to the nth column only.
colheaderstyle
CSS style/s to apply to all column headers.
colnheaderstyle
CSS style/s to apply to the nth column header.
colnfooterstyle
CSS style/s to apply to the nth column footer cell.

Columns parameters

colwidth
Width, preferably in a proportional unit such as 'em', or as a percentage, used for each column whose width not specified by colNwidth below. Defaults to 10em. Examples:
colwidth = 15em
colwidth = 25%
fullwidth
If set to anything, then the total width of the columns are scaled linearly to make the sum of the widths 100%. A rather advanced parameter, this usually need not be used and should be left blank. If a colheader or colfooter is used, then fullwidth is used automatically. Example:
fullwidth = true
padding
Padding before first column, preferably in a proportional unit. Defaults to 5em. Padding is disabled by setting it to 0 (or 0em, or 0%).
colnwidth
The nth column's width (overrides colwidth above).
coln
The content of the nth column. If any columns are used, then col1 is required. There can be a maximum of 20 columns.
colnheader
A header cell for the nth column that appears above the column. See below for examples.
colnfooter
A footer cell that appears below the nth column.
colnheadercolspan
A number specifying how many columns the nth column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if col1headercolspan = 3, then leave col2header and col3header blank.
colnfootercolspan
A number specifying how many columns the nth column footer should span. It defaults to 1. If it is greater than one, then do not specify column footers that it covers. For example, if col1footercolspan = 3, then leave col2footer and col3footer blank.

Additional groups/lists

You may wish to add a few extra groups and/or lists below the columns. The following parameters are given to provide such functionality. See {{Navbox}} for a more complete description of how they work, and for more examples.

groupn[1]
Allows up to 6 additional groups to go along with the lists below the columns.
listn[1]
Allows up to 6 additional lists below the columns.
groupstyle[1]
The general CSS style/s for the groups.
groupnstyle
CSS style/s for the nth group parameter.[1]
liststyle[1]
The general CSS style/s for the lists.
listnstyle
CSS style/s for the nth list parameter.
listpadding[1]
Amount of padding to have in each list cell.
oddstyle
evenstyle
Applies to odd/even list numbers. Overrules styles defined by liststyle. The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability. These should not be changed except in extraordinary circumstances.
evenodd [swap, even, odd, off]
See {{Navbox}} for description.

Microformats

bodyclass
This parameter is inserted into the "class" attribute for the infobox as a whole.
titleclass
This parameter is inserted into the "class" attribute for the infobox's title caption.

This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a navbox as containing hCard information about a person, for example, add the following parameter:

|bodyclass = vcard

and

|titleclass = fn

or (for example):

|title = The books of <span class="fn">[[Iain Banks]]</span>

...and so forth.

See Wikipedia:WikiProject Microformats for more information on adding microformat information to Wikipedia, and microformat for more information on microformats in general.

Examples

Basic example

{{Navbox with columns
|name    = East Asia Summit (EAS)
|title   = Member states of the [[East Asia Summit|East Asia Summit (EAS)]]
|width   = 18.25em
|padding = 10em

|above = ''This is where the {{{above}}} would appear.''

|col1 = {{AUS}}<br> {{BRU}}<br> {{flag|CHN|name=PR China}}<br> {{CAM}}
|col2 = {{IND}}<br> {{IDN}}<br> {{JPN}}<br> {{LAO}}
|col3 = {{MAS}}<br> {{MMR}}<br> {{NZL}}<br> {{PHI}}
|col4width = 17em
|col4 = {{SIN}}<br> {{KOR}}<br> {{THA}}<br> {{VIE}}

|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
}}

Template loop detected: Template:Navbox with columns

Example with percentage widths

{{Navbox with columns
| name = Plastics
| title = [[Plastic]]s
| colwidth = 33%
| colstyle = text-align: center
| col1 = [[Polyethylene]] (PE)<br> [[Polyethylene terephthalate]] (PET or PETE)<br> [[Polyvinyl chloride]] (PVC)<br> [[Polyvinylidene chloride]] (PVDC)<br> [[Polylactic acid]] (PLA)
| col2 = [[Polypropylene]] (PP)<br> [[Polyamide]] (PA)<br> [[Polycarbonate]] (PC)<br> [[Polytetrafluoroethylene]] (PTFE)<br> [[Polyurethane]] (PU)
| col3 = [[Polystyrene]] (PS)<br> [[Polyester]]<br> [[Acrylonitrile butadiene styrene]] (ABS)<br> [[Acrylic glass|Polymethyl methacrylate]] (PMMA)<br> [[Polyoxymethylene]] (POM)
}}

Template loop detected: Template:Navbox with columns

Example with colnheader and colnfooter

The gray background for the columns is added for illustration only. Template loop detected: Template:Navbox with columns

Example with colnheader using colnheadercolspan

The gray background for the columns is added for illustration only. This example shows the colnheadercolspan parameter being used, but you may also use colnfootercolspan to adjust the span of the footer cells. Template loop detected: Template:Navbox with columns

Example to illustrate most fields

The gray background and centered text for the columns is for illustration only. The columns default to an off-white background and left text alignment. This example shows how you can use up to six additional groups/lists after the columns.

Template loop detected: Template:Navbox with columns

Using child navboxes

All three types of navbox templates, namely {{Navbox}}, {{Navbox with columns}}, and {{Navbox with collapsible groups}}, can be nested inside of one another using the border parameter (which is common to all three). For complex templates, it may be necessary to use nesting to achieve a desired look.

Nesting Navbox with columns in itself

This example shows how one can nest multiple {{Navbox with columns}} templates to get the right look. Edit this page to see the code. There is a main {{Navbox with columns}} and two additional {{Navbox with columns}} templates, with the "child" option set (see code). Template loop detected: Template:Navbox with columns

Nesting other Navbox forms

This example shows {{Navbox}}, {{Navbox with collapsible groups}} and {{Navbox with columns}} all working together. Edit this page to see the code. Note that each of the child navboxes has the first parameter set to child. Template:Navbox with collapsible groups

Footnote

  1. 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 Parameters marked with a footnote [1] are parameters in common with the sister templates {{Navbox}} and {{Navbox with collapsible groups}}. A much more complete description of those parameters is available at {{Navbox}}.

See also

Template:Navigational templates

ar:قالب:Navbox with columns bn:টেমপ্লেট:Navbox with columns bs:Šablon:Navkutija sa kolonama ca:Plantilla:Navbox with columns cs:Šablona:Navbox se sloupci eo:Ŝablono:Navigilo kun kolumnoj fr:Modèle:Méta palette de navigation avec colonnes hy:Կաղապար:Սյունակներով նավարկման աղյուսակ ko:틀:안내 다단 hsb:Předłoha:Nawitabela ze špaltami ja:Template:Navbox with columns ku:Şablon:Navbox with columns mk:Шаблон:Navbox with columns pl:Szablon:Navbox z kolumnami pt:Predefinição:Navbox with columns ro:Format:Casetă de navigare cu coloane ru:Шаблон:Навигационная таблица с колонками sv:Mall:Navbox with columns uk:Шаблон:Navbox with columns tr:Şablon:Dolaşım dikeç vi:Tiêu bản:Navbox with columns zh:Template:Navbox with columns


Example with colnheader and colnfooter

The gray background for the columns is added for illustration only.

A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.

Basic syntax

Only required parameters and colwidth included.

{{Navbox with columns
|name       = {{subst:PAGENAME}}
|title      = 
|titleclass = 
|bodyclass  = 
|colwidth =  <!--(to set a default width for each column,
                  preferably in a proportional unit such as 'em'*)-->
|col1  = 
|col2  = 
}}
* See Em (typography). Using proportional units means the template should still be displayed correctly across a range of browser font-sizes. If colwidth not specified, a default 10em is used.

Parameters

Setup parameters

name[1]
The name of the template. The name of this template, for example, is "Navbox with columns".
state[1]
Possible values are collapsed, uncollapsed, plain, off, and the default autocollapse. See {{Navbox}} for more information.
navbar[1]
Possible values are plain, off, and the default value of blank. See {{Navbox}} for more information.
border[1]
Possible values are child, none, and the default value of blank. Set to child if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{Navbox}}, a columns of another {{Navbox with columns}}, or a section of {{Navbox with collapsible groups}}. See {{Navbox}} for more information and examples.

Basic data parameters

title[1]
The title of the template, displayed centered in the titlebar at the top of the template.
above[1]
Text or other elements to appear above the columns.
image[1]
Image to the right of all of the columns.
imageleft[1]
Image to the left of all of the columns.
below[1]
Text or other elements to appear below the columns.

Style parameters

style[1]
CSS style/s to apply to the template's body (i.e. including space not used by columns)
titlestyle[1]
CSS style/s to apply to titlebar; usually background:color (background defaults to NavHead default).
abovestyle[1]
belowstyle[1]
CSS style/s to apply to the above and below parameters, respectively.
basestyle[1]
CSS style/s to apply to the title, above, and below, parameters, all at the same time.
imagestyle[1]
CSS style/s to apply to the image parameter.
imageleftstyle[1]
CSS style/s to apply to the imageleft parameter
colstyle
CSS style/s to apply across all columns; if used, usually background:color per titlestyle above.
oddcolstyle
evencolstyle
CSS style/s to apply to all odd/even-numbered columns, respectively.
colnstyle
CSS style/s to apply to the nth column only.
colheaderstyle
CSS style/s to apply to all column headers.
colnheaderstyle
CSS style/s to apply to the nth column header.
colnfooterstyle
CSS style/s to apply to the nth column footer cell.

Columns parameters

colwidth
Width, preferably in a proportional unit such as 'em', or as a percentage, used for each column whose width not specified by colNwidth below. Defaults to 10em. Examples:
colwidth = 15em
colwidth = 25%
fullwidth
If set to anything, then the total width of the columns are scaled linearly to make the sum of the widths 100%. A rather advanced parameter, this usually need not be used and should be left blank. If a colheader or colfooter is used, then fullwidth is used automatically. Example:
fullwidth = true
padding
Padding before first column, preferably in a proportional unit. Defaults to 5em. Padding is disabled by setting it to 0 (or 0em, or 0%).
colnwidth
The nth column's width (overrides colwidth above).
coln
The content of the nth column. If any columns are used, then col1 is required. There can be a maximum of 20 columns.
colnheader
A header cell for the nth column that appears above the column. See below for examples.
colnfooter
A footer cell that appears below the nth column.
colnheadercolspan
A number specifying how many columns the nth column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if col1headercolspan = 3, then leave col2header and col3header blank.
colnfootercolspan
A number specifying how many columns the nth column footer should span. It defaults to 1. If it is greater than one, then do not specify column footers that it covers. For example, if col1footercolspan = 3, then leave col2footer and col3footer blank.

Additional groups/lists

You may wish to add a few extra groups and/or lists below the columns. The following parameters are given to provide such functionality. See {{Navbox}} for a more complete description of how they work, and for more examples.

groupn[1]
Allows up to 6 additional groups to go along with the lists below the columns.
listn[1]
Allows up to 6 additional lists below the columns.
groupstyle[1]
The general CSS style/s for the groups.
groupnstyle
CSS style/s for the nth group parameter.[1]
liststyle[1]
The general CSS style/s for the lists.
listnstyle
CSS style/s for the nth list parameter.
listpadding[1]
Amount of padding to have in each list cell.
oddstyle
evenstyle
Applies to odd/even list numbers. Overrules styles defined by liststyle. The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability. These should not be changed except in extraordinary circumstances.
evenodd [swap, even, odd, off]
See {{Navbox}} for description.

Microformats

bodyclass
This parameter is inserted into the "class" attribute for the infobox as a whole.
titleclass
This parameter is inserted into the "class" attribute for the infobox's title caption.

This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a navbox as containing hCard information about a person, for example, add the following parameter:

|bodyclass = vcard

and

|titleclass = fn

or (for example):

|title = The books of <span class="fn">[[Iain Banks]]</span>

...and so forth.

See Wikipedia:WikiProject Microformats for more information on adding microformat information to Wikipedia, and microformat for more information on microformats in general.

Examples

Basic example

{{Navbox with columns
|name    = East Asia Summit (EAS)
|title   = Member states of the [[East Asia Summit|East Asia Summit (EAS)]]
|width   = 18.25em
|padding = 10em

|above = ''This is where the {{{above}}} would appear.''

|col1 = {{AUS}}<br> {{BRU}}<br> {{flag|CHN|name=PR China}}<br> {{CAM}}
|col2 = {{IND}}<br> {{IDN}}<br> {{JPN}}<br> {{LAO}}
|col3 = {{MAS}}<br> {{MMR}}<br> {{NZL}}<br> {{PHI}}
|col4width = 17em
|col4 = {{SIN}}<br> {{KOR}}<br> {{THA}}<br> {{VIE}}

|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
}}

Template loop detected: Template:Navbox with columns

Example with percentage widths

{{Navbox with columns
| name = Plastics
| title = [[Plastic]]s
| colwidth = 33%
| colstyle = text-align: center
| col1 = [[Polyethylene]] (PE)<br> [[Polyethylene terephthalate]] (PET or PETE)<br> [[Polyvinyl chloride]] (PVC)<br> [[Polyvinylidene chloride]] (PVDC)<br> [[Polylactic acid]] (PLA)
| col2 = [[Polypropylene]] (PP)<br> [[Polyamide]] (PA)<br> [[Polycarbonate]] (PC)<br> [[Polytetrafluoroethylene]] (PTFE)<br> [[Polyurethane]] (PU)
| col3 = [[Polystyrene]] (PS)<br> [[Polyester]]<br> [[Acrylonitrile butadiene styrene]] (ABS)<br> [[Acrylic glass|Polymethyl methacrylate]] (PMMA)<br> [[Polyoxymethylene]] (POM)
}}

Template loop detected: Template:Navbox with columns

Example with colnheader and colnfooter

The gray background for the columns is added for illustration only. Template loop detected: Template:Navbox with columns

Example with colnheader using colnheadercolspan

The gray background for the columns is added for illustration only. This example shows the colnheadercolspan parameter being used, but you may also use colnfootercolspan to adjust the span of the footer cells. Template loop detected: Template:Navbox with columns

Example to illustrate most fields

The gray background and centered text for the columns is for illustration only. The columns default to an off-white background and left text alignment. This example shows how you can use up to six additional groups/lists after the columns.

Template loop detected: Template:Navbox with columns

Using child navboxes

All three types of navbox templates, namely {{Navbox}}, {{Navbox with columns}}, and {{Navbox with collapsible groups}}, can be nested inside of one another using the border parameter (which is common to all three). For complex templates, it may be necessary to use nesting to achieve a desired look.

Nesting Navbox with columns in itself

This example shows how one can nest multiple {{Navbox with columns}} templates to get the right look. Edit this page to see the code. There is a main {{Navbox with columns}} and two additional {{Navbox with columns}} templates, with the "child" option set (see code). Template loop detected: Template:Navbox with columns

Nesting other Navbox forms

This example shows {{Navbox}}, {{Navbox with collapsible groups}} and {{Navbox with columns}} all working together. Edit this page to see the code. Note that each of the child navboxes has the first parameter set to child. Template:Navbox with collapsible groups

Footnote

  1. 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 Parameters marked with a footnote [1] are parameters in common with the sister templates {{Navbox}} and {{Navbox with collapsible groups}}. A much more complete description of those parameters is available at {{Navbox}}.

See also

Template:Navigational templates

ar:قالب:Navbox with columns bn:টেমপ্লেট:Navbox with columns bs:Šablon:Navkutija sa kolonama ca:Plantilla:Navbox with columns cs:Šablona:Navbox se sloupci eo:Ŝablono:Navigilo kun kolumnoj fr:Modèle:Méta palette de navigation avec colonnes hy:Կաղապար:Սյունակներով նավարկման աղյուսակ ko:틀:안내 다단 hsb:Předłoha:Nawitabela ze špaltami ja:Template:Navbox with columns ku:Şablon:Navbox with columns mk:Шаблон:Navbox with columns pl:Szablon:Navbox z kolumnami pt:Predefinição:Navbox with columns ro:Format:Casetă de navigare cu coloane ru:Шаблон:Навигационная таблица с колонками sv:Mall:Navbox with columns uk:Шаблон:Navbox with columns tr:Şablon:Dolaşım dikeç vi:Tiêu bản:Navbox with columns zh:Template:Navbox with columns


Example with colnheader using colnheadercolspan

The gray background for the columns is added for illustration only. This example shows the colnheadercolspan parameter being used, but you may also use colnfootercolspan to adjust the span of the footer cells.

A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.

Basic syntax

Only required parameters and colwidth included.

{{Navbox with columns
|name       = {{subst:PAGENAME}}
|title      = 
|titleclass = 
|bodyclass  = 
|colwidth =  <!--(to set a default width for each column,
                  preferably in a proportional unit such as 'em'*)-->
|col1  = 
|col2  = 
}}
* See Em (typography). Using proportional units means the template should still be displayed correctly across a range of browser font-sizes. If colwidth not specified, a default 10em is used.

Parameters

Setup parameters

name[1]
The name of the template. The name of this template, for example, is "Navbox with columns".
state[1]
Possible values are collapsed, uncollapsed, plain, off, and the default autocollapse. See {{Navbox}} for more information.
navbar[1]
Possible values are plain, off, and the default value of blank. See {{Navbox}} for more information.
border[1]
Possible values are child, none, and the default value of blank. Set to child if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{Navbox}}, a columns of another {{Navbox with columns}}, or a section of {{Navbox with collapsible groups}}. See {{Navbox}} for more information and examples.

Basic data parameters

title[1]
The title of the template, displayed centered in the titlebar at the top of the template.
above[1]
Text or other elements to appear above the columns.
image[1]
Image to the right of all of the columns.
imageleft[1]
Image to the left of all of the columns.
below[1]
Text or other elements to appear below the columns.

Style parameters

style[1]
CSS style/s to apply to the template's body (i.e. including space not used by columns)
titlestyle[1]
CSS style/s to apply to titlebar; usually background:color (background defaults to NavHead default).
abovestyle[1]
belowstyle[1]
CSS style/s to apply to the above and below parameters, respectively.
basestyle[1]
CSS style/s to apply to the title, above, and below, parameters, all at the same time.
imagestyle[1]
CSS style/s to apply to the image parameter.
imageleftstyle[1]
CSS style/s to apply to the imageleft parameter
colstyle
CSS style/s to apply across all columns; if used, usually background:color per titlestyle above.
oddcolstyle
evencolstyle
CSS style/s to apply to all odd/even-numbered columns, respectively.
colnstyle
CSS style/s to apply to the nth column only.
colheaderstyle
CSS style/s to apply to all column headers.
colnheaderstyle
CSS style/s to apply to the nth column header.
colnfooterstyle
CSS style/s to apply to the nth column footer cell.

Columns parameters

colwidth
Width, preferably in a proportional unit such as 'em', or as a percentage, used for each column whose width not specified by colNwidth below. Defaults to 10em. Examples:
colwidth = 15em
colwidth = 25%
fullwidth
If set to anything, then the total width of the columns are scaled linearly to make the sum of the widths 100%. A rather advanced parameter, this usually need not be used and should be left blank. If a colheader or colfooter is used, then fullwidth is used automatically. Example:
fullwidth = true
padding
Padding before first column, preferably in a proportional unit. Defaults to 5em. Padding is disabled by setting it to 0 (or 0em, or 0%).
colnwidth
The nth column's width (overrides colwidth above).
coln
The content of the nth column. If any columns are used, then col1 is required. There can be a maximum of 20 columns.
colnheader
A header cell for the nth column that appears above the column. See below for examples.
colnfooter
A footer cell that appears below the nth column.
colnheadercolspan
A number specifying how many columns the nth column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if col1headercolspan = 3, then leave col2header and col3header blank.
colnfootercolspan
A number specifying how many columns the nth column footer should span. It defaults to 1. If it is greater than one, then do not specify column footers that it covers. For example, if col1footercolspan = 3, then leave col2footer and col3footer blank.

Additional groups/lists

You may wish to add a few extra groups and/or lists below the columns. The following parameters are given to provide such functionality. See {{Navbox}} for a more complete description of how they work, and for more examples.

groupn[1]
Allows up to 6 additional groups to go along with the lists below the columns.
listn[1]
Allows up to 6 additional lists below the columns.
groupstyle[1]
The general CSS style/s for the groups.
groupnstyle
CSS style/s for the nth group parameter.[1]
liststyle[1]
The general CSS style/s for the lists.
listnstyle
CSS style/s for the nth list parameter.
listpadding[1]
Amount of padding to have in each list cell.
oddstyle
evenstyle
Applies to odd/even list numbers. Overrules styles defined by liststyle. The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability. These should not be changed except in extraordinary circumstances.
evenodd [swap, even, odd, off]
See {{Navbox}} for description.

Microformats

bodyclass
This parameter is inserted into the "class" attribute for the infobox as a whole.
titleclass
This parameter is inserted into the "class" attribute for the infobox's title caption.

This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a navbox as containing hCard information about a person, for example, add the following parameter:

|bodyclass = vcard

and

|titleclass = fn

or (for example):

|title = The books of <span class="fn">[[Iain Banks]]</span>

...and so forth.

See Wikipedia:WikiProject Microformats for more information on adding microformat information to Wikipedia, and microformat for more information on microformats in general.

Examples

Basic example

{{Navbox with columns
|name    = East Asia Summit (EAS)
|title   = Member states of the [[East Asia Summit|East Asia Summit (EAS)]]
|width   = 18.25em
|padding = 10em

|above = ''This is where the {{{above}}} would appear.''

|col1 = {{AUS}}<br> {{BRU}}<br> {{flag|CHN|name=PR China}}<br> {{CAM}}
|col2 = {{IND}}<br> {{IDN}}<br> {{JPN}}<br> {{LAO}}
|col3 = {{MAS}}<br> {{MMR}}<br> {{NZL}}<br> {{PHI}}
|col4width = 17em
|col4 = {{SIN}}<br> {{KOR}}<br> {{THA}}<br> {{VIE}}

|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
}}

Template loop detected: Template:Navbox with columns

Example with percentage widths

{{Navbox with columns
| name = Plastics
| title = [[Plastic]]s
| colwidth = 33%
| colstyle = text-align: center
| col1 = [[Polyethylene]] (PE)<br> [[Polyethylene terephthalate]] (PET or PETE)<br> [[Polyvinyl chloride]] (PVC)<br> [[Polyvinylidene chloride]] (PVDC)<br> [[Polylactic acid]] (PLA)
| col2 = [[Polypropylene]] (PP)<br> [[Polyamide]] (PA)<br> [[Polycarbonate]] (PC)<br> [[Polytetrafluoroethylene]] (PTFE)<br> [[Polyurethane]] (PU)
| col3 = [[Polystyrene]] (PS)<br> [[Polyester]]<br> [[Acrylonitrile butadiene styrene]] (ABS)<br> [[Acrylic glass|Polymethyl methacrylate]] (PMMA)<br> [[Polyoxymethylene]] (POM)
}}

Template loop detected: Template:Navbox with columns

Example with colnheader and colnfooter

The gray background for the columns is added for illustration only. Template loop detected: Template:Navbox with columns

Example with colnheader using colnheadercolspan

The gray background for the columns is added for illustration only. This example shows the colnheadercolspan parameter being used, but you may also use colnfootercolspan to adjust the span of the footer cells. Template loop detected: Template:Navbox with columns

Example to illustrate most fields

The gray background and centered text for the columns is for illustration only. The columns default to an off-white background and left text alignment. This example shows how you can use up to six additional groups/lists after the columns.

Template loop detected: Template:Navbox with columns

Using child navboxes

All three types of navbox templates, namely {{Navbox}}, {{Navbox with columns}}, and {{Navbox with collapsible groups}}, can be nested inside of one another using the border parameter (which is common to all three). For complex templates, it may be necessary to use nesting to achieve a desired look.

Nesting Navbox with columns in itself

This example shows how one can nest multiple {{Navbox with columns}} templates to get the right look. Edit this page to see the code. There is a main {{Navbox with columns}} and two additional {{Navbox with columns}} templates, with the "child" option set (see code). Template loop detected: Template:Navbox with columns

Nesting other Navbox forms

This example shows {{Navbox}}, {{Navbox with collapsible groups}} and {{Navbox with columns}} all working together. Edit this page to see the code. Note that each of the child navboxes has the first parameter set to child. Template:Navbox with collapsible groups

Footnote

  1. 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 Parameters marked with a footnote [1] are parameters in common with the sister templates {{Navbox}} and {{Navbox with collapsible groups}}. A much more complete description of those parameters is available at {{Navbox}}.

See also

Template:Navigational templates

ar:قالب:Navbox with columns bn:টেমপ্লেট:Navbox with columns bs:Šablon:Navkutija sa kolonama ca:Plantilla:Navbox with columns cs:Šablona:Navbox se sloupci eo:Ŝablono:Navigilo kun kolumnoj fr:Modèle:Méta palette de navigation avec colonnes hy:Կաղապար:Սյունակներով նավարկման աղյուսակ ko:틀:안내 다단 hsb:Předłoha:Nawitabela ze špaltami ja:Template:Navbox with columns ku:Şablon:Navbox with columns mk:Шаблон:Navbox with columns pl:Szablon:Navbox z kolumnami pt:Predefinição:Navbox with columns ro:Format:Casetă de navigare cu coloane ru:Шаблон:Навигационная таблица с колонками sv:Mall:Navbox with columns uk:Шаблон:Navbox with columns tr:Şablon:Dolaşım dikeç vi:Tiêu bản:Navbox with columns zh:Template:Navbox with columns


Example to illustrate most fields

The gray background and centered text for the columns is for illustration only. The columns default to an off-white background and left text alignment. This example shows how you can use up to six additional groups/lists after the columns.


A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.

Basic syntax

Only required parameters and colwidth included.

{{Navbox with columns
|name       = {{subst:PAGENAME}}
|title      = 
|titleclass = 
|bodyclass  = 
|colwidth =  <!--(to set a default width for each column,
                  preferably in a proportional unit such as 'em'*)-->
|col1  = 
|col2  = 
}}
* See Em (typography). Using proportional units means the template should still be displayed correctly across a range of browser font-sizes. If colwidth not specified, a default 10em is used.

Parameters

Setup parameters

name[1]
The name of the template. The name of this template, for example, is "Navbox with columns".
state[1]
Possible values are collapsed, uncollapsed, plain, off, and the default autocollapse. See {{Navbox}} for more information.
navbar[1]
Possible values are plain, off, and the default value of blank. See {{Navbox}} for more information.
border[1]
Possible values are child, none, and the default value of blank. Set to child if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{Navbox}}, a columns of another {{Navbox with columns}}, or a section of {{Navbox with collapsible groups}}. See {{Navbox}} for more information and examples.

Basic data parameters

title[1]
The title of the template, displayed centered in the titlebar at the top of the template.
above[1]
Text or other elements to appear above the columns.
image[1]
Image to the right of all of the columns.
imageleft[1]
Image to the left of all of the columns.
below[1]
Text or other elements to appear below the columns.

Style parameters

style[1]
CSS style/s to apply to the template's body (i.e. including space not used by columns)
titlestyle[1]
CSS style/s to apply to titlebar; usually background:color (background defaults to NavHead default).
abovestyle[1]
belowstyle[1]
CSS style/s to apply to the above and below parameters, respectively.
basestyle[1]
CSS style/s to apply to the title, above, and below, parameters, all at the same time.
imagestyle[1]
CSS style/s to apply to the image parameter.
imageleftstyle[1]
CSS style/s to apply to the imageleft parameter
colstyle
CSS style/s to apply across all columns; if used, usually background:color per titlestyle above.
oddcolstyle
evencolstyle
CSS style/s to apply to all odd/even-numbered columns, respectively.
colnstyle
CSS style/s to apply to the nth column only.
colheaderstyle
CSS style/s to apply to all column headers.
colnheaderstyle
CSS style/s to apply to the nth column header.
colnfooterstyle
CSS style/s to apply to the nth column footer cell.

Columns parameters

colwidth
Width, preferably in a proportional unit such as 'em', or as a percentage, used for each column whose width not specified by colNwidth below. Defaults to 10em. Examples:
colwidth = 15em
colwidth = 25%
fullwidth
If set to anything, then the total width of the columns are scaled linearly to make the sum of the widths 100%. A rather advanced parameter, this usually need not be used and should be left blank. If a colheader or colfooter is used, then fullwidth is used automatically. Example:
fullwidth = true
padding
Padding before first column, preferably in a proportional unit. Defaults to 5em. Padding is disabled by setting it to 0 (or 0em, or 0%).
colnwidth
The nth column's width (overrides colwidth above).
coln
The content of the nth column. If any columns are used, then col1 is required. There can be a maximum of 20 columns.
colnheader
A header cell for the nth column that appears above the column. See below for examples.
colnfooter
A footer cell that appears below the nth column.
colnheadercolspan
A number specifying how many columns the nth column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if col1headercolspan = 3, then leave col2header and col3header blank.
colnfootercolspan
A number specifying how many columns the nth column footer should span. It defaults to 1. If it is greater than one, then do not specify column footers that it covers. For example, if col1footercolspan = 3, then leave col2footer and col3footer blank.

Additional groups/lists

You may wish to add a few extra groups and/or lists below the columns. The following parameters are given to provide such functionality. See {{Navbox}} for a more complete description of how they work, and for more examples.

groupn[1]
Allows up to 6 additional groups to go along with the lists below the columns.
listn[1]
Allows up to 6 additional lists below the columns.
groupstyle[1]
The general CSS style/s for the groups.
groupnstyle
CSS style/s for the nth group parameter.[1]
liststyle[1]
The general CSS style/s for the lists.
listnstyle
CSS style/s for the nth list parameter.
listpadding[1]
Amount of padding to have in each list cell.
oddstyle
evenstyle
Applies to odd/even list numbers. Overrules styles defined by liststyle. The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability. These should not be changed except in extraordinary circumstances.
evenodd [swap, even, odd, off]
See {{Navbox}} for description.

Microformats

bodyclass
This parameter is inserted into the "class" attribute for the infobox as a whole.
titleclass
This parameter is inserted into the "class" attribute for the infobox's title caption.

This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a navbox as containing hCard information about a person, for example, add the following parameter:

|bodyclass = vcard

and

|titleclass = fn

or (for example):

|title = The books of <span class="fn">[[Iain Banks]]</span>

...and so forth.

See Wikipedia:WikiProject Microformats for more information on adding microformat information to Wikipedia, and microformat for more information on microformats in general.

Examples

Basic example

{{Navbox with columns
|name    = East Asia Summit (EAS)
|title   = Member states of the [[East Asia Summit|East Asia Summit (EAS)]]
|width   = 18.25em
|padding = 10em

|above = ''This is where the {{{above}}} would appear.''

|col1 = {{AUS}}<br> {{BRU}}<br> {{flag|CHN|name=PR China}}<br> {{CAM}}
|col2 = {{IND}}<br> {{IDN}}<br> {{JPN}}<br> {{LAO}}
|col3 = {{MAS}}<br> {{MMR}}<br> {{NZL}}<br> {{PHI}}
|col4width = 17em
|col4 = {{SIN}}<br> {{KOR}}<br> {{THA}}<br> {{VIE}}

|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
}}

Template loop detected: Template:Navbox with columns

Example with percentage widths

{{Navbox with columns
| name = Plastics
| title = [[Plastic]]s
| colwidth = 33%
| colstyle = text-align: center
| col1 = [[Polyethylene]] (PE)<br> [[Polyethylene terephthalate]] (PET or PETE)<br> [[Polyvinyl chloride]] (PVC)<br> [[Polyvinylidene chloride]] (PVDC)<br> [[Polylactic acid]] (PLA)
| col2 = [[Polypropylene]] (PP)<br> [[Polyamide]] (PA)<br> [[Polycarbonate]] (PC)<br> [[Polytetrafluoroethylene]] (PTFE)<br> [[Polyurethane]] (PU)
| col3 = [[Polystyrene]] (PS)<br> [[Polyester]]<br> [[Acrylonitrile butadiene styrene]] (ABS)<br> [[Acrylic glass|Polymethyl methacrylate]] (PMMA)<br> [[Polyoxymethylene]] (POM)
}}

Template loop detected: Template:Navbox with columns

Example with colnheader and colnfooter

The gray background for the columns is added for illustration only. Template loop detected: Template:Navbox with columns

Example with colnheader using colnheadercolspan

The gray background for the columns is added for illustration only. This example shows the colnheadercolspan parameter being used, but you may also use colnfootercolspan to adjust the span of the footer cells. Template loop detected: Template:Navbox with columns

Example to illustrate most fields

The gray background and centered text for the columns is for illustration only. The columns default to an off-white background and left text alignment. This example shows how you can use up to six additional groups/lists after the columns.

Template loop detected: Template:Navbox with columns

Using child navboxes

All three types of navbox templates, namely {{Navbox}}, {{Navbox with columns}}, and {{Navbox with collapsible groups}}, can be nested inside of one another using the border parameter (which is common to all three). For complex templates, it may be necessary to use nesting to achieve a desired look.

Nesting Navbox with columns in itself

This example shows how one can nest multiple {{Navbox with columns}} templates to get the right look. Edit this page to see the code. There is a main {{Navbox with columns}} and two additional {{Navbox with columns}} templates, with the "child" option set (see code). Template loop detected: Template:Navbox with columns

Nesting other Navbox forms

This example shows {{Navbox}}, {{Navbox with collapsible groups}} and {{Navbox with columns}} all working together. Edit this page to see the code. Note that each of the child navboxes has the first parameter set to child. Template:Navbox with collapsible groups

Footnote

  1. 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 Parameters marked with a footnote [1] are parameters in common with the sister templates {{Navbox}} and {{Navbox with collapsible groups}}. A much more complete description of those parameters is available at {{Navbox}}.

See also

Template:Navigational templates

ar:قالب:Navbox with columns bn:টেমপ্লেট:Navbox with columns bs:Šablon:Navkutija sa kolonama ca:Plantilla:Navbox with columns cs:Šablona:Navbox se sloupci eo:Ŝablono:Navigilo kun kolumnoj fr:Modèle:Méta palette de navigation avec colonnes hy:Կաղապար:Սյունակներով նավարկման աղյուսակ ko:틀:안내 다단 hsb:Předłoha:Nawitabela ze špaltami ja:Template:Navbox with columns ku:Şablon:Navbox with columns mk:Шаблон:Navbox with columns pl:Szablon:Navbox z kolumnami pt:Predefinição:Navbox with columns ro:Format:Casetă de navigare cu coloane ru:Шаблон:Навигационная таблица с колонками sv:Mall:Navbox with columns uk:Шаблон:Navbox with columns tr:Şablon:Dolaşım dikeç vi:Tiêu bản:Navbox with columns zh:Template:Navbox with columns


Using child navboxes

All three types of navbox templates, namely {{Navbox}}, {{Navbox with columns}}, and {{Navbox with collapsible groups}}, can be nested inside of one another using the border parameter (which is common to all three). For complex templates, it may be necessary to use nesting to achieve a desired look.

Nesting Navbox with columns in itself

This example shows how one can nest multiple {{Navbox with columns}} templates to get the right look. Edit this page to see the code. There is a main {{Navbox with columns}} and two additional {{Navbox with columns}} templates, with the "child" option set (see code).

A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.

Basic syntax

Only required parameters and colwidth included.

{{Navbox with columns
|name       = {{subst:PAGENAME}}
|title      = 
|titleclass = 
|bodyclass  = 
|colwidth =  <!--(to set a default width for each column,
                  preferably in a proportional unit such as 'em'*)-->
|col1  = 
|col2  = 
}}
* See Em (typography). Using proportional units means the template should still be displayed correctly across a range of browser font-sizes. If colwidth not specified, a default 10em is used.

Parameters

Setup parameters

name[1]
The name of the template. The name of this template, for example, is "Navbox with columns".
state[1]
Possible values are collapsed, uncollapsed, plain, off, and the default autocollapse. See {{Navbox}} for more information.
navbar[1]
Possible values are plain, off, and the default value of blank. See {{Navbox}} for more information.
border[1]
Possible values are child, none, and the default value of blank. Set to child if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{Navbox}}, a columns of another {{Navbox with columns}}, or a section of {{Navbox with collapsible groups}}. See {{Navbox}} for more information and examples.

Basic data parameters

title[1]
The title of the template, displayed centered in the titlebar at the top of the template.
above[1]
Text or other elements to appear above the columns.
image[1]
Image to the right of all of the columns.
imageleft[1]
Image to the left of all of the columns.
below[1]
Text or other elements to appear below the columns.

Style parameters

style[1]
CSS style/s to apply to the template's body (i.e. including space not used by columns)
titlestyle[1]
CSS style/s to apply to titlebar; usually background:color (background defaults to NavHead default).
abovestyle[1]
belowstyle[1]
CSS style/s to apply to the above and below parameters, respectively.
basestyle[1]
CSS style/s to apply to the title, above, and below, parameters, all at the same time.
imagestyle[1]
CSS style/s to apply to the image parameter.
imageleftstyle[1]
CSS style/s to apply to the imageleft parameter
colstyle
CSS style/s to apply across all columns; if used, usually background:color per titlestyle above.
oddcolstyle
evencolstyle
CSS style/s to apply to all odd/even-numbered columns, respectively.
colnstyle
CSS style/s to apply to the nth column only.
colheaderstyle
CSS style/s to apply to all column headers.
colnheaderstyle
CSS style/s to apply to the nth column header.
colnfooterstyle
CSS style/s to apply to the nth column footer cell.

Columns parameters

colwidth
Width, preferably in a proportional unit such as 'em', or as a percentage, used for each column whose width not specified by colNwidth below. Defaults to 10em. Examples:
colwidth = 15em
colwidth = 25%
fullwidth
If set to anything, then the total width of the columns are scaled linearly to make the sum of the widths 100%. A rather advanced parameter, this usually need not be used and should be left blank. If a colheader or colfooter is used, then fullwidth is used automatically. Example:
fullwidth = true
padding
Padding before first column, preferably in a proportional unit. Defaults to 5em. Padding is disabled by setting it to 0 (or 0em, or 0%).
colnwidth
The nth column's width (overrides colwidth above).
coln
The content of the nth column. If any columns are used, then col1 is required. There can be a maximum of 20 columns.
colnheader
A header cell for the nth column that appears above the column. See below for examples.
colnfooter
A footer cell that appears below the nth column.
colnheadercolspan
A number specifying how many columns the nth column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if col1headercolspan = 3, then leave col2header and col3header blank.
colnfootercolspan
A number specifying how many columns the nth column footer should span. It defaults to 1. If it is greater than one, then do not specify column footers that it covers. For example, if col1footercolspan = 3, then leave col2footer and col3footer blank.

Additional groups/lists

You may wish to add a few extra groups and/or lists below the columns. The following parameters are given to provide such functionality. See {{Navbox}} for a more complete description of how they work, and for more examples.

groupn[1]
Allows up to 6 additional groups to go along with the lists below the columns.
listn[1]
Allows up to 6 additional lists below the columns.
groupstyle[1]
The general CSS style/s for the groups.
groupnstyle
CSS style/s for the nth group parameter.[1]
liststyle[1]
The general CSS style/s for the lists.
listnstyle
CSS style/s for the nth list parameter.
listpadding[1]
Amount of padding to have in each list cell.
oddstyle
evenstyle
Applies to odd/even list numbers. Overrules styles defined by liststyle. The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability. These should not be changed except in extraordinary circumstances.
evenodd [swap, even, odd, off]
See {{Navbox}} for description.

Microformats

bodyclass
This parameter is inserted into the "class" attribute for the infobox as a whole.
titleclass
This parameter is inserted into the "class" attribute for the infobox's title caption.

This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a navbox as containing hCard information about a person, for example, add the following parameter:

|bodyclass = vcard

and

|titleclass = fn

or (for example):

|title = The books of <span class="fn">[[Iain Banks]]</span>

...and so forth.

See Wikipedia:WikiProject Microformats for more information on adding microformat information to Wikipedia, and microformat for more information on microformats in general.

Examples

Basic example

{{Navbox with columns
|name    = East Asia Summit (EAS)
|title   = Member states of the [[East Asia Summit|East Asia Summit (EAS)]]
|width   = 18.25em
|padding = 10em

|above = ''This is where the {{{above}}} would appear.''

|col1 = {{AUS}}<br> {{BRU}}<br> {{flag|CHN|name=PR China}}<br> {{CAM}}
|col2 = {{IND}}<br> {{IDN}}<br> {{JPN}}<br> {{LAO}}
|col3 = {{MAS}}<br> {{MMR}}<br> {{NZL}}<br> {{PHI}}
|col4width = 17em
|col4 = {{SIN}}<br> {{KOR}}<br> {{THA}}<br> {{VIE}}

|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
}}

Template loop detected: Template:Navbox with columns

Example with percentage widths

{{Navbox with columns
| name = Plastics
| title = [[Plastic]]s
| colwidth = 33%
| colstyle = text-align: center
| col1 = [[Polyethylene]] (PE)<br> [[Polyethylene terephthalate]] (PET or PETE)<br> [[Polyvinyl chloride]] (PVC)<br> [[Polyvinylidene chloride]] (PVDC)<br> [[Polylactic acid]] (PLA)
| col2 = [[Polypropylene]] (PP)<br> [[Polyamide]] (PA)<br> [[Polycarbonate]] (PC)<br> [[Polytetrafluoroethylene]] (PTFE)<br> [[Polyurethane]] (PU)
| col3 = [[Polystyrene]] (PS)<br> [[Polyester]]<br> [[Acrylonitrile butadiene styrene]] (ABS)<br> [[Acrylic glass|Polymethyl methacrylate]] (PMMA)<br> [[Polyoxymethylene]] (POM)
}}

Template loop detected: Template:Navbox with columns

Example with colnheader and colnfooter

The gray background for the columns is added for illustration only. Template loop detected: Template:Navbox with columns

Example with colnheader using colnheadercolspan

The gray background for the columns is added for illustration only. This example shows the colnheadercolspan parameter being used, but you may also use colnfootercolspan to adjust the span of the footer cells. Template loop detected: Template:Navbox with columns

Example to illustrate most fields

The gray background and centered text for the columns is for illustration only. The columns default to an off-white background and left text alignment. This example shows how you can use up to six additional groups/lists after the columns.

Template loop detected: Template:Navbox with columns

Using child navboxes

All three types of navbox templates, namely {{Navbox}}, {{Navbox with columns}}, and {{Navbox with collapsible groups}}, can be nested inside of one another using the border parameter (which is common to all three). For complex templates, it may be necessary to use nesting to achieve a desired look.

Nesting Navbox with columns in itself

This example shows how one can nest multiple {{Navbox with columns}} templates to get the right look. Edit this page to see the code. There is a main {{Navbox with columns}} and two additional {{Navbox with columns}} templates, with the "child" option set (see code). Template loop detected: Template:Navbox with columns

Nesting other Navbox forms

This example shows {{Navbox}}, {{Navbox with collapsible groups}} and {{Navbox with columns}} all working together. Edit this page to see the code. Note that each of the child navboxes has the first parameter set to child. Template:Navbox with collapsible groups

Footnote

  1. 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 Parameters marked with a footnote [1] are parameters in common with the sister templates {{Navbox}} and {{Navbox with collapsible groups}}. A much more complete description of those parameters is available at {{Navbox}}.

See also

Template:Navigational templates

ar:قالب:Navbox with columns bn:টেমপ্লেট:Navbox with columns bs:Šablon:Navkutija sa kolonama ca:Plantilla:Navbox with columns cs:Šablona:Navbox se sloupci eo:Ŝablono:Navigilo kun kolumnoj fr:Modèle:Méta palette de navigation avec colonnes hy:Կաղապար:Սյունակներով նավարկման աղյուսակ ko:틀:안내 다단 hsb:Předłoha:Nawitabela ze špaltami ja:Template:Navbox with columns ku:Şablon:Navbox with columns mk:Шаблон:Navbox with columns pl:Szablon:Navbox z kolumnami pt:Predefinição:Navbox with columns ro:Format:Casetă de navigare cu coloane ru:Шаблон:Навигационная таблица с колонками sv:Mall:Navbox with columns uk:Шаблон:Navbox with columns tr:Şablon:Dolaşım dikeç vi:Tiêu bản:Navbox with columns zh:Template:Navbox with columns


Nesting other Navbox forms

This example shows {{Navbox}}, {{Navbox with collapsible groups}} and {{Navbox with columns}} all working together. Edit this page to see the code. Note that each of the child navboxes has the first parameter set to child. Template:Navbox with collapsible groups

Footnote


See also

Template:Navigational templates