Difference between revisions of "Template:FlipBox"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+cat; +documentation;)
m (*replace 'Parameter Row' and 'ParameterRow' by 'Parameter row';)
Line 3: Line 3:
  
 
{{Parameter Table|name=both|parameters=
 
{{Parameter Table|name=both|parameters=
{{ParameterRow|title|Title}}
+
{{Parameter row|title|Title}}
{{ParameterRow|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.}}
{{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}}
+
{{Parameter row|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>}}
+
{{Parameter row|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>}}
+
{{Parameter row|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}}
+
{{Parameter row|width|Width in percent.|100}}
{{ParameterRow|style-header|Separate style of header.|Not set}}
+
{{Parameter row|style-header|Separate style of header.|Not set}}
{{ParameterRow|image|Image left to the title.|Not set}}
+
{{Parameter row|image|Image left to the title.|Not set}}
{{ParameterRow|titleposition|Margin from the left of the title position in percent.|0}}
+
{{Parameter row|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>}}
+
{{Parameter row|style-content|Separate style of the content box.|3=<tt style="white-space:nowrap;">padding: 5px; padding-top: 10px;</tt>}}
 
}}
 
}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 20:49, 26 November 2014

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

Template:Parameter Table