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) (compressed Template:HCard Template:cardholder, +cardHolderLabel parameters) |
Sammy McSam (talk | contribs) m (width:26px;) |
||
| Line 1: | Line 1: | ||
<div style="display:inline-grid;grid:16px 24px 28px/auto-flow;width:26px;color:{{{2|#fff}}};text-align:center;vertical-align:-webkit-baseline-middle"><div style="grid-area:2/1/4/1;z-index:1;width:26px;border-radius:3px;background:{{{b|#324}}};font:700 28px/1.1 Roboto;-webkit-text-stroke:1px rgb(255 255 255/{{{o|0}}})"><span style="font-size:0">{{{4|card}}}</span>{{{1|​}}}</div><div aria-hidden="true" style="grid-area:3/1/4/1;z-index:1;font:20px/1.1 cursive">{{{3|​}}}</div><div aria-hidden="true" style="grid-area:3/1/4/1;position:relative;top:26px;color:{{{hc|#fff}}};font:700 18px/1.1 Roboto;z-index:4">{{{h|}}}</div><span style="visibility:hidd{{{sc|e}}}{{{sn|n}}};font-size:0">,with a </span><div style="grid-area:1/1/3/1;width:12px;margin:0 1px;border-radius:3px;border:1px solid #324;background:#ccc8;visibility:hidde{{{sn|n}}}"></div><span style="grid-area:1/1/3/1;justify-self:center;width:22px;border-radius:3px;border:1px solid #324;background:{{{cc|{{{2|transparent}}}}}};visibility:hidd{{{sc|e}}}n"><span style="visibility:hidd{{{sc|e}}}n;font-size:0">{{{cN|{{{4|card}}}}}}</span></span><span style="grid-area:1/1/3/1;visibility:hidde{{{sn|n}}};padding:0 3px;font:500 16px/1.15 Roboto;text-align:left;color:#324">{{{cn|{{{1|​}}}}}}</span><span style="visibility:hidd{{{sc|e}}}{{{sn|n}}};font-size:0">clue,</span></div><noinclude> | <div style="display:inline-grid;grid:16px 24px 28px/auto-flow;width:26px;color:{{{2|#fff}}};text-align:center;vertical-align:-webkit-baseline-middle"><div style="grid-area:2/1/4/1;z-index:1;width:26px;border-radius:3px;background:{{{b|#324}}};font:700 28px/1.1 Roboto;-webkit-text-stroke:1px rgb(255 255 255/{{{o|0}}})"><span style="font-size:0">{{{4|card}}}</span>{{{1|​}}}</div><div aria-hidden="true" style="grid-area:3/1/4/1;z-index:1;width:26px;font:20px/1.1 cursive">{{{3|​}}}</div><div aria-hidden="true" style="grid-area:3/1/4/1;width:26px;position:relative;top:26px;color:{{{hc|#fff}}};font:700 18px/1.1 Roboto;z-index:4">{{{h|​}}}</div><span style="visibility:hidd{{{sc|e}}}{{{sn|n}}};font-size:0">,with a </span><div style="grid-area:1/1/3/1;width:12px;margin:0 1px;border-radius:3px;border:1px solid #324;background:#ccc8;visibility:hidde{{{sn|n}}}"></div><span style="grid-area:1/1/3/1;justify-self:center;width:22px;border-radius:3px;border:1px solid #324;background:{{{cc|{{{2|transparent}}}}}};visibility:hidd{{{sc|e}}}n"><span style="visibility:hidd{{{sc|e}}}n;font-size:0">{{{cN|{{{4|card}}}}}}</span></span><span style="grid-area:1/1/3/1;visibility:hidde{{{sn|n}}};padding:0 3px;font:500 16px/1.15 Roboto;text-align:left;color:#324">{{{cn|{{{1|​}}}}}}</span><span style="visibility:hidd{{{sc|e}}}{{{sn|n}}};font-size:0">clue,</span></div><noinclude> | ||
== Examples == | == Examples == | ||
: {{Hr | : {{Hr|1}} {{Hy|2|c=}} {{Hg|3|n=|c=}} {{Hb|4|n=|c}} {{Hw|5|n|c=}} {{Hm|5|n=|c=}} {{Hk|5|n=}} | ||
<code><nowiki>{{Hr|1}}</nowiki></code> | <code><nowiki>{{Hr|1}}</nowiki></code> | ||
| Line 102: | Line 102: | ||
<div><code>h</code></div> | <div><code>h</code></div> | ||
<div><code>cardHolderLabel</code></div> | <div><code>cardHolderLabel</code></div> | ||
<div><code> | <div><code>&#8203;</code></div> | ||
<div><code><nowiki>|h=A</nowiki></code></div> | <div><code><nowiki>|h=A</nowiki></code></div> | ||
<div>'''''Optional:''''' specify a character below the card e.g. to represent a player: <code>A</code>/<code>B</code>/<code>C</code>.</div> | <div>'''''Optional:''''' specify a character below the card e.g. to represent a player: <code>A</code>/<code>B</code>/<code>C</code>.</div> | ||
Revision as of 20:23, 26 September 2024
card
Examples
- red1yellow2green3blue4white5multicolour5black powder5
{{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}}
{{cardholder|​|cards=
{{Hr|1|h=A}}{{Hy|2|h=B}}{{Hg|3|h=C}}{{Hb|4|h=D}}
}}
Parameters
Parameter Id
Parameter Name
Default value
Example
Description
1rank​|5Required: specify the card rank (
1/2/3/4/5).2colourtransparent|{{g}}Required: specify the card colour e.g.
{{r}} {{y}} {{g}} {{b}} {{w}} {{m}}3colourLetternull|gRequired: specify the card colour letter: red ⇨
r, yellow ⇨y, green ⇨g, blue ⇨b, white ⇨w, multicolour ⇨m.4colourNamecard|greenRequired: specify the colour word used for tooltips and screen readers.
cNclueColourName{{{N|card}}}|cN=greenOptional: specify the clue colour word used for tooltips and screen readers.
ccclueColour{{{2|transparent}}}|cc={{g}}Optional: specify the clue colour e.g.
{{r}} {{y}} {{g}} {{b}} {{w}} {{m}}cnclueNumber{{{1|​}}}|cn={{1}}Optional: specify the clue rank: (
1/2/3/4/5).otextOutline0|o=1Optional: specify the text outline opacity: transparent ⇨
0, opaque ⇨1bbackgroundColour#324 (black)|b=greyOptional: specify the background colour.
snshowClueNumbervisibility:hidde
n|sn=Optional: display the rank clue.
scshowClueColourvisibility:hidd
en|sc=Optional: display the colour clue.
hcardHolderLabel​|h=AOptional: specify a character below the card e.g. to represent a player:
A/B/C.hccardHolderLabelColour#fff (white)|hc=greenOptional: specify the card holder label colour e.g.
green