Difference between revisions of "Template:FlipBox"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+cat; +documentation;)
Line 1: Line 1:
 
{{#ifeq:{{uc:{{{1|}}}}}|END|</div></div>|<div class="mw-collapsible {{#ifeq:{{uc:{{{status|HIDDEN}}}}}|HIDDEN|mw-collapsed|}}" style="{{{style|clear:both; padding: 5px; padding-bottom: 3px; border:1px solid #A7D7F9; background-color:#fbfbfb; width:{{{width|100}}}%;}}};">
 
{{#ifeq:{{uc:{{{1|}}}}}|END|</div></div>|<div class="mw-collapsible {{#ifeq:{{uc:{{{status|HIDDEN}}}}}|HIDDEN|mw-collapsed|}}" style="{{{style|clear:both; padding: 5px; padding-bottom: 3px; border:1px solid #A7D7F9; background-color:#fbfbfb; width:{{{width|100}}}%;}}};">
{{#if: {{{style-header|}}}|<div style="{{{style-header}}}">}}{{#if: {{{image|}}}|<span style="position: static; overflow: hidden; white-space: nowrap; padding-bottom: 10px;">[[File:{{{image}}}|{{{imagewidth|20}}}px|link=]]</span>}}<span vertical-align="text-bottom" style="margin-left:{{{titleposition|0}}}%;">{{{title}}}</span>{{#if: {{{style-header|}}}|</div>}}<div class="mw-collapsible-content" style="{{{style-content|padding: 5px; padding-top: 10px;}}}">{{#ifeq:{{uc:{{{1|}}}}}|START||{{{content}}}</div></div>}}}}
+
{{#if: {{{style-header|}}}|<div style="{{{style-header}}}">}}{{#if: {{{image|}}}|<span style="position: static; overflow: hidden; white-space: nowrap; padding-bottom: 10px;">[[File:{{{image}}}|{{{imagewidth|20}}}px|link=]]</span>}}<span vertical-align="text-bottom" style="margin-left:{{{titleposition|0}}}%;">{{{title}}}</span>{{#if: {{{style-header|}}}|</div>}}<div class="mw-collapsible-content" style="{{{style-content|padding: 5px; padding-top: 10px;}}}">{{#ifeq:{{uc:{{{1|}}}}}|START||{{{content}}}</div></div>}}}}<noinclude>Creates a box which could be expanded or retracted.
 +
 
 +
{{Parameter Table|name=both|parameters=
 +
{{ParameterRow|title|Title}}
 +
{{ParameterRow|content|Content of the box. Isn't visible if {{{1}}} is set to start.}}
 +
{{ParameterRow|1|Closes the box if <tt>end</tt> and only opens it with <tt>start</tt>. If not set it is closed.|Not set/Closed}}
 +
{{ParameterRow|status|Is collapsed by default when <tt>hidden</tt>.|<tt>Hidden</tt>}}
 +
{{ParameterRow|style|Style of surrounding box.|3=<tt style="white-space:nowrap;">clear:both; padding: 5px; padding-bottom: 3px; border:1px solid #A7D7F9; background-color:#fbfbfb; width:{{{width}}}%;</tt>}}
 +
{{ParameterRow|width|Width in percent.|100}}
 +
{{ParameterRow|style-header|Separate style of header.|Not set}}
 +
{{ParameterRow|image|Image left to the title.|Not set}}
 +
{{ParameterRow|titleposition|Margin from the left of the title position in percent.|0}}
 +
{{ParameterRow|style-content|Separate style of the content box.|3=<tt style="white-space:nowrap;">padding: 5px; padding-top: 10px;</tt>}}
 +
}}
 +
 
 +
[[Category:Templates]]</noinclude>

Revision as of 14:47, 5 May 2013

{{{title}}}
{{{content}}}
Creates a box which could be expanded or retracted.

Template:Parameter Table