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

Template:Cardholder: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
(compressed Template:HCard Template:cardholder, +cardHolderLabel parameters)
mNo edit summary
Line 5: Line 5:
{{cardholder|{{diamond|A}}{{club|A}}{{heart|A}}{{spade|A}} |Alice}}
{{cardholder|{{diamond|A}}{{club|A}}{{heart|A}}{{spade|A}} |Alice}}


<code><nowiki>{{cardholder|</nowiki>'''<span style="background:#fdd;"><nowiki>{{diamond|A}}</nowiki></span><span style="background:#eee;"><nowiki>{{club|A}}</nowiki></span><span style="background:#fdd;"><nowiki>{{heart|A}}</nowiki></span><span style="background:#eee;"><nowiki>{{spade|A}}|</nowiki>'''Alice'''</span>'''<nowiki> }}</nowiki></code>
<code><nowiki>{{cardholder|</nowiki>'''<span style="background:#fdd;"><nowiki>{{diamond|A}}</nowiki></span><span style="background:#eee;"><nowiki>{{club|A}}</nowiki></span><span style="background:#fdd;"><nowiki>{{heart|A}}</nowiki></span><span style="background:#eee;"><nowiki>{{spade|A}} |</nowiki>'''Alice'''</span>'''<nowiki> }}</nowiki></code>


=== [[Gamehelphanabi|Hanabi]] ===
=== [[Gamehelphanabi|Hanabi]] ===

Revision as of 00:07, 27 September 2024

{{{1}}}

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
21clue,
multicolour2
,with a
52clue,
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}}|2|0|c=}}{{Hm|2|{{m}}|5|0|n=|c=}}{{Hk|3|n=}} |Bob 🡲}}

Available parameters

Parameter Id
Parameter Name
Default value
Example
Result
Description
1
cards
null
|{{spade|1}}{{spade|2}}{{spade|3}}{{spade|4}}
1♠2♠3♠4♠
Required: specify cards.
2
label
&ZeroWidthSpace;
|Alice
A♦A♣A♥A♠ Alice
Optional: specify a label.
3
labelColor
#fff (white)
|green
A♦A♣A♥A♠ Alice
Optional: specify the label color as a CSS color.
c
color
#000 (black)
|c=green
A♦A♣A♥A♠
Optional: specify the color as a CSS color.
g
gap
2
|g=8
A♦A♣A♥A♠
Optional: specify the gap between cards in px units.