Wiki - KEONHACAI COPA

Bản mẫu:Navbox with columns

Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Hộp điều hướng trình bày nội dung của nó trong các cột. Ban đầu được dự định cung cấp một phương tiện tương đối đơn giản để căn chỉnh các liên kết có tiền tố là biểu tượng cờ, ví dụ: trong các bản mẫu cung cấp liên kết đến các bài viết quốc gia.

Tham số cơ bản[sửa mã nguồn]

Chỉ các tham số bắt buộc và đã bao gômwidth.

{{Navbox with columns
|name  = {{subst:PAGENAME}}
|title = 
|width = (width of each column, preferably in a proportional unit such as 'em'*)
|col1  = 
|col2  = 
}}

Tham số[sửa mã nguồn]

Tham số cần thiết được in đậm.

NameThe name of the template. The name of this template, for example, is "Navigation with columns".
statePossible values are collapsed, uncollapsed, and the default autocollapse.
titlestyleCSS style/s to apply to titlebar; usually background:color (background defaults to NavHead default).
titleThe title of the template, displayed centered in the titlebar at the top of the template.
bodystyleCSS style/s to apply to the template's body (i.e. including space not used by columns)
abovestyleCSS style/s to apply to the above parameter.
aboveText or other elements to appear above the columns.
imageImage to the right of all of the columns.
imageleftImage to the left of all of the columns.
widthWidth, preferably in a proportional unit such as 'em', used for each column whose width not specified by colNwidth below. Defaults to 10em.
paddingPadding before first column, preferably in a proportional unit. Defaults to 5em.
colstyleCSS style/s to apply across all columns; if used, usually background:color per titlestyle above.
oddcolstyleCSS style/s to apply to all odd-numbered columns (again, if used, usually background:color).
evencolstyleCSS style/s to apply to all even-numbered columns (ditto).
col1widthFirst column's width (overrides width above).
col1styleCSS style/s to apply to the first column.
col1First column's content.
col2widthSecond column's width (overrides width above).
col2styleCSS style/s to apply to the second column.
col2Second column's content.
col3widthThird column's width (overrides width above).
col3styleCSS style/s to apply to the third column.
col3Third column's content.
............
col10widthTenth and final column's width (overrides width above).
col10styleCSS style/s to apply to the tenth and final column.
col10Tenth and final column's content.
belowstyleCSS style/s to apply to the below parameter.
belowText or other elements to appear below the columns.
categoryThe category or categories to which a page including the template will become a member. Avoid using, as such categories not shown in the code of a page transcluding the template.

Ví dụ[sửa mã nguồn]

[sửa mã nguồn]

{{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/> {{CAM}}<br/> {{IND}}
|col2 = {{IDN}}<br/> {{JPN}}<br/> {{LAO}}<br/> {{MAS}}
|col3 = {{MYA}}<br/> {{NZL}}<br/> {{CHN-PRC}}<br/> {{PHI}}
|col4width=17em
|col4 = {{SIN}}<br/> {{KOR}}<br/> {{THA}}<br/> {{VIE}}

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

Kết quả[sửa mã nguồn]

Xem thêm[sửa mã nguồn]

So sánh các bản mẫu điều hướng
Bản mẫuĐóng mởMàu tiêu đềHìnhNhómTham số
style (body)
{{Hộp điều hướng}}collapsiblenavboxTrái/phải nội dung
{{Navbox with collapsible groups}}collapsiblenavboxTrái/phải nội dung và/hoặc
trong mỗi danh sách
{{Navbox with columns}}collapsiblenavboxTrái/phải các cộtKhông
Thuộc tính collapsible
KiểuLớp CSSJavaScriptĐóng khiTùy chỉnh
trạng thái ban đầu
Lồng vào nhau
Bảng đóng mởmw-collapsibleĐịnh nghĩa trong Common.js2 hoặc nhiều hộp autocollapse trong trang


Wiki - Keonhacai copa chuyên cung cấp kiến thức thể thao, keonhacai tỷ lệ kèo, bóng đá, khoa học, kiến thức hằng ngày được chúng tôi cập nhật mỗi ngày mà bạn có thể tìm kiếm tại đây có nguồn bài viết: https://vi.wikipedia.org/wiki/B%E1%BA%A3n_m%E1%BA%ABu:Navbox_with_columns