This is a documentation for Board Game Arena: play board games online !
Template:HCard: Difference between revisions
Jump to navigation
Jump to search
e.g.
(
e.g.
Sammy McSam (talk | contribs) mNo edit summary |
Sammy McSam (talk | contribs) m (2|#324) |
||
| Line 1: | Line 1: | ||
<span style="display:inline-grid;grid:16px 24px 28px/auto-flow;width:26px;font:500 16px/1.1 Roboto;text-align:center;color:{{{2|# | <span style="display:inline-grid;grid:16px 24px 28px/auto-flow;width:26px;font:500 16px/1.1 Roboto;text-align:center;color:{{{2|#324}}}"><span style="grid-area:2/1/4/1;z-index:1;width:26px;font:700 28px/1.1 Roboto;border-radius:3px;background:{{{b|#324}}};-webkit-text-stroke:{{{o|0}}}px #fff"><span style="font-size:0">{{{4|card}}}</span>{{{1|}}}</span><span aria-hidden="true" style="grid-area:3/1/4/1;z-index:1;width:26px;font:20px/1.1 cursive">{{{3|}}}</span><span aria-hidden="true" style="grid-area:3/1/4/1;position:relative;top:26px;z-index:4;width:26px;color:{{{d|#fff}}}">{{{p|}}}</span><span style="font-size:0;{{{c|visibility:hidde}}}{{{n|n}}}">,with a </span><span style="grid-area:1/1/3/1;width:12px;margin:0 1px;border-radius:3px;border:1px solid #324;background:#ccc8;visibility:hidde{{{n|n}}}"></span><span style="grid-area:1/1/3/1;justify-self:center;width:22px;border-radius:3px;border:1px solid #324;background:{{{C|{{{2}}}}}};{{{c|visibility:hidde}}}n"><span style="font-size:0;{{{c|visibility:hidde}}}n">{{{a|{{{4|}}}}}}</span></span><span style="grid-area:1/1/3/1;padding:0 3px;line-height:1.15;text-align:left;color:#324;visibility:hidde{{{n|n}}}">{{{1|}}}</span><span style="font-size:0;{{{c|visibility:hidde}}}{{{n|n}}}">clue,</span></span><noinclude> | ||
== Examples == | == Examples == | ||
Revision as of 08:13, 16 July 2025
card
Examples
| red | red1 red2,with a 2clue, red3,with a redclue, red4,with a red4clue, card back5,with a red5clue, | {{Hr|1}}
|
|---|---|---|
| yellow | yellow1 yellow2,with a 2clue, yellow3,with a yellowclue, yellow4,with a yellow4clue, card back5,with a yellow5clue, | {{Hy|1}}
|
| green | green1 green2,with a 2clue, green3,with a greenclue, green4,with a green4clue, card back5,with a green5clue, | {{Hg|1}}
|
| blue | blue1 blue2,with a 2clue, blue3,with a blueclue, blue4,with a blue4clue, card back5,with a blue5clue, | {{Hb|1}}
|
| white | white1 white2,with a 2clue, white3,with a whiteclue, white4,with a white4clue, card back5,with a white5clue, | {{Hw|1}}
|
| multicolor | multicolour1 multicolour2,with a 2clue, multicolour3,with a multicolourclue, multicolour4,with a multicolour4clue, multicolour5,with a green5clue, card back5,with a multicolor5clue, | {{Hm|1}}
|
| black powder | black powder5 black powder4,with a 4clue, | {{Hk|5}}
|
| deck | cards in the deck5 | {{HDeck|5}}
|
| cardholder | red1yellow2green3blue4 Alice 🡲 | {{cardholder|{{Hr|1}}{{Hy|2}}{{Hg|3}}{{Hb|4}}|Alice 🡲}}
|
| red1yellow2green3blue4 | {{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
1Rank
empty
{{HCard|5}}{{Hg|5}}Required: card rank
(
(
1/2/3/4/5).cShow clue colour
hidden
{{HCard|c=}}{{Hg|c=}}Optional: display the colour clue.
nShow clue number
hidden
{{HCard|n=}}{{Hg|n=}}Optional: display the rank clue.
pPlayer 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.dPlayer text colour
white
{{HCard|d=black}}{{Hw|d=black}}Optional: card holder text colour
e.g.
e.g.
green.2Colour
white
{{HCard|5|{{g}}}}{{Hg}}{{HCard}} Required: card coloure.g.
{{r}} {{y}} {{g}} {{b}} {{w}} {{m}}.3Colour letter
empty
{{HCard|5|{{g}}|g}}{{Hg}}{{HCard}} Required: card colour letter(
red, yellow, green, blue, white, multicolour).4Colour name
empty
{{HCard|5|{{g}}|g|green}}{{Hg}}{{HCard}} Required: colour word used for tooltips and screen readers.aClue colour name
empty
{{HCard|a=green}}{{Hg}}{{HCard}} Optional: clue colour word used for tooltips and screen readers.CClue colour
Colour
{{HCard|C=green}}{{Hm|C=green}}{{HCard}} Optional:e.g.
{{r}} {{y}} {{g}} {{b}} {{w}} {{m}}.bBackground colour
#324 (black){{HCard|b=grey}}{{HBack}}{{HCard}} Optional: background colour.oText outline
0{{HCard|o=1}}{{Hk}}{{HCard}} Optional: white text outline thickness in px units.