Template:Hidden begin/doc
From TechInfoDepot
Jump to navigationJump to search![]() | 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. |
![]() | This template uses TemplateStyles: |
![]() | This template is used in system messages. Changes to it can cause immediate changes to the TechInfoDepot user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes on the talk page before implementing them. |
Do not use this template to hide content in articles. This violates the Project:Manual of Style § Scrolling lists and collapsible content and Project: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
{{Hidden begin
| showhide = <!--"left", otherwise omit-->
| expanded = <!--"true", "on", yes", etc, otherwise omit-->
| class =
| width =
| border =
| bgcolor = <!--background color for both the title and content-->
| style =
| ta1 =
| titlebgcolor = <!--background color for the title-->
| titlestyle =
| title =
| ta2 =
| contentbgcolor = <!--background color for the content-->
| contentstyle =
}}
<!----[content to be hidden placed here]---->
{{Hidden end}}
Template data
This is the TemplateData for this template, which is used by TemplateWizard, the VisualEditor and still other tools.
TemplateData for Hidden begin
Examples
The following are examples with commonly used parameters
Example 1
{{Hidden begin|title=Example title}}
* Example text 1
* Example text 2
{{Hidden end}}
Example title
- Example text 1
- Example text 2
Example 2
{{Hidden begin|title=Example title|width=50%|border=1px solid black}}
* Example text 1
* Example text 2
{{Hidden end}}
Example title
- Example text 1
- Example text 2
Example 3
{{Hidden begin|title=Example title|bgcolor=pink|titlebgcolor=#CCF|contentbgcolor=skyblue}}
* Example text 1
* Example text 2
{{Hidden end}}
Example title
- Example text 1
- Example text 2
Example 4
{{Hidden begin|title=Example title|titlebgcolor=pink|ta1=center|ta2=right}}
* Example text 1
* Example text 2
{{Hidden end}}
Example title
- Example text 1
- Example text 2
Example 5
{{Hidden begin|title=Example title|titlebgcolor=#98FB98|showhide=left}}
* Example text 1
* Example text 2
{{Hidden end}}
Example title
- Example text 1
- Example text 2
Example 6
{{Hidden begin|title=Example title|titlebgcolor=#FFEBCD|expanded=yes}}
* Example text 1
* Example text 2
{{Hidden end}}
Example title
- Example text 1
- Example text 2
See also
- {{Hidden}}