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

Template:Player: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
mNo edit summary
(a11y)
 
(One intermediate revision 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;">{{{|&nbsp;}}}</span></span><noinclude>
<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|&ZeroWidthSpace;}}}<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 style="color:#b00;">null</code>
|<code>1</code>
|<code>&amp;nbsp;</code> (white space)
|<code>&amp;ZeroWidthSpace;</code>
|<code><nowiki>{{player|=2}}</nowiki></code>
|<code><nowiki>{{player|2}}</nowiki></code>
|style="text-align:center;"|{{player|=2}}
|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>.
|-
|-
Line 27: Line 28:
|}
|}


[[Category:PlayerBoardTemplates]]
</noinclude>
</noinclude>

Latest revision as of 06:46, 3 January 2024

players

Available parameters
Parameter Default value Example Result Description
1 &ZeroWidthSpace; {{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.