Template:Collapse: Difference between revisions
From MENACE Official Wiki
mNo edit summary |
No edit summary |
||
| Line 87: | Line 87: | ||
! Supply Cost | ! Supply Cost | ||
|- | |- | ||
| {{Collapse|[[File: | | {{Collapse|[[File:Weapon_05_tier1_912x318.png|center|300px]] [[BR3A3 Kr-BaR "Crowbar"]]}}|| 9 || 11 || 9 | ||
|- | |- | ||
| [[File: | | [[File:Weapon 05 tier1 mod1 912x318.png|center|300px]] [[BR3A3 Kr-BaRMOD1]]|| 10 || 12 || {{Collapse|13}} | ||
|} | |} | ||
Latest revision as of 21:39, 25 June 2026
Overview
Use this template if you want to hide a spoiler by collapsing it.
You can hide the following:
- inline text
- multiple lines (see parameters)
- single cells of tables
- images
- other templates
This template does not allow you to hide entire tables. Use the class="mw-collapsible" for tables instead. You can find more information about that here.
Parameters
| Parameter | Description | Example | |
|---|---|---|---|
1 or content |
required | Content of the spoiler | content=This is a spoiler!
|
init |
optional | Initial state of the spoiler. Default is closed. | init=open
|
type |
optional | Include this, if the content of the spoiler spans multiple lines. Default is inline. | type=block
|
expandText |
optional | Text of the expand button/link. Default is "Show Spoiler" | expandText=Show
|
collapseText |
optional | Text of the collapse button/link. Default is "Hide Spoiler" | expandText=Hide
|
Examples
To hide text inline, use:
Example text that is before the spoiler: {{Collapse|This is a spoiler!}} And an example text after the spoiler.
to get this:
Example text that is before the spoiler: This is a spoiler! And an example text after the spoiler.
To hide text over multiple lines, use the paramter type=block:
{{Collapse|type=block|
This spoiler spans multiple paragraphs.
It is really long!!!
}}
To get this:
This spoiler spans multiple paragraphs.
It is really long!!!
Change the text of the expand and collapse buttons/links like this:
{{Collapse
|SPOILER!
|expandText=Show
|collapseText=Hide
}}
To get this:
SPOILER!
You can collapse individual table cells by wrapping their contents in this template:
| Name | Range | HP Damage | Supply Cost |
|---|---|---|---|
| 9 | 11 | 9 | |
| 10 | 12 | 13 |




