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

Template:HCard: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
m ({{{N|card}}})
 
Line 3: Line 3:
== Examples ==
== Examples ==


* {{Hr|1}} {{Hy|2|c=}} {{Hg|3|n=|c=}} {{Hb|4|n=|c}} {{Hw|5|n|c=}} {{Hm|5|n=|c=}} {{Hk|5|n=}} {{HBack|5|{{g}}|green|n=|c=}}
* {{Hr|1}} {{Hy|2|c=}} {{Hg|3|n=|c=}} {{Hb|4|n=|c}} {{Hw|5|n|c=}} {{Hm|5|n=|c=}} {{Hk|5|n=}} {{HBack|5|{{g}}|green|n=|c=}} {{HDeck|5}}


<code><nowiki>{{Hr|1}}</nowiki></code>
<code><nowiki>{{Hr|1}}</nowiki></code>
Line 21: Line 21:
<code><nowiki>{{HBack|5|{{g}}|green|n=|c=}}</nowiki></code>
<code><nowiki>{{HBack|5|{{g}}|green|n=|c=}}</nowiki></code>


== Available parameters ==
<code><nowiki>{{HDeck|5}}</nowiki></code>
 
== Parameters ==
<div style="display:grid;grid-template-columns:repeat(4,max-content) 2fr;gap:0.5rem;overflow:auto;text-overflow:ellipsis;">
<div style="display:grid;grid-template-columns:repeat(4,max-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 Id</div>

Latest revision as of 19:54, 17 July 2024

card
,with a
cardclue,

Examples

  • red1
    ,with a
    red1clue,
    yellow2
    ,with a
    yellow2clue,
    green3
    ,with a
    green3clue,
    blue4
    ,with a
    blue4clue,
    white5
    ,with a
    white5clue,
    multicolour5
    ,with a
    multicolour5clue,
    black powder5
    ,with a
    black powder5clue,
    card back
    ,with a
    green5clue,
    cards in the deck5
    ,with a
    cards in the deck5clue,

{{Hr|1}}

{{Hy|2|n|c=}}

{{Hg|3|n=|c=}}

{{Hb|4|n=|c}}

{{Hw|5|n|c=}}

{{Hm|5|n=|c=}}

{{Hk|5|n=}}

{{HBack|5|{{g}}|green|n=|c=}}

{{HDeck|5}}

Parameters

Parameter Id
Parameter Name
Default value
Example
Description
1
null
&#8203; (ZeroWidthSpace)
|5
Required: specify the card rank (1/2/3/4/5).
c
colour
transparent
|c={{g}}
Required: specify the card colour: {{r}} {{y}} {{g}} {{b}} {{w}} {{m}}
L
colourLetter
null
|L=g
Required: specify the card colour letter: red ⇨r, yellow ⇨y, green ⇨g, blue ⇨b, white ⇨w, multicolour ⇨m.
N
colourName
card
|N=green
Required: specify the colour word used for tooltips and screen readers.
cN
clueColourName
{{{N|card}}}
|cN=green
Optional: specify the clue colour word used for tooltips and screen readers.
cc
clueColour
{{{c|transparent}}}
|cc={{g}}
Optional: specify the clue colour: {{r}} {{y}} {{g}} {{b}} {{w}} {{m}}
cn
clueNumber
{{{1|&#8203;}}}
|cn={{1}}
Optional: specify the clue rank: (1/2/3/4/5).
o
textOutline
0
|o=1
Optional: specify the text outline opacity: transparent ⇨0, opaque ⇨1
b
backgroundColour
#2F2342 (black)
|b=grey
Optional: specify the background colour.
sn
showClueNumber
visibility:hidden
|sn=
Optional: display the rank clue.
sc
showClueColour
visibility:hidden
|sc=
Optional: display the colour clue.