Template:Hidden begin/doc
This is a documentation subpage for Template:Hidden begin It may contain usage information, categories and other content that is not part of the original template page. |
Script error: No such module "Uses TemplateStyles".
Template:Collapse Templates Template:Used in system
Do not use this template to hide content in articles. This violates the WP:Manual of Style § Scrolling lists and collapsible content and WP:Accessibility guidelines. This template is intended for use in pages in namespaces other than the article namespace.
Note: This template does not hide anything for mobile users (phab:T111565).
Syntax[edit source]
<syntaxhighlight lang="wikitext" style="overflow:auto;">
</syntaxhighlight>
Template data[edit source]
Script error: No such module "Template translation".
This template creates a dynamic navigation box which is initially collapsed by default.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Show / Hide | showhide toggle | Set to "left" (without speechmarks) to switch the [show/hide] link's position from the righthand end of the titlebar (default) to the left.
| String | optional |
Expanded | expanded | Set to any value ("true", "yes", etc.) to switch the hidden section's initial state from collapsed (hidden) to expanded (visible).
| String | optional |
Class | class | Add additional class attributes affecting the entire template. | String | optional |
Width | width | Specify a width for the template.
| String | optional |
Border | border | Add a border to the template
| String | optional |
Background color | bgcolor | Specify the background color for the template.
| String | optional |
Style | style | Add additional style attributes affecting the entire template.
| String | optional |
Title text align | ta1 | Specify the text-align property for the title.
| String | optional |
Title background color | titlebgcolor | Specify the background color for the title.
| String | optional |
Title style | titlestyle | Add additional style attributes affecting the title.
| String | optional |
Title | title header | Text shown in titlebar. | String | optional |
Content text align | ta2 | Specify the text-align property for the content.
| String | optional |
Content background color | contentbgcolor | Specify the background color for the content .
| String | optional |
Content style | contentstyle bodystyle | Add additional style attributes affecting the content.
| String | optional |
Examples[edit source]
The following are examples with commonly used parameters
Example 1[edit source]
<syntaxhighlight lang="wikitext" style="overflow:auto;">
- Example text 1
- Example text 2
</syntaxhighlight>
- Example text 1
- Example text 2
Example 2[edit source]
<syntaxhighlight lang="wikitext" style="overflow:auto;">
- Example text 1
- Example text 2
</syntaxhighlight>
- Example text 1
- Example text 2
Example 3[edit source]
<syntaxhighlight lang="wikitext" style="overflow:auto;">
- Example text 1
- Example text 2
</syntaxhighlight>
- Example text 1
- Example text 2
Example 4[edit source]
<syntaxhighlight lang="wikitext" style="overflow:auto;">
- Example text 1
- Example text 2
</syntaxhighlight>
- Example text 1
- Example text 2
Example 5[edit source]
<syntaxhighlight lang="wikitext" style="overflow:auto;">
- Example text 1
- Example text 2
</syntaxhighlight>
- Example text 1
- Example text 2
Example 6[edit source]
<syntaxhighlight lang="wikitext" style="overflow:auto;">
- Example text 1
- Example text 2
</syntaxhighlight>
- Example text 1
- Example text 2
See also[edit source]
- {{Hidden }}