Difference between revisions of "Template:Box"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!fixed parameter numbers;)
Line 11: Line 11:
 
{{ParameterRow|1|Small image on the left}}
 
{{ParameterRow|1|Small image on the left}}
 
{{ParameterRow|2|Text}}
 
{{ParameterRow|2|Text}}
{{ParameterRow|3|Color of the box.|#c8ff96}}
+
{{ParameterRow|3|Color of the box. When transparent it does hide the border.|#c8ff96}}
 
{{ParameterRow|4|Title in bold.|None}}
 
{{ParameterRow|4|Title in bold.|None}}
 
|}
 
|}
Line 21: Line 21:
  
  
[[Category:Templates|Box]]</noinclude><includeonly><div style="word-wrap: normal; margin: 0em 0em 0.5em; border-style: none solid solid none; padding: 0px; background-color: {{{3|#C8FF96}}}; font-size: 95%; border-color:#aaaaaa; border-width:1px;" class="noprint">
+
[[Category:Templates|Box]]</noinclude><includeonly><div style="word-wrap: normal; margin: 0em 0em 0.5em; {{#ifeq: {{{3}}}|transparent|border-style: none;|border-style: none solid solid none;}} padding: 0px; background-color: {{{3|#C8FF96}}}; font-size: 95%; border-color:#aaaaaa; border-width:1px;" class="noprint">
 
{| cellspacing="8" cellpadding="0" style="background-color: transparent;"
 
{| cellspacing="8" cellpadding="0" style="background-color: transparent;"
 
| style="vertical-align: middle; width: 32px;" | [[File:{{{1}}}|32px|link=]]
 
| style="vertical-align: middle; width: 32px;" | [[File:{{{1}}}|32px|link=]]

Revision as of 15:01, 12 March 2013

Description

This templates create a box with an image.

Parameters

Template:ParameterRowTemplate:ParameterRowTemplate:ParameterRowTemplate:ParameterRow
# Optional Description

Example

Text
 {{Box|Kerbin18.png|Text|#FFCCCC|Title}}