10,323
次編輯
變更
小
文本替换 - 替换“Wikipedia”为“{{SITENAME}}”
{{about|the vertical navigation template|the horizontal template|Template:Navbox|the left sidebar of the interface|mw:Manual:Interface/Sidebar{{!}}the article in the Mediawiki Manual}}
This template is a [[wikt:Metatemplate|metatemplate]] for the creation of sidebar templates, i.e. boxes that are [[Vertical direction|vertically]]-aligned [[Wikipedia{{SITENAME}}:Navigation template|navigation templates]]. Sidebars, like [[Wikipedia{{SITENAME}}:Manual of Style/Infoboxes|infoboxes]], are usually positioned on the right-hand side of a page.
{{tl|Sidebar with collapsible lists}} is a version of {{tl|Sidebar}} that adds collapsibility to its sections, i.e. the means to show or hide sections by clicking links beside their headings.
== Parameters ==
No parameters are mandatory, but if the {{small|{{smallcaps|V{{dot}}T{{dot}}E}}}} {{tl|navbar}} links along the bottom of a {{tlf|Sidebar}} are to function correctly (unless their appearance is suppressed; see the ''navbar'' parameter [[#Other parameters|below]]), the parameter ''name'' needs to be set (to [[Wikipedia{{SITENAME}}:Page name|the name of]] the sidebar's page). (This does not apply if the [[Lua (programming language)|Lua module]] that produces {{tlf|Sidebar}}, [[Module:Sidebar]], is being used directly.)
===Principal parameters===
*{{para|belowclass}}
|style="padding-left:0.5em;"|
[[Wikipedia{{SITENAME}}:WikiProject Microformats#What are microformats?|Microformat]] classes for the corresponding parameters. <br />({{para|class}} and {{para|bodyclass}} are applied across the whole sidebar.)
|-
| {{para|below}}
* {{tl|Sidebar with collapsible lists}}
* {{tl|Infobox}}
* [[Wikipedia{{SITENAME}}:UBLIST]], for help using unbulleted lists within content.
<includeonly>
{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}} |
[[Category:Sidebar templates| ]]
[[Category:Wikipedia {{SITENAME}} metatemplates]]
[[Category:Navigational boxes| ]]
[[Category:Exclude in print]]
}}
</includeonly>