Difference between revisions of "Template:Showhide/Doc"

The Beyond Skyrim Wiki — Hosted by UESP
Jump to: navigation, search
m (1 revision imported: templates from UESPWiki)
m (Examples)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{TemProtect}}</includeonly>
 
 
 
== Summary ==
 
== Summary ==
 
Hides lengthy or sensitive text and displays a link to show or hide it on-demand.
 
Hides lengthy or sensitive text and displays a link to show or hide it on-demand.
  
 
==Parameters==
 
==Parameters==
{{Parameters
+
{| class="wikitable"
|1 ''or''<br>header|required|The header text to display; always visible.
+
!colspan="3"| {{{template|{{BASEPAGENAME}}}}}
|2 ''or''<br>content|required for<br>simple form|The content to hide. For more complex content such as tables, use {{tl|Showhide/Start}} and {{tl|Showhide/End}} around the text you wish to hide and do not include this parameter.
+
|-
|fw1|optional|The font weight for the heading (default "bold").
+
! Parameter !! Scope !! Description
|fw2|optional|The font weight for the body (default "normal").
+
|-
|bg1|optional|The background color for the heading (default "transparent").
+
|1 ''or''<br>header||required||The header text to display; always visible.
|bg2|optional|The background color for the body (default "transparent").
+
|-
|ta1|optional|The text alignment for the heading (default "center").
+
|2 ''or''<br>content||required for<br>simple form||The content to hide. For more complex content such as tables, use {{tl|Showhide/Start}} and {{tl|Showhide/End}} around the text you wish to hide and do not include this parameter.
|ta2|optional|The text alignment for the body (default "left").}}
+
|-
 +
|fw1||optional||The font weight for the heading (default "bold").
 +
|-
 +
|fw2||optional||The font weight for the body (default "normal").
 +
|-
 +
|bg1||optional||The background color for the heading (default "transparent").
 +
|-
 +
|bg2||optional||The background color for the body (default "transparent").
 +
|-
 +
|ta1||optional||The text alignment for the heading (default "center").
 +
|-
 +
|ta2||optional||The text alignment for the body (default "left").
 +
|}
  
 
== Examples ==
 
== Examples ==
{{Pre|<nowiki>{{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.}}</nowiki>}}
+
<pre>
{{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.}}
+
<nowiki>{{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.}}</nowiki>
 +
</pre>
 +
{{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.
 +
}}
  
{{Pre|<nowiki>{{Showhide/Start|Sample Paragraph}}
+
<pre><nowiki>{{Showhide/Start|Sample Paragraph}}
 
{| class=wikitable
 
{| 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.
 
|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}}</nowiki>}}
+
{{Showhide/End}}</nowiki>
 +
</pre>
 
{{Showhide/Start|Sample Paragraph}}
 
{{Showhide/Start|Sample Paragraph}}
 
{| class=wikitable width=50%
 
{| class=wikitable width=50%

Latest revision as of 15:46, 1 July 2017

Summary[edit]

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

Parameters[edit]

Showhide
Parameter Scope Description
1 or
header
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.
fw1 optional The font weight for the heading (default "bold").
fw2 optional The font weight for the body (default "normal").
bg1 optional The background color for the heading (default "transparent").
bg2 optional The background color for the body (default "transparent").
ta1 optional The text alignment for the heading (default "center").
ta2 optional The text alignment for the body (default "left").

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.}}
{{Showhide/Start|Sample Paragraph}}
{| 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}}