Templat:Navbox with columns - Wikipedia
Lompat ke isi
Lonto Wikipedia, ensiklopedia pereyi bahasa Hulontalo
lihat
sunting
] [
versi terdahulu
] [
hapus singgahan
Dokumentasi templat
Templat:Template doc page transcluded
Templat: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
boli'a bungo
Only required parameters and
colwidth
included.
{{Navbox with columns
|name = {{subst:PAGENAME}}
|title =
|colwidth =
|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
boli'a bungo
Required parameters in
bold
. Parameters marked with a cross
are parameters in common with the sister templates
Templat:T1
and
Templat:T1
. A much more complete description of those parameters is available at
Templat:T1
Setup parameters
boli'a bungo
name
The name of the template. The name of this template, for example, is "Navbox with columns".
state
Possible values are
collapsed
uncollapsed
plain
off
, and the default
autocollapse
. See
Templat:T1
for more information.
navbar
Possible values are
plain
off
, and the default value of blank. See
Templat:T1
for more information.
border
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
Templat:T1
, a columns of another
Templat:T1
, or a section of
Templat:T1
. See
Templat:T1
for more information and examples.
Basic data parameters
boli'a bungo
title
The title of the template, displayed centered in the titlebar at the top of the template.
above
Text or other elements to appear above the columns.
image
Image to the right of all of the columns.
imageleft
Image to the left of all of the columns.
below
Text or other elements to appear below the columns.
Style parameters
boli'a bungo
bodystyle
CSS style/s to apply to the template's body (i.e. including space not used by columns)
titlestyle
CSS
style/s to apply to titlebar; usually
background:
color
(background defaults to
NavHead
default).
abovestyle
belowstyle
CSS style/s to apply to the
above
and
below
parameters, respectively.
basestyle
CSS style/s to apply to the
title
above
, and
below
, parameters, all at the same time.
imagestyle
CSS style/s to apply to the
image
parameter.
imageleftstyle
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.
col
style
CSS style/s to apply to the n
th
column only.
colheaderstyle
CSS style/s to apply to all column headers.
col
headerstyle
CSS style/s to apply to the n
th
column header.
col
footerstyle
CSS style/s to apply to the n
th
column footer cell.
Columns parameters
boli'a bungo
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%).
col
width
The n
th
column's width (overrides
colwidth
above).
col
The content of the n
th
column. If any columns are used, then
col1
is required. There can be a maximum of 20 columns.
col
header
A header cell for the n
th
column that appears above the column. See below for examples.
col
footer
A footer cell that appears below the n
th
column.
col
headercolspan
A number specifying how many columns the n
th
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.
col
footercolspan
A number specifying how many columns the n
th
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
boli'a bungo
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
Templat:T1
for a more complete description of how they work, and for more examples.
group
Allows up to 6 additional groups to go along with the lists below the columns.
list
Allows up to 6 additional lists below the columns.
groupstyle
The general CSS style/s for the groups.
group
style
CSS style/s for the n
th
group parameter.
liststyle
The general CSS style/s for the lists.
list
style
CSS style/s for the n
th
list parameter.
listpadding
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
Templat:T1
for description.
Examples
boli'a bungo
Basic example
boli'a bungo
{{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}}
{{BRU}}
{{CAM}}
{{IND}}
|col2 = {{IDN}}
{{JPN}}
{{LAO}}
{{MAS}}
|col3 = {{MYA}}
{{NZL}}
{{CHN-PRC}}
{{PHI}}
|col4width=17em
|col4 = {{SIN}}
{{KOR}}
{{THA}}
{{VIE}}

|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
}}
Member states of the
East Asia Summit (EAS)
This is where the {{{above}}} parameter would appear.
Templat:AUS
Templat:BRU
Templat:CAM
Templat:IND
Indonesia
Templat:JPN
Templat:LAO
Templat:MAS
Templat:MYA
Templat:NZL
Templat:CHN-PRC
Templat:PHI
Templat:SIN
Templat:KOR
Templat:THA
Templat:VIE
Potential future members
Templat:Spaces
Templat:TLS
Templat:Spaces
Templat:RUS
Example with percentage widths
boli'a bungo
{{Navbox with columns
| name = Plastics
| title = [[Plastic]]s
| colwidth = 33%
| colstyle = text-align: center
| col1 = [[Polyethylene]] (PE)
[[Polyethylene terephthalate]] (PET or PETE)
[[Polyvinyl chloride]] (PVC)
[[Polyvinylidene chloride]] (PVDC)
[[Polylactic acid]] (PLA)
| col2 = [[Polypropylene]] (PP)
[[Polyamide]] (PA)
[[Polycarbonate]] (PC)
[[Polytetrafluoroethylene]] (PTFE)
[[Polyurethane]] (PU)
| col3 = [[Polystyrene]] (PS)
[[Polyester]]
[[Acrylonitrile butadiene styrene]] (ABS)
[[Acrylic glass|Polymethyl methacrylate]] (PMMA)
[[Polyoxymethylene]] (POM)
}}
Plastics
Polyethylene
(PE)
Polyethylene terephthalate
(PET or PETE)
Polyvinyl chloride
(PVC)
Polyvinylidene chloride
(PVDC)
Polylactic acid
(PLA)
Polypropylene
(PP)
Polyamide
(PA)
Polycarbonate
(PC)
Polytetrafluoroethylene
(PTFE)
Polyurethane
(PU)
Polystyrene
(PS)
Polyester
Acrylonitrile butadiene styrene
(ABS)
Polymethyl methacrylate
(PMMA)
Polyoxymethylene
(POM)
Example with col
header and col
footer
boli'a bungo
The gray background for the columns is added for illustration only.
col
header and col
footer example
col1header
col2header
col3header
col4header
col1
col2
col3
col4
col1footer
col2footer
col3footer
col4footer
Example with col
header using col
headercolspan
boli'a bungo
The gray background for the columns is added for illustration only. This example shows the col
headercolspan parameter being used, but you may also use col
footercolspan to adjust the span of the footer cells.
col
header with col
colspan example
col1header
col2header (colspan=2)
col4header
col5header (colspan=3)
col1
col2
col3
col4
col5
col6
col7
Example to illustrate most fields
boli'a bungo
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.
Example to illustrate most fields
above
col1header
col2header
col3header
col4header
col5header
col1
col2
col3
col4
col5
col1footer
col2footer
col3footer
col4footer
col5footer
group1
list1
group2
list2
group3
list3
group4
list4
group5
list5
group6
list6
below
Using child navboxes
boli'a bungo
All three types of navbox templates, namely
Templat:T1
Templat:T1
, and
Templat:T1
, 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
boli'a bungo
This example shows how one can nest multiple
Templat:T1
templates to get the right look. Edit this section to view the code. There is a main
Templat:T1
and two additional
Templat:T1
templates, with the "child" option set (see code).
Subgroups with nesting
Col1Header
Col2Header
Col3Header
Col4Header
Col1.1Header
Col1.2Header
Col1.1
Col1.2
Col2
Col3.1Header
Col3.2Header
Col3.3Header
Col3.1
Col3.2
Col3.3
Col4
Nesting other Navbox forms
boli'a bungo
This example shows
Templat:T1
Templat:T1
and
Templat:T1
all working together. Press the edit button for the section to view the code. Note that each of the child navboxes has the first parameter set to
child
Navbox, Navbox with columns, and Navbox with collapsible groups together
The Scouting Movement
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 Guiding and Girl Scouting
Ranger (Girl Guide)
Jamboree
Scout Leader
WOSM
WAGGGS
Non-aligned organisations
Scouting controversy and conflict
Scouting in popular culture
List of Scouts
List of highest awards in Scouting
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 Guiding and Girl Scouting
Ranger (Girl Guide)
Jamboree
Scout Leader
WOSM
WAGGGS
Non-aligned organisations
Scouting controversy and conflict
Scouting in popular culture
List of Scouts
List of highest awards in Scouting
The Scouting Movement
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 Guiding and Girl Scouting
Ranger (Girl Guide)
Jamboree
Scout Leader
WOSM
WAGGGS
Non-aligned organisations
Scouting controversy and conflict
Scouting in popular culture
List of Scouts
List of highest awards in Scouting
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 Guiding and Girl Scouting
Ranger (Girl Guide)
Jamboree
Scout Leader
WOSM
WAGGGS
Non-aligned organisations
Scouting controversy and conflict
Scouting in popular culture
List of Scouts
List of highest awards in Scouting
The Scouting Movement
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 Guiding and Girl Scouting
Ranger (Girl Guide)
Jamboree
Scout Leader
WOSM
WAGGGS
Non-aligned organisations
Scouting controversy and conflict
Scouting in popular culture
List of Scouts
List of highest awards in Scouting
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 Guiding and Girl Scouting
Ranger (Girl Guide)
Jamboree
Scout Leader
WOSM
WAGGGS
Non-aligned organisations
Scouting controversy and conflict
Scouting in popular culture
List of Scouts
List of highest awards in Scouting
Former French colonies
in
Africa
and the
Indian Ocean
Mahgreb
Algeria
Morocco
Arguin Island
Tunisia
French West Africa
Côte d'Ivoire
Dahomey
French Sudan
Guinea
Mauritania
Niger
Senegal
Upper Volta
French Togoland
James Island
French Equatorial Africa
Chad
Gabon
Middle Congo
Oubangui-Chari
Comoros
Anjouan
Grande Comore
Mohéli
French Somaliland (Djibouti)
Madagascar
Ile de France
Seychelles
Scouting in the United Kingdom
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
Navbox with columns nested in itself
Col1Header
Col2Header
Col3Header
Col4Header
Col1.1Header
Col1.2Header
Col1.1
Col1.2
Col2
Col3.1Header
Col3.2Header
Col3.3Header
Col3.1
Col3.2
Col3.3
Col4
See also
boli'a bungo
Templat:T1
Allows groups/lists instead of columns
Templat:T1
Another variation.
Templat:Navigational templates
Dokumentasi
di atas ditransklusikan dari
Templat:Navbox with columns/doc
sunting
versi terdahulu
Penyunting dapat melakukan uji coba pada halaman bak pasir
buat
cermin
dan kasus uji
buat
templat ini.
Mohon tambahkan kategori pada subhalaman
/doc
Subhalaman templat ini
Yilotapu lonto "
Dalala
Pages using navbox columns without the first column
Navboxes using background colours
Navigational boxes without horizontal lists
Templat
Navbox with columns
Duhengi topik