Anonymous user
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.▼
{{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 {{
::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 {{
:;''navbar''<ref name="common"/>
::Possible values are <code>plain</code>, <code>off</code>, and the default value of blank. See {{
:;''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 {{
===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 {{
:;''group<sub>n</sub>''<ref name="common"/>
Line 146 ⟶ 144:
:; ''evenodd'' <span style="font-weight:normal;"><code>[swap, even, odd, off]</code></span>
::See {{
== Examples ==
Line 312 ⟶ 310:
==Using child navboxes==
All three types of navbox templates, namely {{
===Nesting Navbox with columns in itself===
This example shows how one can nest multiple {{
{{Navbox with columns
|name = Navbox with columns/doc
Line 362 ⟶ 360:
===Nesting other Navbox forms===
This example shows {{
{{Navbox with collapsible groups
|name = Navbox with collapsible groups
Line 445 ⟶ 443:
}}
== See also ==▼
==Footnote==
<references/>
▲== See also ==
▲* {{t1|Navbox}} – Allows groups/lists instead of columns
▲* {{t1|Navbox with collapsible groups}} – Another variation.
<includeonly>
<!--Categories-->
[[Category:
<!--Other languages-->
</includeonly>
|