Difference between revisions of "Template:Box"
From Kerbal Space Program Wiki
(+type;) |
(*use newer ambox classes;) |
||
Line 23: | Line 23: | ||
|- | |- | ||
| Not set | | Not set | ||
− | | [[File:notice.svg| | + | | [[File:notice.svg|40px]] |
| {{ColorBox|#c8ff96}} | | {{ColorBox|#c8ff96}} | ||
+ | |- | ||
+ | | <tt>error</tt> | ||
+ | | [[File:Ambox warning pn.svg|40px]] | ||
+ | | {{ColorBox|#ffcccc}} | ||
|- | |- | ||
| <tt>warning</tt> | | <tt>warning</tt> | ||
− | | [[File:warning.svg| | + | | [[File:warning.svg|40px]] |
| {{ColorBox|#ffdf80}} | | {{ColorBox|#ffdf80}} | ||
|- | |- | ||
| <tt>editnotice</tt> or <tt>notice</tt> | | <tt>editnotice</tt> or <tt>notice</tt> | ||
− | | [[File:notice.svg| | + | | [[File:notice.svg|40px]] |
| {{ColorBox|#f6f6f6}} | | {{ColorBox|#f6f6f6}} | ||
|} | |} | ||
Line 55: | Line 59: | ||
There exists another box template named {{Tl|mbox}} which for example {{Tl|Stub}} uses. | There exists another box template named {{Tl|mbox}} which for example {{Tl|Stub}} uses. | ||
− | [[Category:Templates|Box]]</noinclude><includeonly> | + | [[Category:Templates|Box]]</noinclude><includeonly>{| class="ambox noprint" style="border-left-color: {{{3|{{#switch: {{{type|}}} |
+ | |error=#ffcccc | ||
|warning=#ffdf80 | |warning=#ffdf80 | ||
|editnotice | |editnotice | ||
|notice=#f6f6f6 | |notice=#f6f6f6 | ||
− | |#default = #C8FF96}}}}} | + | |#default = #C8FF96}}}}}" |
− | + | | class="mbox-image" | [[File:{{{1|{{#switch: {{{type|}}} | |
− | + | |error=Ambox warning pn.svg | |
|warning=warning.svg | |warning=warning.svg | ||
|editnotice | |editnotice | ||
|notice | |notice | ||
− | |#default=notice.svg}}}}}| | + | |#default=notice.svg}}}}}|40x40px|alt=|link=]] |
− | + | | class="mbox-text" | {{{2}}} | |
− | + | |}</includeonly> | |
− | |||
− | |||
− | |} | ||
− |
Revision as of 10:09, 18 August 2013
Description
This templates create a box with an image.
Parameters
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 | ||
error | ||
warning | ||
editnotice or notice |
Examples
{{Box|Kerbin18.png|Text|#FFCCCC|Title}}
{{Box|notice.svg|'''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.|#aaaaff|}}
{{Box|Warning.svg|Most of this page is entirely speculation based on in-game observation and should not be taken as absolute fact!|#ffdf80}}
Additional Box templates
- {{SVG available}}
- {{Delete}}
- {{Protect}}
- {{Spoiler}}
There exists another box template named {{mbox}} which for example {{Stub}} uses.