This is a documentation for Board Game Arena: play board games online !
Template:HCard: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) m (h) |
Sammy McSam (talk | contribs) mNo edit summary |
||
Line 23: | Line 23: | ||
<code><nowiki>{{HDeck|5}}</nowiki></code> | <code><nowiki>{{HDeck|5}}</nowiki></code> | ||
{{cardholder| | {{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| | <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>}}</nowiki></code> | |||
== Parameters == | == Parameters == |
Revision as of 00:06, 27 September 2024
card
Examples
- red1yellow2,with a yellowclue,green3,with a green3clue,blue4,with a 4clue,white5,with a whiteclue,multicolour5,with a multicolour5clue,black powder5,with a 5clue,
{{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
yellow2
green3
blue4
{{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
​
|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|​}}}
|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:hidde
n
|sn=
Optional: display the rank clue.
sc
showClueColour
visibility:hidd
e
n|sc=
Optional: display the colour clue.
h
cardHolderLabel
​
|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