This is a documentation for Board Game Arena: play board games online !
Template:Cardholder: Difference between revisions
Jump to navigation
Jump to search
Alice 🡲
Bob 🡲
Sammy McSam (talk | contribs) No edit summary |
Sammy McSam (talk | contribs) mNo edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="display:inline-flex;flex: | <span style="display:inline-flex;flex-direction:column;"><span style="display:flex;justify-content:space-evenly;gap:0 {{{g|2}}}px;margin:0 4px;white-space:nowrap">{{{1}}}</span><span style="position:relative;top:-4px;z-index:2;background:{{{c|#000}}};color:{{{3|#fff}}};font:500 14px/1.4 Roboto;padding:0 4px;border-radius:4px 4px 1px 1px">{{{2|​}}}</span></span><noinclude> | ||
== Examples == | |||
{{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> | |||
=== [[Gamehelphanabi|Hanabi]] === | |||
{{cardholder|{{Hr|1|n|c}}{{Hy|2|n=|c}}{{Hg|3|n|c=}}{{Hb|4|n=|c=}} |Alice 🡲}} | |||
{{cardholder|{{Hw|5|n|c}}{{Hm|1|{{g}}|2|0|n|c=}}{{Hm|2|{{m}}|5|0|n=|c=}}{{Hk|3|n=}} |Bob 🡲}} | |||
<code><nowiki>{{cardholder|</nowiki>'''<span style="background:#fdd;"><nowiki>{{Hr|1}}</nowiki></span><span style="background:#ffd;"><nowiki>{{Hy|2|n=}}</nowiki></span><span style="background:#dfd;"><nowiki>{{Hg|3|c=}}</nowiki></span><span style="background:#ddf;"><nowiki>{{Hb|4|n=|c=}}</nowiki></span>''' <nowiki>|</nowiki>'''Alice 🡲'''<nowiki>}}</nowiki></code> | |||
<code><nowiki>{{cardholder|</nowiki>'''<span style="background:#fff;"><nowiki>{{Hw|5|n=}}</nowiki></span><span style="background:#eef;"><nowiki>{{Hm|1|{{g}}|2|0|c=}}</nowiki></span><span style="background:#edf;"><nowiki>{{Hm|2|{{m}}|5|0|n=|c=}}</nowiki></span><span style="background:#ddd;"><nowiki>{{Hk|3|n=}}</nowiki></span>''' <nowiki>|</nowiki>'''Bob 🡲'''<nowiki>}}</nowiki></code> | |||
== Available parameters == | |||
<div style="display:grid;grid-template-columns:repeat(5,min-content) 2fr;gap:0.5rem;overflow:auto;text-overflow:ellipsis;"> | |||
<div style="font-weight:bold;width:8rem;">Parameter Id</div> | |||
<div style="font-weight:bold;width:8rem;">Parameter Name</div> | |||
<div style="font-weight:bold;width:8rem;">Default value</div> | |||
<div style="font-weight:bold;width:8rem;">Example</div> | |||
<div style="font-weight:bold;width:8rem;">Result</div> | |||
<div style="font-weight:bold;width:8rem;">Description</div> | |||
<div><code>1</code></div> | |||
<div><code>cards</code></div> | |||
<div><code>null</code></div> | |||
<div><code><nowiki>|{{spade|1}}</nowiki></code><code><nowiki>{{spade|2}}</nowiki></code><code><nowiki>{{spade|3}}</nowiki></code><code><nowiki>{{spade|4}}</nowiki></code></div> | |||
<div>{{cardholder|{{spade|1}}{{spade|2}}{{spade|3}}{{spade|4}} }}</div> | |||
<div>'''''Required''''': specify cards.</div> | |||
<div><code>2</code></div> | |||
<div><code>label</code></div> | |||
<div><code>&ZeroWidthSpace;</code></div> | |||
<div><code><nowiki>|Alice</nowiki></code></div> | |||
<div>{{cardholder|{{diamond|A}}{{club|A}}{{heart|A}}{{spade|A}} |Alice}}</div> | |||
<div>'''''Optional''''': specify a label.</div> | |||
<div><code>3</code></div> | |||
<div><code>labelColor</code></div> | |||
<div><code>#fff</code> | |||
(white)</div> | |||
<div><code><nowiki>|green</nowiki></code></div> | |||
<div>{{cardholder|{{diamond|A}}{{club|A}}{{heart|A}}{{spade|A}} |Alice|green|c=lightgrey}}</div> | |||
<div>'''''Optional''''': specify the label color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color].</div> | |||
<div><code>c</code></div> | |||
<div><code>color</code></div> | |||
<div><code>#000</code> | |||
(black)</div> | |||
<div><code><nowiki>|c=green</nowiki></code></div> | |||
<div>{{cardholder|{{diamond|A}}{{club|A}}{{heart|A}}{{spade|A}} |c=green}}</div> | |||
<div>'''''Optional''''': specify the color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color].</div> | |||
<div><code>g</code></div> | |||
<div><code>gap</code></div> | |||
<div><code>2</code></div> | |||
<div><code><nowiki>|g=8</nowiki></code></div> | |||
<div>{{cardholder|{{diamond|A}}{{club|A}}{{heart|A}}{{spade|A}} |g=8}}</div> | |||
<div>'''''Optional''''': specify the gap between cards in px units.</div> | |||
</div> | |||
[[Category:HanabiCards]] | |||
[[Category:Card templates]] | [[Category:Card templates]] | ||
</noinclude> | </noinclude> |
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
yellow2
,with a 2clue,green3
,with a greenclue,blue4
,with a blue4clue,white5
multicolour1
,with a 2clue,multicolour2
,with a 52clue,black powder3
,with a 3clue,{{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
​
|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.