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
(a11y)
 
Line 1: Line 1:
<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 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;">{{{|&nbsp;}}}</span></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 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>{{hand|=4}}</nowiki></code>
|<code><nowiki>{{hand|4}}</nowiki></code>
|style="text-align:center;"|{{hand|=4}}
|style="text-align:center;"|{{hand|4}}
|<b><i>Optional:</i></b> specify the number of cards in hand e.g. <code>4</code>.
|<b><i>Optional:</i></b> specify the number of cards in hand e.g. <code>4</code>.
|-
|-

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.