Template:Navbox with columns/doc: Difference between revisions

Jump to navigation Jump to search
no edit summary
sims>A morris
m (1 revision: documentation)
sims>A morris
No edit summary
Line 1:
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>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.
{{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.
 
== Basic syntax ==
Line 16 ⟶ 14:
}}
</pre>
<div style="line-height:1.35em; font-size:90%;">* See [[Wikipedia:Em (typography)|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>
 
== Parameters ==
=== Setup parameters ===
:;''name''<ref name="common">Parameters marked with a footnote '''<sup>[1]</sup>''' are parameters in common with the sister templates {{t1t|Navbox}} and {{t1t|Navbox with collapsible groups}}. A much more complete description of those parameters is available at {{t1t|Navbox}}.</ref>
::The name of the template. The name of this template, for example, is "Navbox with columns".
 
:;''state''<ref name="common"/>
::Possible values are <code>collapsed</code>, <code>uncollapsed</code>, <code>plain</code>, <code>off</code>, and the default <code>autocollapse</code>. See {{t1t|Navbox}} for more information.
 
:;''navbar''<ref name="common"/>
::Possible values are <code>plain</code>, <code>off</code>, and the default value of blank. See {{t1t|Navbox}} for more information.
 
:;''border''<ref name="common"/>
::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 {{t1t|Navbox}}, a columns of another {{t1t|Navbox with columns}}, or a section of {{t1t|Navbox with collapsible groups}}. See {{t1t|Navbox}} for more information and examples.
 
===Basic data parameters===
Line 119 ⟶ 117:
 
===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 {{t1t|Navbox}} for a more complete description of how they work, and for more examples.
 
:;''group<sub>n</sub>''<ref name="common"/>
Line 146 ⟶ 144:
 
:; ''evenodd'' <span style="font-weight:normal;"><code>[swap, even, odd, off]</code></span>
::See {{t1t|Navbox}} for description.
 
== Examples ==
Line 312 ⟶ 310:
 
==Using child navboxes==
All three types of navbox templates, namely {{t1t|Navbox}}, {{t1t|Navbox with columns}}, and {{t1t|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.
 
===Nesting Navbox with columns in itself===
This example shows how one can nest multiple {{t1t|Navbox with columns}} templates to get the right look. Edit this page to see the code. There is a main {{t1t|Navbox with columns}} and two additional {{t1t|Navbox with columns}} templates, with the "child" option set (see code).
{{Navbox with columns
|name = Navbox with columns/doc
Line 362 ⟶ 360:
 
===Nesting other Navbox forms===
This example shows {{t1t|Navbox}}, {{t1t|Navbox with collapsible groups}} and {{t1t|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
Line 445 ⟶ 443:
 
}}
 
== See also ==
* {{t1t|Navbox}} &ndash; Allows groups/lists instead of columns
* {{tl|Navbox suitesubgroup}}
* {{t1t|Navbox with collapsible groups}} &ndash; Another variation.
 
==Footnote==
<references/>
 
== See also ==
* {{t1|Navbox}} &ndash; Allows groups/lists instead of columns
* {{tl|Navbox subgroup long}} &ndash; expanded version of {{tl|Navbox subgroup}} allowing up to 38 subgroups
* {{t1|Navbox with collapsible groups}} &ndash; Another variation.
 
{{Navigational templates}}
 
 
<includeonly>
<!--Categories-->
[[Category:Navbox (navigational)Navigation templates| ]]
 
<!--Other languages-->
 
[[ar:قالب:Navbox with columns]]
[[cs:Šablona:Navbox se sloupci]]
[[eo:Ŝablono:Navigilo kun kolumnoj]]
[[fr:Modèle:Méta palette de navigation avec colonnes]]
[[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:Шаблон:Навигационная таблица с колонками]]
[[sl:Predloga:Navigacija s stolpci]]
[[sv:Mall:Navbox with columns]]
[[uk:Шаблон:Navbox with columns]]
[[vi:Tiêu bản:Navbox with columns]]
[[zh:Template:Navbox with columns]]
</includeonly>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu