Difference between revisions of "Template:FlipBox"
From Kerbal Space Program Wiki
m (*replace 'Parameter Row' and 'ParameterRow' by 'Parameter row';) |
m (*renamed Parameter Table to Parameter table;) |
||
Line 2: | Line 2: | ||
{{#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. | {{#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 | + | {{Parameter table|name=both|parameters= |
{{Parameter row|title|Title}} | {{Parameter row|title|Title}} | ||
{{Parameter row|content|Content of the box. Isn't visible if {{{1}}} is set to start.}} | {{Parameter row|content|Content of the box. Isn't visible if {{{1}}} is set to start.}} |
Latest revision as of 12:02, 19 December 2014
{{{title}}}
Creates a box which could be expanded or retracted.
{{{content}}}
#/Name | Optional | Description | Default |
---|---|---|---|
title | No | Title | |
content | No | Content of the box. Isn't visible if {{{1}}} is set to start. | |
1 | Yes | Closes the box if end and only opens it with start. If not set it is closed. | Not set/Closed |
status | Yes | Is collapsed by default when hidden. | Hidden |
style | Yes | Style of surrounding box. | clear:both; padding: 5px; padding-bottom: 3px; border:1px solid #A7D7F9; background-color:#fbfbfb; width:{{{width}}}%; |
width | Yes | Width in percent. | 100 |
style-header | Yes | Separate style of header. | Not set |
image | Yes | Image left to the title. | Not set |
titleposition | Yes | Margin from the left of the title position in percent. | 0 |
style-content | Yes | Separate style of the content box. | padding: 5px; padding-top: 10px; |