Халип:Бахчараб авал/Документация: Версиязда гьоркьор батӀалъиял

Контент гилдана Контент жубана
Новая страница: «{{Docpage}} <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{hatnote|This documentat...»
 
гI.-м. Bot: Replace deprecated <source> tag and "enclose" parameter; косметические изменения
Мухъ 11:
{{Template:Collapse Templates}}
 
Do not use this template to hide content in articles. This violates the [[WP:Manual of Style#Scrolling lists and collapsible content|WP:Manual of Style § Scrolling lists and collapsible content]] and [[WP:Accessibility]] guidelines. This template is intended for use in pages in [[WikipediaВикипедия:Namespaces|namespaces]] other than the article namespace.
 
== Syntax ==
 
<pre style="overflow:auto;">
Мухъ 36:
</pre>
 
=== Parameters ===
{| class="wikitable"
! Parameter || Description
Мухъ 52:
| ''title'' || Text shown in titlebar.
|-
| style="vertical-align:top;" | ''titlestyle'' || CSS styles to apply to the titlebar (e.g. {{para|titlestyle|border:1px solid lightgrey;}} to produce a border around it; {{para|titlestyle|background:''color'';}} to set its background color to [[Web colors#X11 color names|''color'']]&thinsp;; {{para|titlestyle|text-align:[center/right];}} to switch its text (''title'')'s alignment from left to center or right; etc.).
|-
| ''bg1'' || Background color for titlebar; defaults to transparent. May be overridden if ''titlestyle'' includes anything that changes the background.
Мухъ 65:
|}
 
== Examples ==
 
=== Example 1 ===
<sourcesyntaxhighlight lang="moin" style="overflow:auto;">
{{Hidden begin |title=Default example}}
* def
* ghi
{{Hidden end}}
</syntaxhighlight>
</source>
{{Hidden begin{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}} |title=Default example}}
* def
Мухъ 79:
{{Hidden end}}
 
=== Example 2 ===
<sourcesyntaxhighlight lang="moin" style="overflow:auto;">
{{Hidden begin
| titlestyle = background:pink;
Мухъ 88:
* ghi
{{Hidden end}}
</syntaxhighlight>
</source>
{{Hidden begin{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}
| titlestyle = background:pink;
Мухъ 97:
{{Hidden end}}
 
=== Example 3 ===
<sourcesyntaxhighlight lang="moin" style="overflow:auto;">
{{Hidden begin
| titlestyle = background:pink;
Мухъ 107:
* ghi
{{Hidden end}}
</syntaxhighlight>
</source>
{{Hidden begin{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}
| titlestyle = background:pink;
Мухъ 117:
{{Hidden end}}
 
=== Example 4 ===
<sourcesyntaxhighlight lang="moin" style="overflow:auto;">
{{Hidden begin
| titlestyle = background:pink; text-align:right; padding-right:3.0em;
Мухъ 126:
* watch title alignment
{{Hidden end}}
</syntaxhighlight>
</source>
{{Hidden begin{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}
| titlestyle = background:pink; text-align:right; padding-right:3.0em;
Мухъ 135:
{{Hidden end}}
 
=== Example 5 ===
<sourcesyntaxhighlight lang="moin" style="overflow:auto;">
{{Hidden begin |showhide=left |expanded=true
| titlestyle = background:palegreen;
Мухъ 144:
* ghi
{{Hidden end}}
</syntaxhighlight>
</source>
{{Hidden begin{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}} |showhide=left |expanded=true
| titlestyle = background:palegreen;
Мухъ 153:
{{Hidden end}}
 
=== Example 6 ===
<pre style="overflow:auto;">
{{Hidden begin |showhide=left
Мухъ 173:
{{Hidden end}}
 
=== Example 7 ===
<!-- This example updated to show that bg1/ta1 only affect titlebar, used ta1=right since it is non-default for titlebar and content. -->
<pre style="overflow:auto;">
Мухъ 204:
{{Hidden end}}
 
=== Example 8 ===
<sourcesyntaxhighlight lang="text" style="overflow:auto;">
{{Hidden begin
| titlestyle =
Мухъ 220:
* ghi
{{Hidden end}}
</syntaxhighlight>
</source>
{{Hidden begin{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}
| titlestyle =
Мухъ 236:
{{Hidden end}}
 
== See also ==
* {{tl|Hidden}}
 
<includeonly>{{basepage subpage
| <!-- ADD CATEGORIES BELOW THIS LINE -->
[[CategoryКатегория:Collapse templates]]
}}</includeonly>