This is a documentation for Board Game Arena: play board games online !
Template:Player: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (Created page with "<span style="text-shadow: 0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#fffA}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#fffA}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#fffA}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#fffA}}};font-size:{{{size|1.5}}}rem;line-height:calc({{{size|1.5}}}rem * 1.25);">👤</span><noinclude> {|class="wikitable" style="text-align:left;" |+Available parameters !Parameter !Default value !Example !Result !Descr...")  |
Sammy McSam (talk | contribs) (a11y) Â |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="text-shadow: 0 0 calc({{{size| | <span title="players" style="display:inline-block;position:relative;text-shadow:0 0 calc({{{size|2}}}rem / 20) {{{outlineColour|#fffA}}},0 0 calc({{{size|2}}}rem / 20) {{{outlineColour|#fffA}}},0 0 calc({{{size|2}}}rem / 20) {{{outlineColour|#fffA}}},0 0 calc({{{size|2}}}rem / 20) {{{outlineColour|#fffA}}},0 0 calc({{{size|2}}}rem / 20) {{{outlineColour|#fffA}}},0 0 calc({{{size|2}}}rem / 20) {{{outlineColour|#fffA}}};font-size:{{{size|2}}}rem;line-height:calc({{{size|2}}}rem * 1.25);"><span aria-hidden="true">👤</span><span style="margin:0;position:absolute;top:70%;left:50%;margin-right:-50%;transform:translate(-50%,-50%);color:#fff;text-shadow:0 0 calc({{{size|2}}}rem / 20) #000A,0 0 calc({{{size|2}}}rem / 20) #000A,0 0 calc({{{size|2}}}rem / 20) #000A,0 0 calc({{{size|2}}}rem / 20) #000A,0 0 calc({{{size|2}}}rem / 20) #000A,0 0 calc({{{size|2}}}rem / 20) #000A;font-size:calc({{{size|2}}}rem / 1.5);font-weight:700;">{{{1|​}}}<span style="position:absolute;font-size:0;">players</span></span></span><noinclude> | ||
 | |||
{|class="wikitable" style="text-align:left;" | {|class="wikitable" style="text-align:left;" | ||
|+Available parameters | |+Available parameters | ||
Line 7: | Line 8: | ||
!Result | !Result | ||
!Description | !Description | ||
|- | |||
|<code>1</code> | |||
|<code>&ZeroWidthSpace;</code> | |||
|<code><nowiki>{{player|2}}</nowiki></code> | |||
|style="text-align:center;"|{{player|2}} | |||
|<b><i>Optional:</i></b> specify the number of players e.g. <code>2</code>. | |||
|- | |- | ||
|<code>size</code> | |<code>size</code> | ||
|<code> | |<code>2</code> | ||
|<code><nowiki>{{player|size= | |<code><nowiki>{{player|size=1.5}}</nowiki></code> | ||
|style="text-align:center;"|{{player|size= | |style="text-align:center;"|{{player|size=1.5}} | ||
|<b><i>Optional:</i></b> specify the size in rem units. | |<b><i>Optional:</i></b> specify the size in rem units. | ||
|- | |- | ||
Line 18: | Line 25: | ||
|<code><nowiki>{{player|outlineColour=green}}</nowiki></code> | |<code><nowiki>{{player|outlineColour=green}}</nowiki></code> | ||
|style="text-align:center;"|{{player|outlineColour=green}} | |style="text-align:center;"|{{player|outlineColour=green}} | ||
|<b><i>Optional:</i></b> specify the | |<b><i>Optional:</i></b> specify the outline colour as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS colour]. | ||
|} | |} | ||
[[Category:PlayerBoardTemplates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 06:46, 3 January 2024
players
Parameter | Default value | Example | Result | Description |
---|---|---|---|---|
1
|
​
|
{{player|2}}
|
2players | Optional: specify the number of players e.g. 2 .
|
size
|
2
|
{{player|size=1.5}}
|
players | Optional: specify the size in rem units. |
outlineColour
|
#fffA (translucent white)
|
{{player|outlineColour=green}}
|
players | Optional: specify the outline colour as a CSS colour. |