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

Template:Hand: 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|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}};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 !Descri...")
 
(a11y)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="text-shadow: 0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}};font-size:{{{size|1.5}}}rem;line-height:calc({{{size|1.5}}}rem * 1.25);">✋</span><noinclude>
<span title="cards in hand" style="display:inline-block;position:relative;text-shadow:0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}},0 0 calc({{{size|1.5}}}rem / 20) {{{outlineColour|#000A}}};font-size:{{{size|1.5}}}rem;line-height:calc({{{size|1.5}}}rem * 1.25);"><span aria-hidden="true">✋</span><span style="margin: 0;position:absolute;top:70%;left:45%;margin-right:-50%;transform:translate(-50%,-50%);color:#000;text-shadow:0 0 calc({{{size|1.5}}}rem / 20) #fffA,0 0 calc({{{size|1.5}}}rem / 20) #fffA,0 0 calc({{{size|1.5}}}rem / 20) #fffA,0 0 calc({{{size|1.5}}}rem / 20) #fffA,0 0 calc({{{size|1.5}}}rem / 20) #fffA,0 0 calc({{{size|1.5}}}rem / 20) #fffA;font-size:calc({{{size|1.5}}}rem / 1.5);font-weight:700;">{{{1|&ZeroWidthSpace;}}}<span style="position:absolute;font-size:0;">cards in hand</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>&amp;ZeroWidthSpace;</code>
|<code><nowiki>{{hand|4}}</nowiki></code>
|style="text-align:center;"|{{hand|4}}
|<b><i>Optional:</i></b> specify the number of cards in hand e.g. <code>4</code>.
|-
|-
|<code>size</code>
|<code>size</code>
Line 18: Line 25:
|<code><nowiki>{{Hand|outlineColour=green}}</nowiki></code>
|<code><nowiki>{{Hand|outlineColour=green}}</nowiki></code>
|style="text-align:center;"|{{Hand|outlineColour=green}}
|style="text-align:center;"|{{Hand|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].
|}
|}
[[Category:PlayerBoardTemplates]]


</noinclude>
</noinclude>

Latest revision as of 06:45, 3 January 2024

cards in hand

Available parameters
Parameter Default value Example Result Description
1 &ZeroWidthSpace; {{hand|4}} 4cards in hand Optional: specify the number of cards in hand e.g. 4.
size 1.5 {{Hand|size=2}} cards in hand Optional: specify the size in rem units.
outlineColour #000A (translucent black) {{Hand|outlineColour=green}} cards in hand Optional: specify the outline colour as a CSS colour.