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

Template:HCard: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
m (h)
mNo edit summary
Line 23: Line 23:
<code><nowiki>{{HDeck|5}}</nowiki></code>
<code><nowiki>{{HDeck|5}}</nowiki></code>


{{cardholder|&nbsp;|cards=
{{cardholder|{{Hr|1|h=A}}{{Hy|2|h=B}}{{Hg|3|h=C}}{{Hb|4|h=D}} }}
{{Hr|1|h=A}}
{{Hy|2|h=B}}
{{Hg|3|h=C}}
{{Hb|4|h=D}}
}}


<code><nowiki>{{cardholder|&amp;ZeroWidthSpace;|cards=</nowiki></code>
<code><nowiki>{{cardholder|</nowiki></code><code><nowiki>{{Hr|1|h=A}}</nowiki></code><code><nowiki>{{Hy|2|h=B}}</nowiki></code><code><nowiki>{{Hg|3|h=C}}</nowiki></code><code><nowiki>{{Hb|4|h=D}}</nowiki></code><code><nowiki>}}</nowiki></code>
:<code><nowiki>{{Hr|1|h=A}}</nowiki></code>
:<code><nowiki>{{Hy|2|h=B}}</nowiki></code>
:<code><nowiki>{{Hg|3|h=C}}</nowiki></code>
:<code><nowiki>{{Hb|4|h=D}}</nowiki></code>
 
<code><nowiki>}}</nowiki></code>


== Parameters ==
== Parameters ==

Revision as of 01:06, 27 September 2024

card
,with a
cardclue,

Examples

red1
,with a
red1clue,
yellow2
,with a
yellow2clue,
green3
,with a
green3clue,
blue4
,with a
blue4clue,
white5
,with a
white5clue,
multicolour5
,with a
multicolour5clue,
black powder5
,with a
black powder5clue,

{{Hr|1}}

{{Hy|2|n|c=}}

{{Hg|3|n=|c=}}

{{Hb|4|n=|c}}

{{Hw|5|n|c=}}

{{Hm|5|n=|c=}}

{{Hk|5|n=}}

{{HBack|5|{{g}}|green|n=|c=}}

{{HDeck|5}}

red1
,with a
red1clue,
yellow2
,with a
yellow2clue,
green3
,with a
green3clue,
blue4
,with a
blue4clue,

{{cardholder|{{Hr|1|h=A}}{{Hy|2|h=B}}{{Hg|3|h=C}}{{Hb|4|h=D}}}}

Parameters

Parameter Id
Parameter Name
Default value
Example
Description
1
rank
&ZeroWidthSpace;
|5
Required: specify the card rank (1/2/3/4/5).
2
colour
transparent
|{{g}}
Required: specify the card colour e.g. {{r}} {{y}} {{g}} {{b}} {{w}} {{m}}
3
colourLetter
null
|g
Required: specify the card colour letter: red ⇨r, yellow ⇨y, green ⇨g, blue ⇨b, white ⇨w, multicolour ⇨m.
4
colourName
card
|green
Required: specify the colour word used for tooltips and screen readers.
cN
clueColourName
{{{N|card}}}
|cN=green
Optional: specify the clue colour word used for tooltips and screen readers.
cc
clueColour
{{{2|transparent}}}
|cc={{g}}
Optional: specify the clue colour e.g. {{r}} {{y}} {{g}} {{b}} {{w}} {{m}}
cn
clueNumber
{{{1|&#8203;}}}
|cn={{1}}
Optional: specify the clue rank: (1/2/3/4/5).
o
textOutline
0
|o=1
Optional: specify the text outline opacity: transparent ⇨0, opaque ⇨1
b
backgroundColour
#324 (black)
|b=grey
Optional: specify the background colour.
sn
showClueNumber
visibility:hidden
|sn=
Optional: display the rank clue.
sc
showClueColour
visibility:hidden
|sc=
Optional: display the colour clue.
h
cardHolderLabel
&#8203;
|h=A
Optional: specify a character below the card e.g. to represent a player: A/B/C.
hc
cardHolderLabelColour
#fff (white)
|hc=green
Optional: specify the card holder label colour e.g. green