From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search

style="border:solid medium black;background-color:whitesmoke;-moz-border-radius:0.8em;padding:0.3em;"

This page has been transcluded from User:Pso/T/StyleBox/Documentation.


Usage and Examples[edit]

Created for personal use on my user space, but feel free to link it in your own. If desired in a non-user page however, we should make a proper template in the appropriate namespace.

StyleBox will insert the style for table elements or a curved, medium-thickness bordered cell. Note this only outputs a string, so it must be properly placed within the table; see examples below. Colour, Padding, and Corner Radius may all be customised (they are in em units in default setting, although their units must be specified if the attribute is customised). An arbitrarily long string of further attribute:value; style elements may also be added for further customisation.

Default: plain black/grey box:

{|
| {{User:Pso/T/StyleBox}} | foo
|}
foo


Colours available

{|
| {{User:Pso/T/StyleBox}} | default
| {{User:Pso/T/StyleBox|colour=red}} | red
| {{User:Pso/T/StyleBox|colour=blue}} | blue
|-
| {{User:Pso/T/StyleBox|colour=green}} | green
| {{User:Pso/T/StyleBox|colour=yellow}} | yellow
| {{User:Pso/T/StyleBox|colour=grey}} | grey
|}
default red blue
green yellow grey


Attributes

{|
| {{User:Pso/T/StyleBox|padding=3em}} | padding=3em
|}
padding=3em
{|
| {{User:Pso/T/StyleBox|padding=0px}} | padding=0px
|}
padding=0px
{|
| {{User:Pso/T/StyleBox|radius=15px}} | radius=15px
|}
radius=15px
{|
| {{User:Pso/T/StyleBox|radius=0em}} | radius=0em
|}
radius=0em


Additional attributes

{|
| {{User:Pso/T/StyleBox|extra=width:10em}} | extra=width:10em
|}
extra=width:10em
{|
| {{User:Pso/T/StyleBox|extra=width:10em; height:10em}} | extra=width:10em; height:10em
|}
extra=width:10em; height:10em


Random combination

{|
| {{User:Pso/T/StyleBox|colour=blue|padding=3em|radius=8em|extra=width:10em;height:10em}} | Random Randy
|}
Random Randy