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
(div ⇨ span)
No edit summary
Line 3: Line 3:
== Examples ==
== Examples ==


<pre>
{{Hr|1|n=|c=}}
{{Hr|1|n=|c=}}
{{Hy|2|n=|c=}}
{{Hy|2|n=|c=}}
Line 11: Line 10:
{{Hm|5|{{g}}|2|n=|c=}}
{{Hm|5|{{g}}|2|n=|c=}}
{{Hk|5|n=}}
{{Hk|5|n=}}
</pre>


<pre>
{{Hr|1|n=|c=}}
{{Hr|1|n=|c=}}
{{Hy|2|n=|c=}}
{{Hy|2|n=|c=}}
Line 20: Line 19:
{{Hm|5|{{g}}|2|n=|c=}}
{{Hm|5|{{g}}|2|n=|c=}}
{{Hk|5|n=}}
{{Hk|5|n=}}
</pre>


== Available parameters ==
== Available parameters ==

Revision as of 22:42, 19 December 2023

1​1​

Examples

1​1​ 2​2​ 3​3​ 4​4​ 5​5​ 5​5​ 5​5​

{{Hr|1|n=|c=}}
{{Hy|2|n=|c=}}
{{Hg|3|n=|c=}}
{{Hb|4|n=|c=}}
{{Hw|5|n=|c=}}
{{Hm|5|{{g}}|2|n=|c=}}
{{Hk|5|n=}}

Available parameters

Parameter
Default value
Example
Description
1
1
|5
Required: specify the card rank (1/2/3/4/5).
y
0
|y=2
Required: specify the card colour as an integer: red ⇨0, yellow ⇨1, green ⇨2, blue ⇨3, white ⇨4, multicolour ⇨5, black powder ⇨6.
clueY
{{{y|0}}}
|clueY=2
Optional: specify the clue symbol colour for multicolour as an integer: red ⇨0, yellow ⇨1, green ⇨2, blue ⇨3, white ⇨4, multicolour ⇨5.
colourName
null
|colourName=green
Required: specify the colour word used for tooltips and screen readers.
clueColour
null
|clueColour={{g}}
Required: specify the clue colour: {{r}} {{y}} {{g}} {{b}} {{w}} {{m}}
clueTextColour
black
|clueTextColour=white
Required: specify the number clue text colour as a CSS colour.
clueDarkSymbol
0
|clueDarkSymbol=1
Required: specify the clue symbol shade: light ⇨0, dark ⇨1.
showClueNumber
none
|showClueNumber=
Optional: display the rank clue.
showClueColour
none
|showClueColour=
Optional: display the colour clue.
size
40
|size=30
Optional: specify the icon dimensions.
numberScale
0.8
|numberScale=1
Optional: specify the scale factor of the number image.
colourScale
0.5
|colourScale=1
Optional: specify the scale factor of the colour symbol image.
clueColourScale
0.35
|clueColourScale=0.5
Optional: specify the scale factor of the clue colour symbol image.