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

Template:Cardholder

From Board Game Arena
Revision as of 17:40, 23 June 2025 by Sammy McSam (talk | contribs) (Template:HCard optimisation)
Jump to navigation Jump to search

Examples

A♦A♣A♥A♠ Alice

{{cardholder|{{diamond|A}}{{club|A}}{{heart|A}}{{spade|A}} |Alice }}

Hanabi

red1,with a red1clue,yellow2,with a yellow2clue,green3,with a green3clue,blue4,with a blue4clue, Alice 🡲 white5,with a white5clue,multicolour1,with a multicolour1clue,multicolour2,with a multicolour2clue,black powder3,with a black powder3clue, Bob 🡲

{{cardholder|{{Hr|1}}{{Hy|2|n=}}{{Hg|3|c=}}{{Hb|4|n=|c=}} |Alice 🡲}}

{{cardholder|{{Hw|5|n=}}{{Hm|1|{{g}}|c=}}{{Hm|2|n=|c=}}{{Hk|3|n=}} |Bob 🡲}}

Parameters

Id
Parameter Name
Default value
Example
Result
Description
1
Cards
empty
|{{spade|1}}{{spade|2}}{{spade|3}}{{spade|4}}
1♠2♠3♠4♠
Required: specify cards.
2
Label text
empty
|Alice
A♦A♣A♥A♠ Alice
Optional: label text.
3
Label text color
white
|green
A♦A♣A♥A♠ Alice
Optional: label text color as a CSS color.
c
Label background color
black
|c=green
A♦A♣A♥A♠
Optional: label background color as a CSS color.
g
Gap
2
|g=8
A♦A♣A♥A♠
Optional: specify the gap between cards in px units.