This is a documentation for Board Game Arena: play board games online !

Template:Text

From Board Game Arena
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.
c
color
unchanged
{{text|some text
|c=green}}
some text
Optional: text color as a CSS color value.
s
size
unchanged
{{text|some text
|s=1.5}}
some text
Optional: relative text size in em units (1em = unchanged size).
w
weight
unchanged
{{text|some text
|w=bold}}
some text
Optional: text weight as a CSS font-weight value.
i
italic
unchanged
{{text|some text
|i=italic}}
some text
Optional: text style as a CSS font-style value.
f
font
unchanged
{{text|some text
|f=cursive}}
some text
Optional: font name as a CSS font-family value.
oc
outline color
transparent
{{text|some text
|c=transparent
|oc=green}}
some text
Optional: text outline color as a CSS color value.
ow
outline weight
0.5
{{text|some text
|c=transparent
|oc=grey|ow=1}}
some text
Optional: text outline weight in px units.
wr
wrap
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
transparent
{{text|some text
|transparent
|lightgreen}}
some text
Optional: background stop color as a CSS color value.
bc
border color
transparent
{{text|some text
|bc=green}}
some text
Optional: border color as a CSS color value.
bw
border weight
1
{{text|some text
|bc=grey|bw=4}}
some text
Optional: border weight in px units.
bs
border style
solid
{{text|some text
|bc=grey|bs=dashed}}
some text
Optional: border style as a CSS border-style value.
br
border radius
0
{{text|some text
|bc=grey|x=4|br=1}}
some text
Optional: border radius in em units (1em = unchanged font size).
x
horizontal spacing
0
{{text|some text
|bc=grey|x=8}}
some text
Optional: horizontal spacing in px units.
y
vertical spacing
0
{{text|some text
|bc=grey|y=8}}
some text
Optional: vertical spacing in px units.