Шаблон:Страничен панел

[редактиране] [почистване] Документация
For the previous Template:Sidebar,
use <div class="infobox" style="width:20em;">......</div>.
That was its code.

This template is intended as a metatemplate for sidebar templates (vertically-aligned navigation (navbox) templates usually positioned on the righthand sides of pages) in the same spirit as {{Infobox}} for infobox templates and {{Навигационен шаблон}} for navbox templates.

Currently, two preformatted versions of {{Sidebar}}Шаблон:Ndash {{Sidebar with dividers}} and {{Sidebar with heading backgrounds}}Шаблон:Ndash and one variant, {{Sidebar with collapsible lists}}, are also offered. The two preformatted versions provide layouts used by the majority of sidebars in Wikipedia, while {{Sidebar with collapsible lists}} adds collapsibility to a Sidebar's sections, i.e. the means to show or hide sections by clicking links beside their headings.

Pro forma редактиране

Parameters with infrequent use omitted.

{{Sidebar
|name         = 
|outertitle   = 
|topimage     = 
|pretitle     = 
|title        = 
|image        = 
|headingstyle = 
|contentstyle = 

|heading1 = 
|content1 = 

|heading2 = 
|content2 = 

|heading3 = 
|content3 = 

<!--etc.-->

|heading35 = 
|content35 = 

|below = 
}}

Параметри редактиране

Няма задължителни параметри освен, ако препратките от {{navbar}} ("п·б·р") трябва да се появят в долната част на страничния панел, като в този случай е необходимо да се използва параметъра name (вижте информацията за параметъра в таблицата по-долу)

Основни редактиране

Параметър Описание
name Името на страничния панел т.е. името след "Шаблон:" в името на страницата. Параметърът е задължителен, ако се използват препратките от {{navbar}} в долната част на панела (вижте описанието на navbar в дъното на таблицата).
outertitle Използва се, за да се постави заглавието на страничния панел непосредствено над самия страничен панел.
topimage Използва се, за да се постави картинка в горната част на страничния панел, т.е. над title.
Изисква се пълен уики-синтаксис (т.е. [[Файл:...]]).
За да добавите описание под картинката, използвайте topimagecaption.
pretitle Use to place a line such as "Part of the X series on" before the title.
title Използва се, за да се постави заглавие на страничния панлен в горната му част (непосредствено под topimage, ако се използва).
image Използва се, за да се постави картинка между title (ако се използва) и първия раздел.
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 Заглавието на първия раздел (ако е нужен).
content1 Съдържанието на първия раздел (задължително).
heading2 Заглавието на втория раздел (ако е нужен).
content2 Съдържанието на втория раздел (ако е нужен).
heading3 Заглавието на третия раздел (ако е нужен).
content3 Съдържанието на третия раздел (ако е нужен).
...... etc ......
heading35 Currently, the last possible section heading and/or content (if needed).
content35
navbar Установете го во "none" (без кавичките) за да премахнете препратките на {{navbar}}, в долната част на страничния панел.

Други параметри редактиране

Parameter Explanation
above Corresponds to above parameter offered by {{Навигационен шаблон}}.

class  (or bodyclass)
outertitleclass
topimageclass
titleclass
imageclass

Microformat classes for the corresponding parameters.
(classНерешеностbodyclass applies to the sidebar as a whole.)

below Use to e.g. add one or more portal links to the bottom of the template (by default in bold).

style  (or bodystyle)
outertitlestyle
topimagestyle
topcaptionstyle
pretitlestyle
titlestyle
imagestyle
captionstyle
belowstyle
navbarstyle

Use to alter default CSS styling for the corresponding parameters.
(styleНерешеностbodystyle applies to the sidebar as a whole.)

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 редактиране

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

Full blank syntax редактиране

(omitting sections 4 to penultimate)

{{Sidebar
|name  = 
|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 = 
}}

Вижте също редактиране