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

Template:Cardholder

From Board Game Arena
Revision as of 16:37, 25 September 2024 by Sammy McSam (talk | contribs) (remove default parameter values)
Jump to navigation Jump to search

{{{cards}}}

Examples

A♦A♣A♥A♠Alice

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

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
21clue,
multicolour2
,with a
52clue,
black powder3
,with a
black powder3clue,
Bob 🡲

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

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

Available parameters

Parameter
Default value
Example
Result
Description
1
​
|Alice
A♦A♣A♥A♠Alice
Optional: specify holder text.
cards
null
|cards={{spade|1}}{{spade|2}}{{spade|3}}{{spade|4}}
1♠2♠3♠4♠
Required: specify cards.
holderColor
#000 (black)
|holderColor=green
A♦A♣A♥A♠
Optional: specify the holder color as a CSS color.
textColor
#fff (white)
|textColor=green
A♦A♣A♥A♠textColor
Optional: specify the holder text color as a CSS color.
background
#fff0 (transparent)
|background=green
A♦A♣A♥A♠
Optional: specify the background color as a CSS color.
gap
2
|gap=8
A♦A♣A♥A♠
Optional: specify the gap between cards in px units.