This is a documentation for Board Game Arena: play board games online !
Template:Text
Jump to navigation
Jump to search
A
Examples
Inside this blue text template you can nest other red, bold, bigger, yellow highlight, orange to green gradient, circled text templates or any other customised combination!
{{text|c=blue|Inside this blue text template you can nest other {{text|red|c=red}}, {{text|bold|w=bold}}, {{text|bigger|s=1.4}}, {{text|yellow highlight|yellow}}, {{text|orange to green gradient|#fc8|#cf8}}, {{text|circled|bc=red|br=1|x=4}} text templates or any other customised combination!}}
Template:Pill
pill background
{{pill|pill background|green}}
Template:Code
red color code
{{code|red color code}}
Parameters
Text
Id
Name
Default
Example
Result
Description
1
text
A{{text|some text}}some text
Required: content.
ccolor
unchanged
{{text|some text|c=green}}some text
Optional: text color as a CSS color value.
ssize
unchanged
{{text|some text|s=1.5}}some text
Optional: relative text size in em units (
1em = unchanged size).wweight
unchanged
{{text|some text|w=bold}}some text
Optional: text weight as a CSS font-weight value.
iitalic
unchanged
{{text|some text|i=italic}}some text
Optional: text style as a CSS font-style value.
ffont
unchanged
{{text|some text|f=cursive}}some text
Optional: font name as a CSS font-family value.
ocoutline color
transparent
{{text|some text|c=transparent|oc=green}}some text
Optional: text outline color as a CSS color value.
owoutline weight
0.5{{text|some text|c=transparent|oc=grey|ow=1}}some text
Optional: text outline weight in px units.
wrwrap
wrap{{text|some text|wr=nowrap}}some text
Optional: prevent line breaks.
Background & border
Id
Name
Default
Example
Result
Description
2
background
transparent
{{text|some text|lightgreen}}some text
Optional: background color as a CSS color value.
3
background
end color
end color
transparent
{{text|some text|transparent|lightgreen}}some text
Optional: background stop color as a CSS color value.
bcborder color
transparent
{{text|some text|bc=green}}some text
Optional: border color as a CSS color value.
bwborder weight
1{{text|some text|bc=grey|bw=4}}some text
Optional: border weight in px units.
bsborder style
solid{{text|some text|bc=grey|bs=dashed}}some text
Optional: border style as a CSS border-style value.
brborder radius
0
{{text|some text|bc=grey|x=4|br=1}}some text
xhorizontal spacing
0
{{text|some text|bc=grey|x=8}}some text
Optional: horizontal spacing in px units.
yvertical spacing
0
{{text|some text|bc=grey|y=8}}some text
Optional: vertical spacing in px units.