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) (reduced) |
Sammy McSam (talk | contribs) (textOutline) |
||
| Line 1: | Line 1: | ||
<div style="display:inline-grid;grid:16px 4px 24px 28px/26px;place-items:baseline center;width:26px;margin-inline:2px;"><div style="grid-area:1/1/3/1;place-self:center start;width:12px;height:100%;margin:0 1px;border-radius:3px 3px 0 0;border:1px solid #2F2342;background-color:#ccc8;display:{{{showClueNumber|none}}};"></div><div style="grid-area:1/1/3/1;width:22px;height:100%;margin:-1px 1px;border-radius:3px 3px 0 0;border:1px solid #2F2342;background-color:{{{clueColour|{{{colour|transparent}}}}}};visibility:{{{showClueColour|hidden}}};"></div><div style="grid-area:1/1/2/1;display:{{{showClueNumber|none}}};place-self:center start;width:24px;padding:0 3px;line-height:normal;font-family:Roboto,Arial,sans-serif;font-weight:500;font-size:16px;color:#2F2342;">{{{1|}}}</div><div alt="{{{colourName|}}} {{{1|}}}" style="grid-area:2/1/4/1;display:grid;place-items:start center;width:26px;background-color:#2F2342;color:{{{colour|transparent}}} | <div style="display:inline-grid;grid:16px 4px 24px 28px/26px;place-items:baseline center;width:26px;margin-inline:2px;"><div style="grid-area:1/1/3/1;place-self:center start;width:12px;height:100%;margin:0 1px;border-radius:3px 3px 0 0;border:1px solid #2F2342;background-color:#ccc8;display:{{{showClueNumber|none}}};"></div><div style="grid-area:1/1/3/1;width:22px;height:100%;margin:-1px 1px;border-radius:3px 3px 0 0;border:1px solid #2F2342;background-color:{{{clueColour|{{{colour|transparent}}}}}};visibility:{{{showClueColour|hidden}}};"></div><div style="grid-area:1/1/2/1;display:{{{showClueNumber|none}}};place-self:center start;width:24px;padding:0 3px;line-height:normal;font-family:Roboto,Arial,sans-serif;font-weight:500;font-size:16px;color:#2F2342;">{{{1|​}}}</div><div alt="{{{colourName|}}} {{{1|}}}" style="grid-area:2/1/4/1;display:grid;place-items:start center;width:26px;border-radius:3px 3px 0 0;background-color:#2F2342;color:{{{colour|transparent}}};line-height:normal;font-family:Roboto,Arial,sans-serif;font-weight:500;font-size:28px;-webkit-text-stroke:1px rgba(255,255,255,{{{textOutline|0}}});">{{{1|​}}}</div><div style="grid-area:4/1/5/1;display:grid;place-items:start center;width:26px;height:100%;border-radius:0 0 3px 3px;background-color:#2F2342;">{{gameIcon|imageFileName=Hanabi_numbers_icons_140.png|width=24|height=26|x=24*{{{x|-1}}}}}</div></div><noinclude> | ||
== Examples == | == Examples == | ||
| Line 8: | Line 8: | ||
{{Hb|4|n=|c}} | {{Hb|4|n=|c}} | ||
{{Hw|5|n|c=}} | {{Hw|5|n|c=}} | ||
{{Hm|5|{{ | {{Hm|5|{{m}}|2|n=|c=}} | ||
{{Hk|5|n=}} | {{Hk|5|n=}} | ||
| Line 21: | Line 21: | ||
<code><nowiki>{{Hw|5|n|c=}}</nowiki></code> | <code><nowiki>{{Hw|5|n|c=}}</nowiki></code> | ||
<code><nowiki>{{Hm|5|{{ | <code><nowiki>{{Hm|5|{{m}}|2|n=|c=}}</nowiki></code> | ||
<code><nowiki>{{Hk|5|n=}}</nowiki></code> | <code><nowiki>{{Hk|5|n=}}</nowiki></code> | ||
Revision as of 17:05, 28 December 2023
Examples
1
2
3
4
5
5
5
{{Hr|1|n=|c}}
{{Hy|2|n|c=}}
{{Hg|3|n=|c=}}
{{Hb|4|n=|c}}
{{Hw|5|n|c=}}
{{Hm|5|{{m}}|2|n=|c=}}
{{Hk|5|n=}}
Available parameters
Parameter
Default value
Example
Description
1null|5Required: specify the card rank (
1/2/3/4/5).colourtransparent|colour={{g}}Required: specify the card colour:
{{r}} {{y}} {{g}} {{b}} {{w}} {{m}}x-1|x=2Required: specify the card colour symbol as an integer: red ⇨
0, yellow ⇨1, green ⇨2, blue ⇨3, white ⇨4, multicolour ⇨5, black powder ⇨6.colourNamenull|colourName=greenRequired: specify the colour word used for tooltips and screen readers.
clueColournull|clueColour={{g}}Optional: specify the clue colour:
{{r}} {{y}} {{g}} {{b}} {{w}} {{m}}showClueNumbernone|showClueNumber=Optional: display the rank clue.
showClueColourhidden|showClueColour=Optional: display the colour clue.