Bản mẫu:Sidebar with collapsible lists

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

{{Sidebar with collapsible lists}} is a version of {{Sidebar}} which offers collapsible lists as an alternative to Sidebar's content parameters.

Cách sử dụng[sửa mã nguồn]

Parameters with infrequent use omitted.

{{Sidebar with collapsible lists
| name     = {{subst:PAGENAME}}
| pretitle = 
| title    = 
| image    = 
| expanded = {{{expanded|{{{1|}}}}}}

| headingstyle   = 
| listtitlestyle = 
| liststyle      = 
| contentstyle   =   <!--(same as |liststyle = ...?)-->

| heading1   = 
| list1name  = 
| list1title = 
| list1      = 

| heading2   = 
| list2name  = 
| list2title = 
| list2      = 

<!-- ...... -->

| headingN =         <!--(Bản mẫu:Sidebar's "headingN" and/or "contentN" parameters (where -->
| contentN =         <!-- N is a number) may be used to include uncollapsible lists/content)-->

<!-- ...... -->

| below = 

}}

Thông số[sửa mã nguồn]

The topmost parameters (including name, outertitle, topimage, pretitle, title, image, headingstyle, contentstyle) are described at {{Sidebar}}. Other {{Sidebar}} parameters not shown here (e.g. navbar) may also be used.

expanded and listNname
expanded is used to indicate which (if any) list named listNname is shown expanded when the template is first displayed; see {{Collapsible lists option}}.
listtitlestyle and liststyle
These are the equivalent of, respectively, {{Collapsible list}}'s titlestyle and liststyle parameters.

Any listN used without an accompanying listNtitle is still presented as a collapsible list under {{Collapsible list}}'s default title ("List"); see example opposite. [Perhaps "listN"s without "listNtitle"s should be treated as "contentN"s..?]

Thông số khác[sửa mã nguồn]

In addition to the above, the following collapsible list-related parameters are also available:

listframestyle
Sets the framestyle (see {{Collapsible list}}) for the lists.
listNframestyle
Sets the framestyle for listN, overriding listframestyle.
listNtitlestyle
Sets the titlestyle for listN, overriding listtitlestyle above.
listNstyle
Sets the liststyle for listN, overriding liststyle above.

Handling long links[sửa mã nguồn]

As with the sidebar template, {{normalwraplink}} may be used to handle links that should wrap within the sidebar or otherwise need to be made to wrap, in order to prevent the sidebar from becoming too wide. Use {{normalwraplink|longlinkname}}, where |longlinkname is the long link without its square brackets.

Use the |wraplinks=true parameter to turn link wrapping off for the whole template.

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

Examples of this template can be found by checking the template's backlinks with What links here.

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

Chúng tôi bán
Bài viết liên quan
BBC The Sky at Night - The Flying Telescope (2018) - Kính viễn vọng di động
BBC The Sky at Night - The Flying Telescope (2018) - Kính viễn vọng di động
Bầu trời vào ban đêm đưa lên không trung trên đài quan sát trên không lớn nhất thế giới - một máy bay phản lực khổng lồ được sửa đổi đặc biệt, bay ra khỏi California
[Genshin Impact] Guide La Hoàn Thâm Cảnh v2.3
[Genshin Impact] Guide La Hoàn Thâm Cảnh v2.3
Cẩm nang đi la hoàn thâm cảnh trong genshin impact mùa 2.3
Tản mạn - Hành trình trở lại Long Tích Tuyết Sơn - Phần 1
Tản mạn - Hành trình trở lại Long Tích Tuyết Sơn - Phần 1
tựa như hồn, tinh ngân tựa như cốt. Nhưng người ngoại bang có thể lay chuyển nó, Imunlau...
Gianni Rivera: Nhạc trưởng số 1 của AC Milan
Gianni Rivera: Nhạc trưởng số 1 của AC Milan
Người hâm mộ bóng đá yêu mến CLB của mình vì nhiều lý do khác nhau, dù hầu hết là vì lý do địa lý hay gia đình