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
(optimisation, fix inline)
mNo edit summary
Line 93: Line 93:
|<code><nowiki>{{cardholder|</nowiki></code><code><nowiki>{{Hr|1}}</nowiki></code><code><nowiki>{{Hy|2}}</nowiki></code><code><nowiki>{{Hg|3}}</nowiki></code><code><nowiki>{{Hb|4}}</nowiki></code><code><nowiki>|Alice 🡲}}</nowiki></code>
|<code><nowiki>{{cardholder|</nowiki></code><code><nowiki>{{Hr|1}}</nowiki></code><code><nowiki>{{Hy|2}}</nowiki></code><code><nowiki>{{Hg|3}}</nowiki></code><code><nowiki>{{Hb|4}}</nowiki></code><code><nowiki>|Alice 🡲}}</nowiki></code>
|-
|-
|style="text-align:center;"|<span style="text-align:left;">{{cardholder|{{Hr|1|h=A}}{{Hy|2|h=B}}{{Hg|3|h=C}}{{Hb|4|h=D}} }}</span>
|style="text-align:center;"|<span style="text-align:left;">{{cardholder|{{Hr|1|p=A}}{{Hy|2|p=B}}{{Hg|3|p=C}}{{Hb|4|p=D}} }}</span>
|<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>{{cardholder|</nowiki></code><code><nowiki>{{Hr|1|p=A}}</nowiki></code><code><nowiki>{{Hy|2|p=B}}</nowiki></code><code><nowiki>{{Hg|3|p=C}}</nowiki></code><code><nowiki>{{Hb|4|p=D}}</nowiki></code><code><nowiki>}}</nowiki></code>
|}
|}



Revision as of 12:23, 28 June 2025

card,with a clue,

Examples

red red1,with a red1clue, red2,with a red2clue, red3,with a red3clue, red4,with a red4clue, card back5,with a red5clue, {{Hr|1}}

{{Hr|2|n=}}

{{Hr|3|c=}}

{{Hr|4|n=|c=}}

{{HBack|5|{{r}}|red|n=|c=}}

yellow yellow1,with a yellow1clue, yellow2,with a yellow2clue, yellow3,with a yellow3clue, yellow4,with a yellow4clue, card back5,with a yellow5clue, {{Hy|1}}

{{Hy|2|n=}}

{{Hy|3|c=}}

{{Hy|4|n=|c=}}

{{HBack|5|{{y}}|yellow|n=|c=}}

green green1,with a green1clue, green2,with a green2clue, green3,with a green3clue, green4,with a green4clue, card back5,with a green5clue, {{Hg|1}}

{{Hg|2|n=}}

{{Hg|3|c=}}

{{Hg|4|n=|c=}}

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

blue blue1,with a blue1clue, blue2,with a blue2clue, blue3,with a blue3clue, blue4,with a blue4clue, card back5,with a blue5clue, {{Hb|1}}

{{Hb|2|n=}}

{{Hb|3|c=}}

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

{{HBack|5|{{b}}|blue|n=|c=}}

white white1,with a white1clue, white2,with a white2clue, white3,with a white3clue, white4,with a white4clue, card back5,with a white5clue, {{Hw|1}}

{{Hw|2|n=}}

{{Hw|3|c=}}

{{Hw|4|n=|c=}}

{{HBack|5|{{w}}|white|n=|c=}}

multicolor multicolour1,with a multicolour1clue, multicolour2,with a multicolour2clue, multicolour3,with a multicolour3clue, multicolour4,with a multicolour4clue, multicolour5,with a green5clue, card back5,with a multicolor5clue, {{Hm|1}}

{{Hm|2|n=}}

{{Hm|3|c=}}

{{Hm|4|n=|c=}}

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

{{HBack|5|{{m}}|multicolor|n=|c=}}

black powder black powder5,with a black powder5clue, black powder4,with a black powder4clue, {{Hk|5}}

{{Hk|4|n=}}

deck cards in the deck5,with a cards in the deck5clue, {{HDeck|5}}
cardholder red1,with a red1clue,yellow2,with a yellow2clue,green3,with a green3clue,blue4,with a blue4clue, Alice 🡲 {{cardholder|{{Hr|1}}{{Hy|2}}{{Hg|3}}{{Hb|4}}|Alice 🡲}}
red1,with a red1clue,yellow2,with a yellow2clue,green3,with a green3clue,blue4,with a blue4clue, {{cardholder|{{Hr|1|p=A}}{{Hy|2|p=B}}{{Hg|3|p=C}}{{Hb|4|p=D}}}}

Parameters

Id
Parameter Name
Default value
Example
Description
1
Rank
empty
{{HCard|5}}
{{Hg|5}}
Required: card rank
(1/2/3/4/5).
c
Show clue colour
hidden
{{HCard|c=}}
{{Hg|c=}}
Optional: display the colour clue.
n
Show clue number
hidden
{{HCard|n=}}
{{Hg|n=}}
Optional: display the rank clue.
p
Player text
empty
{{HCard|p=A}}
{{Hg|p=A}}
Optional: card holder text: single character below the card to represent a player e.g. A/B/C/D/E.
d
Player text colour
white
{{HCard|d=black}}
{{Hw|d=black}}
Optional: card holder text colour
e.g. green.
2
Colour
white
{{HCard|5|{{g}}}}
{{Hg}}
{{HCard}} Required: card colour
e.g. {{r}} {{y}} {{g}} {{b}} {{w}} {{m}}.
3
Colour letter
empty
{{HCard|5|{{g}}|g}}
{{Hg}}
{{HCard}} Required: card colour letter
(red, yellow, green, blue, white, multicolour).
4
Colour name
empty
{{HCard|5|{{g}}|g|green}}
{{Hg}}
{{HCard}} Required: colour word used for tooltips and screen readers.
a
Clue colour name
empty
{{HCard|a=green}}
{{Hg}}
{{HCard}} Optional: clue colour word used for tooltips and screen readers.
C
Clue colour
Colour
{{HCard|C=green}}
{{Hm|C=green}}
{{HCard}} Optional:
e.g. {{r}} {{y}} {{g}} {{b}} {{w}} {{m}}.
b
Background colour
#324 (black)
{{HCard|b=grey}}
{{HBack}}
{{HCard}} Optional: background colour.
o
Text outline
0
{{HCard|o=1}}
{{Hk}}
{{HCard}} Optional: white text outline thickness in px units.