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) |
Sammy McSam (talk | contribs) (using Template:Text) |
||
| 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.62 - 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 == | ||
{{pill|some text| | {{pill|some text|firebrick}} | ||
<code><nowiki>{{pill|some text| | <code><nowiki>{{pill|some text|firebrick}}</nowiki></code> | ||
{{pill|some text|#cf8}} | |||
<code><nowiki>{{pill|some text|#cf8}}</nowiki></code> | |||
{{pill|some text|bg1=#fc8|bg2=#cf8}} | |||
<code><nowiki>{{pill|some text|bg1=#fc8|bg2=#cf8}}</nowiki></code> | |||
=== [[Gamehelpobsession]] === | === [[Gamehelpobsession]] === | ||
| Line 14: | Line 20: | ||
|- | |- | ||
|style="background:#eee;"|[[File:Butler.png]] | |style="background:#eee;"|[[File:Butler.png]] | ||
|{{pill|Butler|#2A2275 | |{{pill|Butler|#2A2275}} | ||
|style="text-align:left;"|<code><nowiki>{{pill|Butler|#2A2275 | |style="text-align:left;"|<code><nowiki>{{pill|Butler|#2A2275}}</nowiki></code> | ||
|- | |- | ||
|style="background:#eee;"|[[File:Valet.png]] | |style="background:#eee;"|[[File:Valet.png]] | ||
|{{pill|Valet|#249167 | |{{pill|Valet|#249167}} | ||
|style="text-align:left;"|<code><nowiki>{{pill|Valet|#249167 | |style="text-align:left;"|<code><nowiki>{{pill|Valet|#249167}}</nowiki></code> | ||
|- | |- | ||
|style="background:#eee;"|[[File:Lady's Maid.png]] | |style="background:#eee;"|[[File:Lady's Maid.png]] | ||
|{{pill|Lady's Maid|#72116E | |{{pill|Lady's Maid|#72116E}} | ||
|style="text-align:left;"|<code><nowiki>{{pill|Lady's Maid|#72116E | |style="text-align:left;"|<code><nowiki>{{pill|Lady's Maid|#72116E}}</nowiki></code> | ||
|- | |- | ||
|style="background:#eee;"|[[File:Housekeeper.png]] | |style="background:#eee;"|[[File:Housekeeper.png]] | ||
|{{pill|Housekeeper|#E81F35 | |{{pill|Housekeeper|#E81F35}} | ||
|style="text-align:left;"|<code><nowiki>{{pill|Housekeeper|#E81F35 | |style="text-align:left;"|<code><nowiki>{{pill|Housekeeper|#E81F35}}</nowiki></code> | ||
|- | |- | ||
|style="background:#eee;"|[[File:Footman.png]] | |style="background:#eee;"|[[File:Footman.png]] | ||
|{{pill|Footman|#DFDACD | |{{pill|Footman|#DFDACD}} | ||
|style="text-align:left;"|<code><nowiki>{{pill|Footman|#DFDACD | |style="text-align:left;"|<code><nowiki>{{pill|Footman|#DFDACD}}</nowiki></code> | ||
|} | |} | ||
== Parameters == | |||
<div style="display:grid;grid-template-columns:repeat(5,max-content) 1fr;gap:0.5rem;overflow:auto;text-overflow:ellipsis;"> | |||
<div>{{text|w=bold|Id}}</div> | |||
<div>{{text|w=bold|Name}}</div> | |||
<div>{{text|w=bold|Default}}</div> | |||
<div>{{text|w=bold|Example}}</div> | |||
<div>{{text|w=bold|Result}}</div> | |||
<div>{{text|w=bold|Description}}</div> | |||
<div>1</div> | |||
<div>text</div> | |||
<div><code>A</code></div> | |||
<div><code><nowiki>{{pill|some text}}</nowiki></code></div> | |||
<div>{{pill|some text}}</div> | |||
<div>'''''Required:''''' content.</div> | |||
<div>2</div> | |||
<div>background</div> | |||
<div><code>#eee</code> (light grey)</div> | |||
<div><code><nowiki>{{pill|some text|green}}</nowiki></code></div> | |||
<div>{{pill|some text|green}}</div> | |||
<div>'''''Optional:''''' background color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value CSS color value].</div> | |||
<div><code>c</code></div> | |||
<div>text color</div> | |||
<div>automatic black/white</div> | |||
<div><code><nowiki>{{pill|c=green</nowiki></code><br><code><nowiki>|some text}}</nowiki></code></div> | |||
<div>{{pill|c=green|some text}}</div> | |||
<div>'''''Optional:''''' text color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value CSS color value].</div> | |||
<div><code>s</code></div> | |||
<div>size</div> | |||
<div>unchanged</div> | |||
<div><code><nowiki>{{pill|s=1.3</nowiki></code><br><code><nowiki>|some text}}</nowiki></code></div> | |||
<div>{{pill|s=1.3|some text}}</div> | |||
<div>'''''Optional:''''' text size in [https://developer.mozilla.org/en-US/docs/Web/CSS/length#rem rem units] (<code>1rem</code> = <code>16px</code>).</div> | |||
<div><code>f</code></div> | |||
<div>font</div> | |||
<div>Roboto,Arial,sans-serif</div> | |||
<div><code><nowiki>{{pill|f=cursive</nowiki></code><br><code><nowiki>|some text}}</nowiki></code></div> | |||
<div>{{pill|s=1|f=cursive|some text}}</div> | |||
<div>'''''Optional:''''' font name as a [https://developer.mozilla.org/en-US/docs/Web/CSS/font-family CSS {{code|c=#3366cc|font-family}} value].</div> | |||
<div><code>bg1</code></div> | |||
<div>background<br>start color</div> | |||
<div>transparent</div> | |||
<div><code><nowiki>{{text|bg1=lightgreen</nowiki></code><br><code><nowiki>|some text}}</nowiki></code></div> | |||
<div>{{text|s=1|bg1=lightgreen|some text}}</div> | |||
<div>'''''Optional:''''' background start color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value CSS color value].</div> | |||
<div><code>bg2</code></div> | |||
<div>background<br>stop color</div> | |||
<div>transparent</div> | |||
<div><code><nowiki>{{text|bg2=lightgreen</nowiki></code><br><code><nowiki>|some text}}</nowiki></code></div> | |||
<div>{{text|s=1|bg2=lightgreen|some text}}</div> | |||
<div>'''''Optional:''''' background stop color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value CSS color value].</div> | |||
<div><code>bgd</code></div> | |||
<div>background<br>direction</div> | |||
<div><code>0</code> (🡆)</div> | |||
<div><code><nowiki>{{text|bgd=80</nowiki></code><br><code><nowiki>|bg1=lightgrey</nowiki></code><br><code><nowiki>|some text}}</nowiki></code></div> | |||
<div>{{text|s=1|bgd=80|bg1=lightgrey|some text}}</div> | |||
<div>'''''Optional:''''' background direction in [https://developer.mozilla.org/en-US/docs/Web/CSS/angle#deg degrees].</div> | |||
</div> | |||
[[Category:WikiTemplates]] | [[Category:WikiTemplates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 00:04, 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.