Difference between revisions of "Template:Box"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Additional Box templates: +all box templates (alphabetically);)
(+info and disambig type;)
Line 21: Line 21:
 
! Color
 
! Color
 
|-
 
|-
| Not set
+
| Not set or <tt>info</tt>
 
| [[File:notice.svg|40px]]
 
| [[File:notice.svg|40px]]
 
| {{ColorBox|#1e90ff}}
 
| {{ColorBox|#1e90ff}}
Line 36: Line 36:
 
| [[File:notice.svg|40px]]
 
| [[File:notice.svg|40px]]
 
| {{ColorBox|#bba}}
 
| {{ColorBox|#bba}}
 +
|-
 +
| <tt>disambig</tt>
 +
| [[File:Disambig-dark.svg|40px]]
 +
| {{ColorBox|#1e90ff}}
 
|}
 
|}
  
Line 75: Line 79:
 
|editnotice
 
|editnotice
 
|notice=bba
 
|notice=bba
 +
|note
 +
|disambig
 
|#default=1e90ff}}}}}"
 
|#default=1e90ff}}}}}"
 
| class="mbox-image" | {{#if: {{Booland|{{{1|}}}|{{{2|}}}}}|[[File:{{{1|}}}|40x40px|alt=|link=]]|[[File:{{#switch: {{{type|}}}
 
| class="mbox-image" | {{#if: {{Booland|{{{1|}}}|{{{2|}}}}}|[[File:{{{1|}}}|40x40px|alt=|link=]]|[[File:{{#switch: {{{type|}}}
 
|error=Ambox warning pn.svg
 
|error=Ambox warning pn.svg
 
|warning=warning.svg
 
|warning=warning.svg
 +
|disambig=Disambig-dark.svg
 
|editnotice
 
|editnotice
 
|notice
 
|notice
 +
|note
 
|#default=notice.svg}}|40x40px|alt=|link=]]}}
 
|#default=notice.svg}}|40x40px|alt=|link=]]}}
 
| class="mbox-text" | {{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}
 
| class="mbox-text" | {{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}
 
|}</includeonly>
 
|}</includeonly>

Revision as of 13:41, 22 August 2013

Description

This templates create a box with an image.

Parameters

Template:Parameter Table

It is possible to add additional rows by using {{!}} in the Text parameter. One example is {{SVG available}}.

Types

With types it is possible to predefine the image and color, although both can be changed.

Type Image Color
Not set or info Notice.svg    
error Ambox warning pn.svg    
warning Warning.svg    
editnotice or notice Notice.svg    
disambig Disambig-dark.svg    

Examples

Text
 {{Box|Kerbin18.png|Text|#b22222|Title}}
This article is currently undergoing a major expansion or revamping. However, you are free to help in the construction of this page by improving it.
 {{Box|2='''This article is currently undergoing a major expansion or revamping.''' However, you are free to help in the construction of this page by improving it.}}
Most of this page is entirely speculation based on in-game observation and should not be taken as absolute fact!
 {{Box|type=warning|Most of this page is entirely speculation based on in-game observation and should not be taken as absolute fact!}}

Additional Box templates