• Trang chính
  • Ngẫu nhiên
  • Lân cận
  • Đăng nhập
  • Tùy chọn
Donate Now If Wikipedia is useful to you, please give today.
  • Giới thiệu Wikipedia
  • Lời phủ nhận
Wikipedia

Bản mẫu:Thanh bên

  • Ngôn ngữ
  • Theo dõi
  • Sửa đổi
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]
Chú ýBản mẫu này được sử dụng ở khoảng 3.000 trang, vì thế những thay đổi đến nó sẽ hiện ra rõ ràng. Vui lòng thử nghiệm các thay đổi ở trang con /sandbox, /testcases của bản mẫu, hoặc ở không gian người dùng của bạn. Cân nhắc thảo luận các thay đổi tại trang thảo luận trước khi áp dụng sửa đổi.
Bản mẫu này không hiển thị trong chế độ xem điện thoại di động của Wikipedia; nó chỉ hiển thị trên máy tính để bàn. Đọc tài liệu để được giải thích thêm.
Bản mẫu này sử dụng Lua:
  • Module:Sidebar (chỗ thử)
Đối với bản mẫu điều hướng dọc, xem bản mẫu ngang, bản mẫu:Hộp điều hướng, thanh bên trái của giao diện, và bài viết trong sổ tay Mediawiki.

This template is a metatemplate for the creation of sidebar templates, i.e. boxes that are vertically-aligned navigation templates. Sidebars, like infoboxes, are usually positioned on the right-hand side of a page.

{{Sidebar with collapsible lists}} is a version of {{Thanh bên}} that adds collapsibility to its sections, i.e. the means to show or hide sections by clicking links beside their headings.

Bản mẫu navbox và các bản mẫu khác sử dụng thuộc tính navbox hoặc vertical-navbox sẽ không hiển thị trên trang Web Wikipedia dành cho di động, với các tài khoản có khoảng 45% người đọc.

Mục lục

  • 1 Cách sử dụng
  • 2 Các tham số
    • 2.1 Các tham số chính
    • 2.2 Các tham số khác
  • 3 Xử lý các liên kết dài
  • 4 Đang nhúng
  • 5 Cú pháp trống đầy đủ
  • 6 Tài liệu bổ sung
  • 7 Thể loại theo dõi
  • 8 Xem thêm

Cách sử dụng

sửa
{{{pretitle}}}
{{{title}}}
{{{image}}}
{{{above}}}
{{{heading1}}}
{{{content1}}}
{{{heading2}}}
{{{content2}}}
{{{heading3}}}
{{{content3}}}
…… etc ……
{{{heading35}}}
{{{content35}}}
{{{below}}}
  • x
  • t
  • s

(parameters with infrequent use omitted)

{{Thanh bên
| style = 
| name = {{thế:PAGENAME}}
| pretitle = 
| title = 
| image = 
| headingstyle = 
| contentstyle = 

| above = 

| heading1 = 
| content1 = 

| heading2 = 
| content2 = 

| heading3 = 
| content3 = 

<!-- etc, to: -->

| heading35 = 
| content35 = 

| below = 

}}

Các tham số

sửa

