ผลต่างระหว่างรุ่นของ "แม่แบบ:Sidebar"
ไม่มีความย่อการแก้ไข |
ลไม่มีความย่อการแก้ไข |
||
(ไม่แสดง 4 รุ่นระหว่างกลางโดยผู้ใช้ 4 คน) | |||
บรรทัด 1: | บรรทัด 1: | ||
{{#invoke:Sidebar|sidebar}}<noinclude> |
|||
{{documentation}}</noinclude> |
|||
</noinclude><table class="infobox nowraplinks {{{class|}}} {{{bodyclass|}}}" <!-- |
|||
-->style="<noinclude>width:13.0em;</noinclude> margin:0 0 1.0em 1.0em; border-spacing:0.4em 0; text-align:center; line-height:1.4em; font-size:88%; {{{style|}}} {{{bodystyle|}}}" <!-- |
|||
-->cellspacing="{{{cellspacing|0}}}" <!-- |
|||
-->cellpadding="{{{cellpadding|0}}}"><!-- |
|||
------------------------------ outertitle ------------------------------- |
|||
-->{{#if:{{{outertitle<includeonly>|</includeonly>}}} |
|||
| <caption class="{{{outertitleclass|}}}" style="padding-bottom:0.2em; font-size:145%; line-height:1.15em; font-weight:bold; {{{outertitlestyle|}}}">{{{outertitle}}}</caption><!-- |
|||
-->}}<!-- |
|||
------------------------- topimage, topcaption -------------------------- |
|||
-->{{#if:{{{topimage<includeonly>|</includeonly>}}} |
|||
| <tr><td class="{{{topimageclass|}}}" style="padding:0.4em 0; {{{topimagestyle|}}}">{{{topimage}}}<!-- |
|||
-->{{#if:{{{topcaption<includeonly>|</includeonly>}}} |<div style="padding-top:0.2em; font-size:85%; line-height:1.2em; {{{topcaptionstyle|}}}">{{{topcaption}}}</div>}}<!-- |
|||
--></td></tr>}}<!-- |
|||
--------------------------- pretitle, title ----------------------------- |
|||
-->{{#if:{{{pretitle<includeonly>|</includeonly>}}} |
|||
| <tr><td style="{{#if:{{{topimage<includeonly>|</includeonly>}}} |padding-top:0.2em; |padding-top:0.4em;}} font-size:85%; line-height:1.2em; {{{pretitlestyle|}}}">{{{pretitle}}}<!-- |
|||
--></td></tr>}}<!-- |
|||
-->{{#if:{{{title<includeonly>|</includeonly>}}} |
|||
| <tr><td class="{{{titleclass|}}}" style="padding:0.2em 0.4em 0.2em; {{#if:{{{pretitle<includeonly>|</includeonly>}}} |padding-top:0;}} font-size:145%; line-height:1.15em; font-weight:bold; {{{titlestyle|}}}">{{{title}}}<!-- |
|||
--></td></tr>}}<!-- |
|||
--------------------------- image, caption ------------------------------ |
|||
-->{{#if:{{{image<includeonly>|</includeonly>}}} |
|||
| <tr><td class="{{{imageclass|}}}" style="padding:0.2em 0 0.4em; {{{imagestyle|}}}">{{{image}}}<!-- |
|||
-->{{#if:{{{caption<includeonly>|</includeonly>}}} |<div style="padding-top:0.2em; font-size:85%; line-height:1.2em; {{{captionstyle|}}}">{{{caption}}}</div>}}<!-- |
|||
--></td></tr>}}<!-- |
|||
------------------------------- above ----------------------------------- |
|||
-->{{#if:{{{above|}}} |<tr><td style="padding:0.3em 0.4em 0.3em; font-weight:bold; {{{abovestyle|}}}">{{{above}}}<!---->}}<!-- |
|||
--------------------------- sections 1 to 4 ----------------------------- |
|||
-->{{#if:{{{heading1<includeonly>|</includeonly>}}} |
|||
|<tr><td style="padding-top:0.2em; {{#if:{{{image<includeonly>|</includeonly>}}} |padding-top:0.4em;}} font-weight:bold; {{{headingstyle|}}} {{{heading1style|}}}"><!-- |
|||
-->{{{heading1}}}<!-- |
|||
--></td></tr>}}<!-- |
|||
-->{{#if:{{{content1<includeonly>|</includeonly>}}} |
|||
|<tr><td style="{{#if:{{{heading1|{{{heading<includeonly>|</includeonly>}}}}}} | |padding-top:0.2em;}} padding-bottom:0.2em; {{{contentstyle|}}} {{{content1style|}}}"><!-- |
|||
-->{{{content1}}}<!-- |
|||
--></td></tr>}}<!-- |
|||
-->{{#if:{{{heading2<includeonly>|</includeonly>}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading2style|}}}">{{{heading2}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content2<includeonly>|</includeonly>}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content2style|}}}">{{{content2}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading3<includeonly>|</includeonly>}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading3style|}}}">{{{heading3}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content3<includeonly>|</includeonly>}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content3style|}}}">{{{content3}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading4|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading4style|}}}">{{{heading4}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content4<includeonly>|</includeonly>}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content4style|}}}">{{{content4<noinclude>|................</noinclude>}}}<!----></td></tr>}}<!-- |
|||
--------------------------- section 5 onward ---------------------------- |
|||
-->{{#if:{{{heading5|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading5style|}}}">{{{heading5}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content5|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content5style|}}}">{{{content5}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading6|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading6style|}}}">{{{heading6}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content6|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content6style|}}}">{{{content6}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading7|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading7style|}}}">{{{heading7}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content7|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content7style|}}}">{{{content7}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading8|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading8style|}}}">{{{heading8}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content8|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content8style|}}}">{{{content8}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading9|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading9style|}}}">{{{heading9}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content9|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content9style|}}}">{{{content9}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading10|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading10style|}}}">{{{heading10}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content10|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content10style|}}}">{{{content10}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading11|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading11style|}}}">{{{heading11}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content11|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content11style|}}}">{{{content11}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading12|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading12style|}}}">{{{heading12}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content12|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content12style|}}}">{{{content12}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading13|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading13style|}}}">{{{heading13}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content13|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content13style|}}}">{{{content13}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading14|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading14style|}}}">{{{heading14}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content14|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content14style|}}}">{{{content14}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading15|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading15style|}}}">{{{heading15}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content15|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content15style|}}}">{{{content15}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading16|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading16style|}}}">{{{heading16}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content16|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content16style|}}}">{{{content16}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading17|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading17style|}}}">{{{heading17}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content17|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content17style|}}}">{{{content17}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading18|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading18style|}}}">{{{heading18}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content18|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content18style|}}}">{{{content18}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading19|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading19style|}}}">{{{heading19}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content19|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content19style|}}}">{{{content19}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading20|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading20style|}}}">{{{heading20}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content20|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content20style|}}}">{{{content20}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading21|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading21style|}}}">{{{heading21}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content21|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content21style|}}}">{{{content21}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading22|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading22style|}}}">{{{heading22}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content22|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content22style|}}}">{{{content22}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading23|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading23style|}}}">{{{heading23}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content23|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content23style|}}}">{{{content23}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading24|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading24style|}}}">{{{heading24}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content24|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content24style|}}}">{{{content24}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading25|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading25style|}}}">{{{heading25}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content25|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content25style|}}}"> {{{content25}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading26|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading26style|}}}">{{{heading26}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content26|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content26style|}}}">{{{content26}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading27|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading27style|}}}">{{{heading27}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content27|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content27style|}}}">{{{content27}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading28|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading28style|}}}">{{{heading28}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content28|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content28style|}}}">{{{content28}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading29|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading29style|}}}">{{{heading29}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content29|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content29style|}}}">{{{content29}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading30|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading30style|}}}">{{{heading30}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content30|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content30style|}}}">{{{content30}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading31|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading31style|}}}">{{{heading31}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content31|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content31style|}}}">{{{content31}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading32|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading32style|}}}">{{{heading32}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content32|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content32style|}}}">{{{content32}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading33|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading33style|}}}">{{{heading33}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content33|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content33style|}}}">{{{content33}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{heading34|}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading34style|}}}">{{{heading34}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content34|}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content34style|}}}">{{{content34}}}<!----></td></tr>}}<!-- |
|||
---------------------------- final section ------------------------------ |
|||
-->{{#if:{{{heading35<includeonly>|</includeonly>}}} |<tr><td style="padding-top:0.2em; font-weight:bold; {{{headingstyle|}}} {{{heading35style|}}}">{{{heading35}}}<!----></td></tr>}}<!-- |
|||
-->{{#if:{{{content35<includeonly>|</includeonly>}}} |<tr><td style="padding-bottom:0.2em; {{{contentstyle|}}} {{{content35style|}}}">{{{content35}}}<!----></td></tr>}}<!-- |
|||
-------------------------------- below ---------------------------------- |
|||
-->{{#if:{{{below<includeonly>|</includeonly>}}} |<tr><td style="padding:0.3em 0.4em 0.3em; font-weight:bold; {{{belowstyle|}}}">{{{below}}}<!----></td></tr>}}<!-- |
|||
------------------------------- tnavbar --------------------------------- |
|||
-->{{#switch:{{{tnavbar<includeonly>|</includeonly>}}} |
|||
|none |off= |
|||
|#default=<tr><td style="{{{tnavbarstyle|}}}">{{navbar |{{{name|{{PAGENAME}}}}} |mini=1 |{{{tnavbaroptions|}}}<!---->}}</td></tr><!-- |
|||
-->}} |
|||
</table><noinclude> |
|||
{{end sidebar page}} |
|||
<!--- |
|||
Please add metadata (categories, interwikis) to the <includeonly> |
|||
section at the bottom of Template:Sidebar/doc, not here - thanks! |
|||
----> |
|||
[[en:Template:Sidebar]] |
|||
[[หมวดหมู่:แม่แบบโครงการพี่น้อง|Sidebar]] |
|||
</noinclude> |
รุ่นแก้ไขปัจจุบันเมื่อ 13:38, 9 กุมภาพันธ์ 2565
มีการใช้แม่แบบนี้ประมาณ 1,300 หน้าและการแก้ไขอาจทำให้เกิดผลกระทบหรือสังเกตเห็นได้ ควรทดสอบการเปลี่ยนแปลงในกระบะทราย หรือหน้าทดสอบ หรือในหน้าย่อยผู้ใช้ของคุณเอง อนึ่ง อภิปรายเกี่ยวกับการแก้ไขแม่แบบได้ที่หน้าอภิปรายก่อนที่จะนำไปใช้ |
แม่แบบนี้จะไม่แสดงในมุมมองอุปกรณ์เคลื่อนที่ของวิกิพีเดีย แต่จะแสดงในมุมมองคอมพิวเตอร์ตั้งโต๊ะเท่านั้น อ่านเอกสารกำกับสำหรับคำอธิบาย |
เอกสารประกอบแม่แบบนี้ ขาดหายไป ไม่เพียงพอ หรืออธิบายฟังก์ชันการทำงานและ/หรือพารามิเตอร์ในโค้ดไม่ถูกต้อง โปรดช่วยขยายความและปรับปรุง |
แม่แบบนี้ใช้ลูอา |
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 {{Sidebar}} that adds collapsibility to its sections, i.e. the means to show or hide sections by clicking links beside their headings.
Note that MOS:LEAD discourages the placement of sidebars in the lead section of articles.
การใช้งาน[แก้]
{{{topimage}}} |
{{{pretitle}}} |
{{{title}}} |
---|
{{{image}}} |
{{{above}}} |
{{{heading1}}} |
{{{content1}}} |
{{{heading2}}} |
{{{content2}}} |
{{{heading3}}} |
{{{content3}}} |
…… etc …… |
{{{below}}} |
{{Sidebar | name = {{subst:PAGENAME}} | class = | wraplinks = <!-- "true" otherwise (default:) omit --> | float = | templatestyles = | child templatestyles = | grandchild templatestyles = | outertitleclass = | outertitle = | topimageclass = | topimage = | topcaption = | pretitleclass = | pretitle = | titleclass = | title = | imageclass = | image = | caption = | headingclass = | contentclass = | aboveclass = | above = | heading1 = | heading1class = | content1 = | content1class = | heading2 = | heading2class = | content2 = | content2class = | heading3 = | heading3class = | content3 = | content3class = <!-- (omitting infinite heading/content parameters) --> | belowclass = | below = | navbar = }}
Note that Wikipedia:Manual of Style/Lead section § Elements discourages the placement of sidebars in the lead section of articles, though they may be included on a case-by-case basis.
Parameters[แก้]
No parameters are required unless {{navbar}} links ("v·d·e") are to appear at the bottom of the sidebar, in which case the parameter name is needed (see entry in the table immediately below).
Principal[แก้]
Parameter | Explanation |
---|---|
name | The sidebar's name, i.e. the name following "Template:" in the page's name. Required for the {{navbar}} links at the bottom of the sidebar to function correctly, unless these are omitted (see navbar at the bottom of this table). It is recommended to use {{subst:PAGENAME}} for this field. |
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 any title included. Full wikisyntax expected (i.e. [[Image:...]] ).To add a caption below the image, use topimagecaption. |
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 (immediately below the topimage, if used). |
image | Use to place an image between the title (if used) and first section. As with topimage, full wikisyntax expected (i.e. [[Image:...]] ).To add a caption below the image, use imagecaption. |
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 | First section's heading (if needed). |
content1 | First section's content (required). |
heading2 | Second section's heading (if needed). |
content2 | Second section's content (if needed). |
heading3 | Third section's heading (if needed). |
content3 | Third section's content (if needed). |
...... etc ...... | |
heading35 | Currently, the last possible section heading and/or content (if needed). |
content35 | |
navbar | Set to "none" (without the quotes) to remove the {{navbar}} links appearing at the bottom of the sidebar. |
Other parameters[แก้]
Parameter | Explanation |
---|---|
above | Corresponds to above parameter offered by {{Navbox}}. |
class (or bodyclass) |
Microformat classes for the corresponding parameters. |
below | Use to e.g. add one or more portal links to the bottom of the template (by default in bold). |
style (or bodystyle) |
Use to alter default CSS styling for the corresponding parameters. |
cellspacing | Use to amend the default cellspacing set for the infobox-class table with which the sidebar is built. |
cellpadding | Ditto the default cellpadding. |
navbaroptions | Use to specify more options for the navbar at the bottom of the sidebar (see {{navbar}} for options available). |
Handling long links[แก้]
{{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 becoming too wide. Use {{normalwraplink|longlinkname}}
, where longlinkname is the long link without its square brackets.
Use the wraplinks
parameter to turn link wrapping off for the whole template.
การใช้งาน[แก้]
(omitting sections 4 to penultimate)
{{Sidebar |name = {{subst:PAGENAME}} |class = <!--or bodyclass--> |style = <!--or bodystyle--> |cellspacing = |cellpadding = |sectdivider = |outertitle = |outertitleclass = |outertitlestyle = |topimage = |topimageclass = |topimagestyle = |topcaption = |topcaptionstyle = |pretitle = |pretitlestyle = |title = |titleclass = |titlestyle = |image = |imageclass = |imagestyle = |caption = |captionstyle = |abovestyle = |above = |headingstyle = |contentstyle = |heading1style = |heading1 = |content1style = |content1 = |heading2style = |heading2 = |content2style = |content2 = |heading3style = |heading3 = |content3style = |content3 = <!--etc.--> |heading35style = |heading35 = |content35style = |content35 = |belowstyle = |below = |navbar = |navbarstyle = |navbaroptions = |wraplinks = true/false }}
หมวดหมู่ติดตาม[แก้]
- หมวดหมู่:Pages using sidebar with the child parameter (0)
- หมวดหมู่:Sidebars with styles needing conversion (235)
ดูเพิ่ม[แก้]
- {{Sidebar with collapsible lists}}
- {{กล่องข้อมูล}}
- {{Side box}}
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Sidebar/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (แก้ | ดูความแตกต่าง) และชุดทดสอบ (แก้) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |