×
Create a new article
Write your page title here:
We currently have 283 articles on GearStation 13 Wiki. Type your article name above or click on one of the titles below and start writing!



GearStation 13 Wiki

Difference between revisions of "Template:Box"

tgstation>Rockdtben
(Created page with "<noinclude>== Description == This templates create a box with an image. == Parameters == {{Parameter Table|name=both|parameters= {{Parameter Row|1|Small image on the left sh...")
 
tgstation>Rockdtben
Line 5: Line 5:


{{Parameter Table|name=both|parameters=
{{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.png]]}}
{{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.}}
{{Parameter Row|3|Color of the box. When transparent it does hide the border.|<tt>#1e90ff</tt> {{ColorBox|#1e90ff}}}}
{{Parameter Row|3|Color of the box. When transparent it does hide the border.|<tt>#1e90ff</tt> {{ColorBox|#1e90ff}}}}
Line 22: Line 22:
|-
|-
| Not set or <tt>info</tt>
| Not set or <tt>info</tt>
| [[File:notice.svg|40px]]
| [[File:notice.png|40px]]
| {{ColorBox|#1e90ff}}
| {{ColorBox|#1e90ff}}
|-
|-
Line 34: Line 34:
|-
|-
| <tt>editnotice</tt> or <tt>notice</tt>
| <tt>editnotice</tt> or <tt>notice</tt>
| [[File:notice.svg|40px]]
| [[File:notice.png|40px]]
| {{ColorBox|#bba}}
| {{ColorBox|#bba}}
|-
|-
Line 89: Line 89:
|notice
|notice
|note
|note
|#default=notice.svg}}|40x40px|alt=|link=]]}}
|#default=notice.png}}|40x40px|alt=|link=]]}}
| class="mbox-text" | {{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}
| class="mbox-text" | {{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}
|}</includeonly>
|}</includeonly>

Revision as of 20:52, 2 June 2014

Description

This templates create a box with an image.

Parameters

#/Name Optional!DescriptionTemplate:Parameter Row

Template:Parameter Row Template:Parameter Row Template:Parameter Row|}


It is possible to add additional rows by using Template:Tl in the Text parameter. One example is Template:Tl.

Types

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

Type Image Color
Not set or info 40px Template:ColorBox
error 40px Template:ColorBox
warning 40px Template:ColorBox
editnotice or notice 40px Template:ColorBox
disambig 40px Template:ColorBox

Examples

40x40px Text
 {{Box|Kerbin18.png|Text|#b22222|Title}}
40x40px 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.}}
40x40px 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