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>

Revision as of 18:54, 17 July 2024

card
,with a
cardclue,

Examples

  • card1
    ,with a
    card1clue,
    card2
    ,with a
    card2clue,
    card3
    ,with a
    card3clue,
    card4
    ,with a
    card4clue,
    card5
    ,with a
    card5clue,
    card5
    ,with a
    multicolour5clue,
    card5
    ,with a
    card5clue,
    card
    ,with a
    green5clue,
    card5
    ,with a
    card5clue,

{{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.