• Home
  • Random
  • Recent changes
  • Special pages
  • Community portal
  • Settings
  • About Consumer Rights Wiki
  • Disclaimers
Consumer Rights Wiki
  • Talk
  • Contributions
  • Create account
  • Log in

Template:Hidden begin

  • Template
  • Discussion
  • Language
  • Watch
  • View history
  • Edit
    • What links here
    • Permanent link
    • Page information
    • Edit full page
Template documentation[view] [edit] [history] [purge]

Script error: No such module "Uses TemplateStyles".

This documentation is shared by {{Hidden begin }} and {{Hidden end }}.

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).

Contents

  • 1 Syntax
    • 1.1 Template data
  • 2 Examples
    • 2.1 Example 1
    • 2.2 Example 2
    • 2.3 Example 3
    • 2.4 Example 4
    • 2.5 Example 5
    • 2.6 Example 6
  • 3 See also

Syntax

edit

<syntaxhighlight lang="wikitext" style="overflow:auto;">

</syntaxhighlight>

Template data

edit

Script error: No such module "Template translation".

This template creates a dynamic navigation box which is initially collapsed by default.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Show / Hideshowhide 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.

Suggested values
left
Stringoptional
Expandedexpanded

Set to any value ("true", "yes", etc.) to switch the hidden section's initial state from collapsed (hidden) to expanded (visible).

Suggested values
yes true
Stringoptional
Classclass

Add additional class attributes affecting the entire template.

Stringoptional
Widthwidth

Specify a width for the template.

Default
100%
Example
width=20%
Stringoptional
Borderborder

Add a border to the template

Example
1px solid black
Stringoptional
Background colorbgcolor

Specify the background color for the template.

Example
#CCF
Stringoptional
Stylestyle

Add additional style attributes affecting the entire template.

Example
font-size:110%;
Stringoptional
Title text alignta1

Specify the text-align property for the title.

Suggested values
center right left
Default
left
Example
center
Stringoptional
Title background colortitlebgcolor

Specify the background color for the title.

Example
#CCF
Stringoptional
Title styletitlestyle

Add additional style attributes affecting the title.

Example
font-size:110%;
Stringoptional
Titletitle header

Text shown in titlebar.

Stringoptional
Content text alignta2

Specify the text-align property for the content.

Suggested values
center right left
Default
left
Example
center
Stringoptional
Content background colorcontentbgcolor

Specify the background color for the content .

Example
#CCF
Stringoptional
Content stylecontentstyle bodystyle

Add additional style attributes affecting the content.

Example
font-size:110%;
Stringoptional

Examples

edit

The following are examples with commonly used parameters

Example 1

edit

<syntaxhighlight lang="wikitext" style="overflow:auto;">

Example title
  • Example text 1
  • Example text 2

</syntaxhighlight>

Example title
  • Example text 1
  • Example text 2

Example 2

edit

<syntaxhighlight lang="wikitext" style="overflow:auto;">

Example title
  • Example text 1
  • Example text 2

</syntaxhighlight>

Example title
  • Example text 1
  • Example text 2

Example 3

edit

<syntaxhighlight lang="wikitext" style="overflow:auto;">

Example title
  • Example text 1
  • Example text 2

</syntaxhighlight>

Example title
  • Example text 1
  • Example text 2

Example 4

edit

<syntaxhighlight lang="wikitext" style="overflow:auto;">

Example title
  • Example text 1
  • Example text 2

</syntaxhighlight>

Example title
  • Example text 1
  • Example text 2

Example 5

edit

<syntaxhighlight lang="wikitext" style="overflow:auto;">

Example title
  • Example text 1
  • Example text 2

</syntaxhighlight>

Example title
  • Example text 1
  • Example text 2

Example 6

edit

<syntaxhighlight lang="wikitext" style="overflow:auto;">

Example title
  • Example text 1
  • Example text 2

</syntaxhighlight>

Example title
  • Example text 1
  • Example text 2

See also

edit
  • {{Hidden }}

Template:Basepage subpage

The above documentation is transcluded from Template:Hidden begin/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://mirror.consumerrights.wiki/index.php?title=Template:Hidden_begin&oldid=18667"
Hidden category:
  • Pages with script errors
Last edited on 13 August 2025, at 05:09

Languages

    This page is not available in other languages.

    Consumer Rights Wiki
    • Creative Commons Attribution-ShareAlike 4.0 International
    • Powered by MediaWiki
    • This page was last edited on 13 August 2025, at 05:09.
    • Content is available under Creative Commons Attribution-ShareAlike 4.0 International unless otherwise noted.
    • All submissions to the site are subject to the wiki's licence, CC 4.0 BY-SA, as found here
    • Privacy policy
    • About Consumer Rights Wiki
    • Disclaimers
    • Desktop