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.

Template:Expandable content/doc

From The Vault - Fallout Wiki
Jump to: navigation, search
Icon template doc.svg
This page contains usage information for Template:Expandable content.

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...]