Difference between revisions of "Template:Box"
From Kerbal Space Program Wiki
m (*replace 'Parameter Row' and 'ParameterRow' by 'Parameter row';) |
m (*renamed Parameter Table to Parameter table;) |
||
Line 4: | Line 4: | ||
== Parameters == | == Parameters == | ||
− | {{Parameter | + | {{Parameter table|name=both|parameters= |
{{Parameter row|1|Small image on the left shrunk to 40×40 pixels.|[[:File:notice.svg]]}} | {{Parameter row|1|Small image on the left shrunk to 40×40 pixels.|[[:File:notice.svg]]}} | ||
{{Parameter row|2|Text, if this parameter isn't set, uses the first parameter as text.}} | {{Parameter row|2|Text, if this parameter isn't set, uses the first parameter as text.}} |
Revision as of 12:01, 19 December 2014
Description
This templates create a box with an image.
Parameters
#/Name | Optional | Description | Default |
---|---|---|---|
1 | Yes | Small image on the left shrunk to 40×40 pixels. | File:notice.svg |
2 | No | Text, if this parameter isn't set, uses the first parameter as text. | |
3 | Yes | Color of the box. When transparent it does hide the border. | #1e90ff |
type | Yes | Type of the box. | Not set |
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 | ||
error | ||
warning | ||
editnotice or notice | ||
disambig |
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
- {{About}}
- {{Blocked}} (and {{Spammer}})
- {{Data template used}}
- {{Delete}}
- {{Disambiguation}}
- {{Incomplete Translation}}
- {{LowRes}}
- {{Merge}}
- {{Move}}
- {{NoThumbnailsPlease}}
- {{Outdated}}
- {{Part config}}
- {{Protect}}
- {{Spoiler}}
- {{Stub}}
- {{SVG available}}
- {{Talkarchive}}
- {{WrongLanguageCode}} (and {{HasWrongLanguageCode}})