We've Moved! Just as Gamepedia has joined forces with Fandom, this wiki had joined forces with our Fandom equivalent. The wiki has been archived and we ask that readers and editors move to the now combined wiki on Fandom. Click to go to the new wiki.

We are currently performing an upgrade to our software. This upgrade will bring MediaWiki from version 1.31 to 1.33. While the upgrade is being performed on your wiki it will be in read-only mode. For more information check here.

Template:Expandable content

From The Vault - Fallout Wiki
Jump to: navigation, search
Template documentation (for the template shown above, sometimes hidden or invisible)

Template for creating an expandable contents section, that hides overflow content on page load which can be revealed on viewer's choice.

Parameters

RequiredIcon required.png
<unnamed 1>

Content that is always shown.

RequiredIcon required.png
<unnamed 2>

Content that is initially hidden and can be expanded/collapsed.

OptionalIcon optional.png
(default: "hide")
collapse text

Text that replaces the default collapse toggle.

OptionalIcon optional.png
(default: "read more...")
expand text

Text that replaces the default expand toggle.

Style parameters

All style options should be used sparingly as they can lead to visual inconsistencies.

OptionalIcon optional.png
style

Specifies CSS styles to apply to the entire content of the template.

OptionalIcon optional.png
style visible

Specifies CSS styles to apply to the visible content of the template only.

OptionalIcon optional.png
style hidden

Specifies CSS styles to apply to the hidden content of the template only.

Example

{{Expandable content|
* The quick brown fox jumps over the lazy dog
* The quick brown fox jumps over the lazy dog
|
* The quick brown fox jumps over the lazy dog
* The quick brown fox jumps over the lazy dog
}}

results in:

  • The quick brown fox jumps over the lazy dog
  • The quick brown fox jumps over the lazy dog
  • The quick brown fox jumps over the lazy dog
  • The quick brown fox jumps over the lazy dog
[read more...]
Documentation transcluded from Template:Expandable content/doc.