This is a documentation for Board Game Arena: play board games online !
Template:HCard: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) m ({{{N|card}}}) |
Sammy McSam (talk | contribs) m (Template:HDeck) |
||
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> | ||
== | <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
Examples
- card1card2,with a cardclue,card3,with a card3clue,card4,with a 4clue,card5,with a cardclue,card5,with a multicolour5clue,card5,with a 5clue,card,with a green5clue,card5
{{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
​
(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|​}}}
|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:hidde
n
|sn=
Optional: display the rank clue.
sc
showClueColour
visibility:hidd
e
n|sc=
Optional: display the colour clue.