This is a documentation for Board Game Arena: play board games online !
Template:Pill: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (using Template:Text) |
Sammy McSam (talk | contribs) m (l / 0.64) |
||
| Line 1: | Line 1: | ||
{{text|{{{1|A}}}|bg={{{2|#eee}}}|bgd={{{bgd|0}}}|bg1={{{bg1}}}|bg2={{{bg2}}}|c={{{c|oklch(from {{{2|#eee}}} clamp(0, (l / 0. | {{text|{{{1|A}}}|bg={{{2|#eee}}}|bgd={{{bgd|0}}}|bg1={{{bg1}}}|bg2={{{bg2}}}|c={{{c|oklch(from {{{2|#eee}}} clamp(0, (l / 0.64 - 1) * -infinity, 1) 0 h)}}}|s={{{s}}}|f={{{f|Roboto,Arial,sans-serif}}}|w=700|wrap=nowrap|v=0.25|h=0.5|br=99}}<noinclude> | ||
== Examples == | == Examples == | ||
Revision as of 00:13, 23 May 2025
A
Examples
some text
{{pill|some text|firebrick}}
some text
{{pill|some text|#cf8}}
some text
{{pill|some text|bg1=#fc8|bg2=#cf8}}
Gamehelpobsession
| Meeple | Name | wikitext
|
|---|---|---|
| Butler | {{pill|Butler|#2A2275}}
| |
| Valet | {{pill|Valet|#249167}}
| |
| Lady's Maid | {{pill|Lady's Maid|#72116E}}
| |
| Housekeeper | {{pill|Housekeeper|#E81F35}}
| |
| Footman | {{pill|Footman|#DFDACD}}
|
Parameters
Id
Name
Default
Example
Result
Description
1
text
A{{pill|some text}}some text
Required: content.
2
background
#eee (light grey){{pill|some text|green}}some text
Optional: background color as a CSS color value.
ctext color
automatic black/white
{{pill|c=green|some text}}some text
Optional: text color as a CSS color value.
ssize
unchanged
{{pill|s=1.3|some text}}some text
ffont
Roboto,Arial,sans-serif
{{pill|f=cursive|some text}}some text
Optional: font name as a CSS font-family value.
bg1background
start color
start color
transparent
{{text|bg1=lightgreen|some text}}some text
Optional: background start color as a CSS color value.
bg2background
stop color
stop color
transparent
{{text|bg2=lightgreen|some text}}some text
Optional: background stop color as a CSS color value.
bgdbackground
direction
direction
0 (🡆){{text|bgd=80|bg1=lightgrey|some text}}some text
Optional: background direction in degrees.