Template:Hidden begin
- Afrikaans
- ak:Nhwɛsode:Hidden begin
- Anarâškielâ
- Аԥсшәа
- العربية
- Արեւմտահայերէն
- Arpetan
- অসমীয়া
- Asturianu
- Авар
- Azərbaycanca
- تۆرکجه
- Basa Bali
- Bamanankan
- বাংলা
- 閩南語 / Bân-lâm-gú
- Башҡортса
- Беларуская
- Беларуская (тарашкевіца)
- भोजपुरी
- Български
- Bosanski
- Буряад
- Català
- Чӑвашла
- Cebuano
- Cymraeg
- Dansk
- الدارجة
- Dolnoserbski
- डोटेली
- Eesti
- Ελληνικά
- Эрзянь
- Esperanto
- Euskara
- Farefare
- فارسی
- Føroyskt
- Français
- Gaeilge
- Gàidhlig
- Galego
- ГӀалгӀай
- گیلکی
- ગુજરાતી
- Gungbe
- 客家語 / Hak-kâ-ngî
- 한국어
- Հայերեն
- हिन्दी
- Hornjoserbsce
- Ilokano
- Bahasa Indonesia
- Ирон
- Íslenska
- Italiano
- Jawa
- ქართული
- Kreyòl ayisyen
- Kurdî
- Кыргызча
- Ladin
- ລາວ
- Latviešu
- Лезги
- Lietuvių
- Ligure
- Magyar
- मैथिली
- Македонски
- മലയാളം
- Māori
- मराठी
- მარგალური
- مصرى
- ဘာသာမန်
- Bahasa Melayu
- 閩東語 / Mìng-dĕ̤ng-ngṳ̄
- Мокшень
- Монгол
- မြန်မာဘာသာ
- नेपाली
- 日本語
- Нохчийн
- Occitan
- ଓଡ଼ିଆ
- Oromoo
- Oʻzbekcha / ўзбекча
- ਪੰਜਾਬੀ
- Pangasinan
- پنجابی
- ပအိုဝ်ႏဘာႏသာႏ
- پښتو
- ភាសាខ្មែរ
- Picard
- Português
- Qaraqalpaqsha
- Română
- Русский
- Саха тыла
- संस्कृतम्
- Scots
- Shqip
- සිංහල
- Simple English
- سنڌي
- Slovenščina
- Soomaaliga
- کوردی
- Српски / srpski
- Srpskohrvatski / српскохрватски
- Sunda
- Svenska
- Tagalog
- தமிழ்
- Татарча / tatarça
- တႆး
- ไทย
- Тоҷикӣ
- Türkçe
- Тыва дыл
- Удмурт
- Українська
- اردو
- ئۇيغۇرچە / Uyghurche
- Vèneto
- Tiếng Việt
- 吴语
- 粵語
- 中文
- Kadazandusun
- Kumoring
- ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
Collapsible templates |
---|
Help: Collapsing Guideline: Hidden content |
Article namespace |
|
Infoboxes |
Navigation templates |
Talk namespace |
|
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.
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
{{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
TemplateData for Hidden begin
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
The following are examples with commonly used parameters
Example 1
{{Hidden begin|title=Example title}} * Example text 1 * Example text 2 {{Hidden end}}
- 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 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 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 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 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 text 1
- Example text 2
See also
- {{Hidden }}
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.