• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Hidden end

  • Template
  • Talk
  • Language
  • Watch
  • View source
Templates End hiddenTemplate:End hidden and End hidden sectionTemplate:End hidden section redirect here.
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
  • Template:Hidden begin/styles.css
This documentation is shared by {{Hidden begin}} and {{Hidden end}}.
Collapsible templates
Help:Collapsing
Guideline:Hidden content
Article namespace
  • {{collapsible list}}
  • {{hidden}}
    • {{hidden begin}}
    • {{hidden end}}
Infoboxes
  • {{collapsed infobox section begin}}
  • {{collapsed infobox section end}}
Navigation templates
  • {{sidebar with collapsible lists}}
  • {{navbox with collapsible groups}}
Talk namespace
  • {{collapse}}
    • {{collapse top}}
    • {{collapse bottom}}
  • {{collapse AI top}}
  • {{hidden archive top}}
  • {{hidden archive bottom}}
  • v
  • t
  • e
WarningThis template is used in system messages, and on approximately 374,000 pages, or roughly 1% of all pages.
Changes to it can cause immediate changes to the Wikipedia user interface.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them.

Generally, collapsible templates should not be used in articles. For allowable uses and other considerations, please see MOS:COLLAPSE.

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

{{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 used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Hidden end in articles based on its TemplateData.

TemplateData for Hidden end

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

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}}
The above documentation is transcluded from Template:Hidden begin/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Hidden_end&oldid=1127034823"
Last edited on 12 December 2022, at 14:54

Languages

    • Afrikaans
    • ak:Nhwɛsode:Hidden end
    • Anarâškielâ
    • Аԥсшәа
    • العربية
    • Արեւմտահայերէն
    • Arpetan
    • Asturianu
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • Bamanankan
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Башҡортса
    • Беларуская
    • Беларуская (тарашкевіца)
    • Български
    • Bosanski
    • Буряад
    • Català
    • Чӑвашла
    • Cebuano
    • Dansk
    • الدارجة
    • Dolnoserbski
    • डोटेली
    • Eesti
    • Ελληνικά
    • Эрзянь
    • Esperanto
    • Euskara
    • Farefare
    • فارسی
    • Føroyskt
    • Français
    • Gaeilge
    • Gàidhlig
    • Galego
    • ГӀалгӀай
    • گیلکی
    • ગુજરાતી
    • Gungbe
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • Հայերեն
    • हिन्दी
    • Hornjoserbsce
    • Hrvatski
    • Ilokano
    • Bahasa Indonesia
    • Ирон
    • Íslenska
    • Italiano
    • Jawa
    • ಕನ್ನಡ
    • ქართული
    • Kreyòl ayisyen
    • Кыргызча
    • Ladin
    • Latviešu
    • Magyar
    • मैथिली
    • Македонски
    • Māori
    • मराठी
    • მარგალური
    • مصرى
    • ဘာသာမန်
    • Bahasa Melayu
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Мокшень
    • Монгол
    • မြန်မာဘာသာ
    • नेपाली
    • 日本語
    • Нохчийн
    • Occitan
    • ଓଡ଼ିଆ
    • Oromoo
    • ਪੰਜਾਬੀ
    • Pangasinan
    • پنجابی
    • ပအိုဝ်ႏဘာႏသာႏ
    • پښتو
    • ភាសាខ្មែរ
    • Picard
    • Português
    • Română
    • Русский
    • Саха тыла
    • संस्कृतम्
    • Scots
    • Sesotho sa Leboa
    • Shqip
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenščina
    • Soomaaliga
    • کوردی
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Sunda
    • Svenska
    • Tagalog
    • தமிழ்
    • Татарча / tatarça
    • တႆး
    • తెలుగు
    • ไทย
    • Тоҷикӣ
    • Türkçe
    • Тыва дыл
    • Удмурт
    • Українська
    • اردو
    • ئۇيغۇرچە / Uyghurche
    • Vèneto
    • Tiếng Việt
    • 吴语
    • Yorùbá
    • 粵語
    • Zazaki
    • 中文
    • Kadazandusun
    • Kumoring
    • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 12 December 2022, at 14:54 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop