Bản mẫu:Hộp điều hướng Canada/doc
Đây là một trang con tài liệu sử dụng bản mẫu dành cho Bản mẫu:Hộp điều hướng Canada. Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang bản mẫu gốc. |
Bản mẫu này có thể được sử dụng để tạo ra một {{hộp điều hướng}} hoặc {{navbox with collapsible groups}} sử dụng kiểu tiêu chuẩn cho các hộp điều hướng có liên quan đến Canada.
Cách sử dụng
sửa{{Hộp điều hướng Canada | name = {{subst:PAGENAME}} | title = | leaf = yes | above = | group1 = | list1 = | group2 = | list2 = ... | group20 = | list20 = | below = }}
hoặc
{{Hộp điều hướng Canada | name = {{subst:PAGENAME}} | collapsible groups = yes | title = | leaf = yes | above = | group1 = | abbr1 = | list1 = | group2 = | abbr2 = | list2 = ... | group20 = | abbr20 = | list20 = | below = }}
Các tham số
sửaThe parameters mostly mimic {{navbox}}, with the addition of |leaf=yes
, which adds the leaf icon to the title. In order for the red border to work properly, the first list must start with |list1=
. The template will automatically determine the last list number.
In some cases, it may be necessary to override the default top and bottom red borders. For example, when used with subgroups/child navigational boxes. To add force the addition of a top or bottom border, use |topborder=yes
or |bottomborder=yes
. To force the removal of a top or bottom border, use |notopborder=yes
or |nobottomborder=yes
.
Các ví dụ
sửaVí dụ 1
sửa{{Hộp điều hướng Canada | name = {{subst:PAGENAME}} | title = Tiêu đề | leaf = yes | list1 = * mục a * mục b * mục c * mục d }}
Ví dụ 2
sửa{{Hộp điều hướng Canada | name = {{subst:PAGENAME}} | title = Tiêu đề | leaf = yes | above = trên | group1 = nhóm 1 | list1 = * mục 1a * mục 1b | group2 = nhóm 2 | list2 = * mục 2a * mục 2b | below = dưới }}
Ví dụ 3
sửa{{Hộp điều hướng Canada | name = {{subst:PAGENAME}} | title = Tiêu đề | collapsible groups = yes | leaf = yes | above = trên | group1 = nhóm 1 | list1 = * mục 1a * mục 1b | group2 = nhóm 2 | list2 = * mục 2a * mục 2b | below = dưới }}
Ví dụ 4
sửa{{Hộp điều hướng Canada | name = {{subst:PAGENAME}} | title = Tiêu đề | leaf = yes | notopborder = yes | above = trên | group1 = nhóm 1 | list1 = {{Hộp điều hướng Canada|subgroup | topborder = yes | group1 = nhóm 1.1 | list1 = * mục 1.1a * mục 1.1b | group2 = nhóm 1.2 | list2 = * mục 1.2a * mục 1.2b }} | group2 = nhóm 2 | list2 = * mục 2a * mục 2b | below = dưới }}
Ví dụ 5
sửa{{Hộp điều hướng Canada | name = {{subst:PAGENAME}} | title = Tiêu đề | leaf = yes | nobottomborder = yes | above = trên | group1 = nhóm 1 | list1 = * mục 1a * mục 1b | group2 = nhóm 2 | list2 = {{Hộp điều hướng Canada|subgroup | bottomborder = yes | group1 = nhóm 2.1 | list1 = * mục 2.1a * mục 2.1b | group2 = nhóm 2.2 | list2 = * mục 2.2a * mục 2.2b }} | below = dưới }}