This is a documentation for Board Game Arena: play board games online !
Template:Hand: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (title="cards in hand") |
Sammy McSam (talk | contribs) (a11y) |
||
(One intermediate revision by the same user not shown) | |||
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;">{{{|& | <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|​}}}<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 | |<code>1</code> | ||
|<code>& | |<code>&ZeroWidthSpace;</code> | ||
|<code><nowiki>{{hand| | |<code><nowiki>{{hand|4}}</nowiki></code> | ||
|style="text-align:center;"|{{hand| | |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>. | ||
|- | |- | ||
Line 26: | Line 27: | ||
|<b><i>Optional:</i></b> specify the 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
Parameter | Default value | Example | Result | Description |
---|---|---|---|---|
1
|
​
|
{{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. |