Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

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.