No parameters are mandatory, but if the X · T · S {{thanh điều hướng}} links along the bottom of a {{Sidebar}} are to function correctly (unless their appearance is suppressed; see the navbar parameter below), the parameter name needs to be set (to the name of the sidebar's page). (This does not apply if the Lua module that produces {{Sidebar}}, Mô đun:Sidebar, is being used directly.)

Các tham số chính

sửa
Tham số Giải nghĩa
|name= The sidebar's name, i.e. the name following "Bản mẫu:" in the title shown at the top of the sidebar's page.
Required if the X · T · S {{thanh điều hướng}} links at the bottom of the sidebar are to function correctly, unless their appearance is suppressed (see the navbar parameter below) or {{Sidebar}} is not being used as a wrapper for Mô đun:Sidebar. When {{Sidebar}} is used as a wrapper, setting |name={{thế:PAGENAME}} is recommended.
|outertitle= Use to place a title for the sidebar immediately above the sidebar.
|topimage= Use to place an image at the top of the sidebar, i.e. above |title= (if used). Full wiki syntax is expected (i.e. [[Tập tin:...]]).
To add a caption below the image, use |topcaption=.
|pretitle= Use to place a line such as "Part of the X series on" before the title.
|title= Use to place a title for the sidebar at the top of the sidebar. (If |topimage= is used, it will appear immediately below it).
|image= Use to place an image between the |title= (if used) and first section. As with |topimage=, full wiki syntax is expected (i.e. [[Tập tin:...]]).
To add a caption below the image, use |caption=.
|headingstyle= Use to alter the default CSS styling set for section headings.
To alter the CSS styling for a specific section's heading, use |headingnstyle=, where n is the number of the section.
|contentstyle= Use to alter the default CSS styling set for section content.
To alter the CSS styling for a particular section's content, use |contentnstyle=, where n is the number of the section.
|heading1=
|content1=
First section's heading / content. content1 is required if heading1 is also to appear.
|heading2=
|content2=
Second section's heading / content. (content2 required if heading2 also to appear; etc.)
|heading3=
|content3=
Third section's heading / content.
...... etc ......
|heading35=
|content35=
Currently, the last possible section heading and/or content.

Các tham số khác

sửa
Tham số Giải nghĩa
|above= Same as the |above= offered by {{Hộp điều hướng}}.
  • |class= or |bodyclass=
  • |outertitleclass=
  • |topimageclass=
  • |pretitleclass=
  • |titleclass=
  • |imageclass=
  • |aboveclass=
  • |headingclass=
  • |contentclass=
  • |belowclass=

Microformat classes for the corresponding parameters.
(|class= and |bodyclass= are applied across the whole sidebar.)

|below= Same as the |below= offered by {{Hộp điều hướng}}.
(Use, for example, to add one or more portal links to the bottom of the template (shown, by default, in bold).)
  • |style= or |bodystyle=
  • |outertitlestyle=
  • |topimagestyle=
  • |topcaptionstyle=
  • |pretitlestyle=
  • |titlestyle=
  • |imagestyle=
  • |captionstyle=
  • |abovestyle=
  • |headingstyle=
  • |headingnstyle=
  • |contentstyle=
  • |contentnstyle=
  • |belowstyle=
  • |navbarstyle=
      (or |tnavbarstyle=)

Use to alter the default CSS styling for the corresponding parameters.
(|style= and |bodystyle= are applied across the whole sidebar.)

|cellspacing=
|cellpadding=
Use to amend the default cellspacing / cellpadding set for the infobox-class table with which the sidebar is built.
|navbar=  (or |tnavbar=)
Set to "off", "none", etc. (without quotes) to remove the {{thanh điều hướng}} links (X · T · S) that otherwise appear at the bottom of the sidebar.
|navbarfontstyle=
  (or |tnavbarfontstyle=)
Use to specify the font style used by the navbar at the bottom of the sidebar (see {{thanh điều hướng}} for options available).

Xử lý các liên kết dài

sửa

{{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.

Đang nhúng

sửa

One sidebar template can be embedded into another using the |child= parameter. This feature can be used to create a modular sidebar, or to create more well-defined and logical sections.

Top-level title
First subsection
Heading 1.1
Content 1.1
Second subsection
Heading 2.1
Content 2.1
"below" text
{{Sidebar
| title = Top-level title
| content1 =
 {{Sidebar |child=yes
  | title = First subsection
  | heading1 = Heading 1.1
  | content1 = Content 1.1
 }}
| content2 =
 {{Sidebar |child=yes
  | title = Second subsection
  | heading1 = Heading 2.1
  | content1 = Content 2.1
 }}
| below = "below" text
}}

Note in the examples above that the child sidebar is placed in a content field, not a heading field. Notice also that the section subheadings do not appear in bold if this is not explicitly specified. To obtain bold section headings, move the titles to the heading field, using

Top-level title
First subsection
Heading 1.1
Content 1.1
Second subsection
Heading 2.1
Content 2.1
"below" text
{{Sidebar
| title = Top-level title
| heading1 = First subsection
| content1 = 
 {{Sidebar |child=yes
  | heading1 = Heading 1.1
  | content1 = Content 1.1
 }}
| heading2 = Second subsection
| content2 = 
 {{Sidebar |child=yes
  | heading1 = Heading 2.1
  | content1 = Content 2.1
 }}
| below = "below" text
}}

Cú pháp trống đầy đủ

sửa
{{{outertitle}}}
{{{topimage}}}
{{{pretitle}}}
{{{title}}}
{{{image}}}
{{{caption}}}
{{{above}}}
{{{heading1}}}
{{{content1}}}
{{{heading2}}}
{{{content2}}}
{{{heading3}}}
{{{content3}}}
…… etc ……
{{{heading35}}}
{{{content35}}}
{{{below}}}

(omitting heading4/content4 to penultimate heading/content parameters)

{{Sidebar
| name = {{thế:PAGENAME}}
| class =            <!-- hoặc: | bodyclass = -->
| style =            <!-- hoặc: | bodystyle = -->
| width = 
| cellspacing = 
| cellpadding = 
| wraplinks =        <!-- "true" otherwise (default:) omit -->

| outertitleclass = 
| outertitlestyle = 
| outertitle = 

| topimageclass = 
| topimagestyle = 
| topimage = 
| topcaptionstyle = 
| topcaption = 

| pretitleclass = 
| pretitlestyle = 
| pretitle = 

| titleclass = 
| title = 

| imageclass = 
| imagestyle = 
| image = 
| captionstyle = 
| caption = 

| headingclass = 
| headingstyle = 
| contentclass = 
| contentstyle = 

| aboveclass = 
| abovestyle = 
| above = 

| heading1style = 
| heading1 = 
| content1style = 
| content1 = 

| heading2style = 
| heading2 = 
| content2style = 
| content2 = 

| heading3style = 
| heading3 = 
| content3style = 
| content3 = 

<!-- etc, to: -->

| heading35style = 
| heading35 = 
| content35style = 
| content35 = 

| belowclass = 
| belowstyle = 
| below = 

| navbarstyle =      <!-- hoặc: | tnavbarstyle = -->
| navbarfontstyle =  <!-- hoặc: | tnavbarfontstyle = -->
| navbar =           <!-- hoặc: | tnavbar = --> <!-- "off", "none", etc otherwise (default:) omit -->

}}

Tài liệu bổ sung

sửa

Supplementary related documentation (concerning {{thanh điều hướng}} use within a sidebar) is at Bản mẫu:Thanh điều hướng/doc.

Thể loại theo dõi

sửa
  • Thể loại:Trang sử dụng thanh bên có tham số con (1)

Xem thêm

sửa
  • Last pre-Lua version
  • {{Sidebar with collapsible lists}}
  • {{Hộp thông tin}}
  • Wikipedia:UBLIST, for help using unbulleted lists within content.
Tài liệu bên trên được truyền tải từ Bản mẫu:Thanh bên/doc. (sửa | lịch sử)
Biên tập viên sửa đổi có thể thử nghiệm trong các trang chỗ thử (tạo | sao) và trường hợp kiểm thử (tạo) của bản mẫu này.
Xin hãy bổ sung các thể loại vào trang con /doc. Các trang con của bản mẫu này.
Lấy từ “https://vi.wikipedia.org/w/index.php?title=Bản_mẫu:Thanh_bên&oldid=50164788”
Sửa đổi lần cuối lúc 19:22 vào ngày 5 tháng 3 năm 2019

Ngôn ngữ

    • Afrikaans
    • अंगिका
    • Аԥсшәа
    • العربية
    • ܐܪܡܝܐ
    • Արեւմտահայերէն
    • অসমীয়া
    • Asturianu
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Bahasa Indonesia
    • Bahasa Melayu
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gú
    • Башҡортса
    • Беларуская
    • Беларуская (тарашкевіца)
    • Madhurâ
    • भोजपुरी
    • Bosanski
    • Български
    • Català
    • Cebuano
    • Čeština
    • Chi-Chewa
    • Corsu
    • Cymraeg
    • Dansk
    • الدارجة
    • Deutsch
    • डोटेली
    • Eesti
    • Ελληνικά
    • English
    • Эрзянь
    • Español
    • Esperanto
    • Euskara
    • فارسی
    • Fiji Hindi
    • Føroyskt
    • Français
    • Gaeilge
    • Galego
    • ГӀалгӀай
    • 贛語
    • ગુજરાતી
    • गोंयची कोंकणी / Gõychi Konknni
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • Հայերեն
    • हिन्दी
    • Hrvatski
    • Ido
    • Ilokano
    • Ирон
    • Íslenska
    • Jawa
    • ಕನ್ನಡ
    • ქართული
    • Қазақша
    • Кыргызча
    • Kurdî
    • Ladin
    • Ladino
    • ລາວ
    • Latviešu
    • Lëtzebuergesch
    • Lietuvių
    • Magyar
    • Македонски
    • Malagasy
    • മലയാളം
    • Māori
    • मराठी
    • مصرى
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Мокшень
    • Монгол
    • မြန်မာဘာသာ
    • Nederlands
    • नेपाली
    • नेपाल भाषा
    • 日本語
    • Нохчийн
    • Norsk bokmål
    • Occitan
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • पालि
    • ပအိုဝ်ႏဘာႏသာႏ
    • Papiamentu
    • پښتو
    • ភាសាខ្មែរ
    • တႆး
    • ဘာသာမန်
    • Português
    • Qaraqalpaqsha
    • Română
    • Русиньскый
    • Русский
    • Саха тыла
    • संस्कृतम्
    • Scots
    • Shqip
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenčina
    • Slovenščina
    • Soomaaliga
    • کوردی
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Suomi
    • Svenska
    • Tagalog
    • தமிழ்
    • Татарча / tatarça
    • ไทย
    • Тоҷикӣ
    • ತುಳು
    • Українська
    • اردو
    • Vèneto
    • 吴语
    • Yorùbá
    • 粵語
    • Zazaki
    • 中文
    • Batak Toba
    • Bajau Sama
    • Kumoring
    • ꠍꠤꠟꠐꠤ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • Trang này được sửa đổi lần cuối vào ngày 5 tháng 3 năm 2019, 19:22.
    • Nội dung được phát hành theo CC BY-SA 4.0, ngoại trừ khi có ghi chú khác.
    • Quy định quyền riêng tư
    • Giới thiệu Wikipedia
    • Lời phủ nhận
    • Bộ Quy tắc Ứng xử Chung
    • Lập trình viên
    • Thống kê
    • Tuyên bố về cookie
    • Điều khoản sử dụng
    • Phiên bản máy tính