Toggle menu
14
236
69
27.5K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Show begin/doc: Difference between revisions

Template page
Template:Show begin/doc
Created page with "{{Documentation subpage}} {{tlr|Show begin}} <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> This template is for use when you wish to minimise information to be expanded at the user's discretion. Use sparingly, it does not work on mobile. For reduced post-expand include size, the 2nd numbered parameter (content) is optional. If omitted, {{tl|show end}} should be used following the content text. ==Usage== ===..."
 
Changed redirect target from Template:Show to Template:Show/doc
Tag: Redirect target changed
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
#REDIRECT [[Template:Show/doc]]
{{tlr|Show begin}}
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
This template is for use when you wish to minimise information to be expanded at the user's discretion. Use sparingly, it does not work on mobile. For reduced [[WP:PEIS|post-expand include size]], the 2nd numbered parameter (content) is optional. If omitted, {{tl|show end}} should be used following the content text.
 
==Usage==
 
=== Unnamed parameters ===
<syntaxhighlight lang="wikitext">
{{show
|Header!
|Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
}}
</syntaxhighlight>
 
''Output'':
{{show
|Header!
|Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
}}
 
=== Numbered parameters ===
<syntaxhighlight lang="wikitext">
{{show
|1=Header!
|2=Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
}}
</syntaxhighlight>
 
''Output'':
{{show
|1=Header!
|2=Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
}}
 
=== Use with "Show end" ===
<syntaxhighlight lang="wikitext">
{{show
|Header!}}
Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
{{show end}}
</syntaxhighlight>
 
''Output'':
{{show
|Header!}}
Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
{{show end}}
 
=== Alignment parameters ===
The horizontal alignment of the header text and content text can be manipulated using the parameters {{para|head-align}} and {{para|content-align}}. Valid options are <code>left</code> (default), <code>center</code>, or <code>right</code>. Do not use quotes (i.e. not <code>"center"</code>) or the color of the header may change.  Also, while {{para|head-align|right}} is possible, it causes the header to overlap with the [show] button.
 
<syntaxhighlight lang="wikitext">
{{show
|head-align = center
|content-align = right
|1 = Header!
|2 = Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
}}
</syntaxhighlight>
 
''Output'':
{{show
|head-align = center
|content-align = right
|1 = Header!
|2 = Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
}}
 
=== Style parameters ===
The default [[Cascading Style Sheets|CSS]] styling may be changed using the parameters {{para|frame-style}}, {{para|head-style}}, and {{para|content-style}}.
 
<syntaxhighlight lang="wikitext">
{{show
|frame-style = border: 1px solid silver; padding: 0.3em;
|head-style = background-color: #AADDAA; text-align: center;
|content-style = background-color: #CCFFCC; text-align: right;
|1 = Header!
|2 = Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
}}
</syntaxhighlight>
 
''Output'':
{{show
|frame-style = border: 1px solid silver; padding: 0.3em;
|head-style = background-color: #AADDAA; text-align: center;
|content-style = background-color: #CCFFCC; text-align: right;
|1 = Header!
|2 = Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
}}
 
=== Usage in a table ===
{{Show/Table usage}}
 
== See also ==
* {{tl|Collapse}}
* {{tl|Divhide}}
* {{tl|Hidden}}
 
<includeonly>{{sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Collapse templates]]
}}</includeonly>

Latest revision as of 05:44, 17 February 2025

Redirect to: