Difference between revisions of "Template:Box"
From Kerbal Space Program Wiki
(*use newer ambox classes;) |
m (!box syntax;) |
||
Line 5: | Line 5: | ||
{{Parameter Table|name=both|parameters= | {{Parameter Table|name=both|parameters= | ||
− | {{Parameter Row|1|Small image on the left shrunk to | + | {{Parameter Row|1|Small image on the left shrunk to 40×40 pixels.|[[:File:notice.svg]]}} |
{{Parameter Row|2|Text}} | {{Parameter Row|2|Text}} | ||
− | {{Parameter Row|3|Color of the box. When transparent it does hide the border.|# | + | {{Parameter Row|3|Color of the box. When transparent it does hide the border.|<tt>#1e90ff</tt> {{ColorBox|#1e90ff}}}} |
{{Parameter Row|4|Title in bold.|None}} | {{Parameter Row|4|Title in bold.|None}} | ||
{{Parameter Row|type|Type of the box.|Not set}} | {{Parameter Row|type|Type of the box.|Not set}} | ||
Line 24: | Line 24: | ||
| Not set | | Not set | ||
| [[File:notice.svg|40px]] | | [[File:notice.svg|40px]] | ||
− | | {{ColorBox|# | + | | {{ColorBox|#1e90ff}} |
|- | |- | ||
| <tt>error</tt> | | <tt>error</tt> | ||
| [[File:Ambox warning pn.svg|40px]] | | [[File:Ambox warning pn.svg|40px]] | ||
− | | {{ColorBox|# | + | | {{ColorBox|#b22222}} |
|- | |- | ||
| <tt>warning</tt> | | <tt>warning</tt> | ||
| [[File:warning.svg|40px]] | | [[File:warning.svg|40px]] | ||
− | | {{ColorBox|# | + | | {{ColorBox|#f4c430}} |
|- | |- | ||
| <tt>editnotice</tt> or <tt>notice</tt> | | <tt>editnotice</tt> or <tt>notice</tt> | ||
| [[File:notice.svg|40px]] | | [[File:notice.svg|40px]] | ||
− | | {{ColorBox|# | + | | {{ColorBox|#bba}} |
|} | |} | ||
== Examples == | == Examples == | ||
− | {{Box|Kerbin18.png|Text|# | + | {{Box|Kerbin18.png|Text|#b22222|Title}} |
− | <nowiki>{{Box|Kerbin18.png|Text|# | + | <nowiki>{{Box|Kerbin18.png|Text|#b22222|Title}}</nowiki> |
− | {{Box| | + | {{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.}} |
− | <nowiki>{{Box| | + | <nowiki>{{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.}}</nowiki> |
− | {{Box| | + | {{Box|type=warning|Most of this page is entirely speculation based on in-game observation and should not be taken as absolute fact!}} |
− | <nowiki>{{Box| | + | <nowiki>{{Box|type=warning|Most of this page is entirely speculation based on in-game observation and should not be taken as absolute fact!}}</nowiki> |
== Additional Box templates == | == Additional Box templates == | ||
Line 59: | 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>{| class="ambox noprint" style="border-left-color: {{{3|{{#switch: {{{type|}}} | + | [[Category:Templates|Box]]</noinclude><includeonly>{| class="ambox noprint" style="border-left-color: {{{3|#{{#switch: {{{type|}}} |
− | |error= | + | |error=b22222 |
− | |warning= | + | |warning=f4c430 |
|editnotice | |editnotice | ||
− | |notice= | + | |notice=bba |
− | |#default = | + | |#default=1e90ff}}}}}" |
| class="mbox-image" | [[File:{{{1|{{#switch: {{{type|}}} | | class="mbox-image" | [[File:{{{1|{{#switch: {{{type|}}} | ||
|error=Ambox warning pn.svg | |error=Ambox warning pn.svg |
Revision as of 10:24, 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|#b22222|Title}}
{{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.}}
{{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
- {{SVG available}}
- {{Delete}}
- {{Protect}}
- {{Spoiler}}
There exists another box template named {{mbox}} which for example {{Stub}} uses.