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) (div ⇨ span) |
Sammy McSam (talk | contribs) (a11y) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<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 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;">{{{|& | <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 8: | Line 9: | ||
!Description | !Description | ||
|- | |- | ||
|<code | |<code>1</code> | ||
|<code>& | |<code>&ZeroWidthSpace;</code> | ||
|<code><nowiki>{{player| | |<code><nowiki>{{player|2}}</nowiki></code> | ||
|style="text-align:center;"|{{player| | |style="text-align:center;"|{{player|2}} | ||
|<b><i>Optional:</i></b> specify the number of players e.g. <code>2</code>. | |<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 27: | Line 28: | ||
|} | |} | ||
[[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. |