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
(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...")
 
No edit summary
Line 1: Line 1:
<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>
<div 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);">👤<div 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;}}}</div></div><noinclude>
{|class="wikitable" style="text-align:left;"
{|class="wikitable" style="text-align:left;"
|+Available parameters
|+Available parameters
Line 7: Line 7:
!Result
!Result
!Description
!Description
|-
|<code style="color:#b00;">null</code>
|<code>&amp;nbsp;</code> (white space)
|<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>
Line 18: Line 24:
|<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 text outline colour as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS colour].
|<b><i>Optional:</i></b> specify the outline colour as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS colour].
|}
|}


</noinclude>
</noinclude>

Revision as of 19:50, 5 October 2023

👤
 
Available parameters
Parameter Default value Example Result Description
null &nbsp; (white space) {{player|=2}}
👤
2
Optional: specify the number of players e.g. 2.
size 1.5 {{player|size=2}}
👤
 
Optional: specify the size in rem units.
outlineColour #fffA (translucent white) {{player|outlineColour=green}}
👤
 
Optional: specify the outline colour as a CSS colour.