ਫਰਮਾ:Navbox with 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 syntaxOnly required parameters and colwidth included. {{Navbox with columns | name = {{subst:PAGENAME}} | title = | 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 is not specified, a default 10.0em is used.
ParametersSetup parameters
Perimeter parametersi.e. parameters affecting the inclusion/formatting of items around the template's perimeter.
Style parameters
Columns parameters
Additional groups/listsYou 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.
Microformats
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. ExamplesBasic example {{Navbox with columns
| name = East Asia Summit (EAS)
| title = [[East Asia Summit|East Asia Summit (EAS)]]
| listclass = plainlist
| width = 18.25em
| padding = 10em
| aboveclass = hlist
| abovestyle = font-weight: bold;
| above =
* [[First East Asia Summit|First]]
* [[Second East Asia Summit|Second]]
* [[Third East Asia Summit|Third]]
* [[Fourth East Asia Summit|Fourth]]
* [[Fifth East Asia Summit|Fifth]]
* [[Sixth East Asia Summit|Sixth]]
* [[Seventh East Asia Summit|Seventh]]
| col1 =
* [[Australia]]
* [[Brunei]]
* [[Burma]]
| col2 =
* [[Cambodia]]
* [[China]]
* [[India]]
| col3 =
* [[Indonesia]]
* [[Japan]]
* [[Laos]]
| col4 =
* [[Malaysia]]
* [[New Zealand]]
* [[Philippines]]
| col5 =
* [[Russia]]
* [[Singapore]]
* [[South Korea]]
| col6width = 17em
| col6 =
* [[Thailand]]
* [[United States]]
* [[Vietnam]]
}}
Example with percentage widths {{Navbox with columns
| name = Transit visibility table
| titlestyle = background:silver;
| title = [[Astronomical transit|Transit]] visibility from [[inferior and superior planets|planets superior]] to the transiting body
| listclass = plainlist
| colwidth = 14.2857%
| colstyle = text-align:center;
| col1header = Venus
| col1 =
* [[Transit of Mercury from Venus|Mercury]]
| col2header = Earth
| col2 =
* [[Transit of Mercury|Mercury]]
* [[Transit of Venus|Venus]]
| col3header = Mars
| col3 =
* [[Transit of Mercury from Mars|Mercury]]
* [[Transit of Venus from Mars|Venus]]
* [[Transit of Earth from Mars|Earth]]
| col4header = Jupiter
| col4 =
* [[Transit of Mercury from Jupiter|Mercury]]
* [[Transit of Venus from Jupiter|Venus]]
* [[Transit of Earth from Jupiter|Earth]]
* [[Transit of Mars from Jupiter|Mars]]
| col5header = Saturn
| col5 =
* [[Transit of Mercury from Saturn|Mercury]]
* [[Transit of Venus from Saturn|Venus]]
* [[Transit of Earth from Saturn|Earth]]
* [[Transit of Mars from Saturn|Mars]]
* [[Transit of Jupiter from outer planets|Jupiter]]
| col6header = Uranus
| col6 =
* [[Transit of Mercury from Uranus|Mercury]]
* [[Transit of Venus from Uranus|Venus]]
* [[Transit of Earth from Uranus|Earth]]
* [[Transit of Mars from Uranus|Mars]]
* [[Transit of Jupiter from outer planets|Jupiter]]
* [[Transit of Saturn from outer planets|Saturn]]
| col7header = Neptune
| col7 =
* [[Transit of Mercury from Neptune|Mercury]]
* [[Transit of Venus from Neptune|Venus]]
* [[Transit of Earth from Neptune|Earth]]
* [[Transit of Mars from Neptune|Mars]]
* [[Transit of Jupiter from outer planets|Jupiter]]
* [[Transit of Saturn from outer planets|Saturn]]
* [[Transit of Uranus from Neptune|Uranus]]
}}
Example with colnheader and colnfooterThe gray background for the columns is added for illustration only. Example with colnheader using colnheadercolspanThe 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. Example to illustrate most fieldsThe 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. Using child navboxesAll three types of navbox templates, namely {{Navbox}}, {{Navbox with columns}}, and {{Navbox with collapsible groups}}, can be nested inside of one another using the Nesting Navbox with columns in itselfThis 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). Nesting other Navbox formsThis 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 Footnotes
Tracking categorySee also
|
Portal di Ensiklopedia Dunia