Template:Showhide/End

From Starfield Wiki
Jump to: navigation, search
Due to the sensitive nature of this template and the fact that it is used on a large number of pages, it has been semi-protected to prevent site-wide damage by vandal bots.
Editors: In order to minimize the impact on our servers, please use sandboxes to make and test changes to widely used templates before deployment.
For more information, please see this article's talk page.

Summary[edit]

Hides lengthy or sensitive text and displays a link to show or hide it on-demand.

This template was originally copied from Wikipedia.

Parameters[edit]

Showhide
Parameter Scope Description
1 or
title or
header (deprecated)
required The header text to display; always visible.
2 or
content
required for simple form The content to hide. For more complex content such as tables, use {{Showhide/Start}} and {{Showhide/End}} around the text you wish to hide and do not include this parameter.
expanded optional If set to non-blank, the text will start expanded rather than collapsed.
Formatting
The formatting parameters below correspond to their similarly-named CSS equivalents.
bodystyle optional Additional CSS styles to be applied to the body text.
border optional Border color (or full CSS style) to be applied to the entire area.
class optional Additional CSS class to be applied to the entire area.
contentalign or
ta2 (deprecated)
optional The text alignment for the body (values: as above, default "left").
contentbg or
bg2 (deprecated)
optional The background color for the body (default "transparent").
contentfw or
fw2 (deprecated)
optional The font weight for the body (default "normal").
float optional The location of the show/hide link (values: left/right, default "right").
style optional Additional CSS styling to be applied to the entire area.
titlealign or
ta1 (deprecated)
optional The text alignment for the heading (values: left/right/center/justify, default "center").
titlebg or
bg1 (deprecated)
optional The background color for the heading (default "transparent").
titlefw or
fw1 (deprecated)
optional The font weight for the heading (default "bold").
titlestyle optional Additional CSS styling to be applied to the title.
width optional The CSS width of the entire area (with units).

Examples[edit]

{{Showhide|Sample Paragraph|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}
Sample Paragraph
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{Showhide|Sample Paragraph (starts expanded)|expanded=1|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}
Sample Paragraph (starts expanded)
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{Showhide/Start|Sample Table}}
{| class=wikitable
|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|}
{{Showhide/End}}
Sample Table
Sample Paragraph
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

This page uses material from the UESP article "Template:Showhide".