This is a documentation for Board Game Arena: play board games online !
Template:HGame: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) No edit summary |
Sammy McSam (talk | contribs) (cluesHide) |
||
| Line 1: | Line 1: | ||
<onlyinclude><span style="float:{{{float|none}}};display:flex;gap: | <onlyinclude><span style="float:{{{float|none}}};display:flex;gap:8px;margin-right:16px;padding:12px 16px 12px 8px;width:fit-content;background:{{{background|#cef}}};border-radius:6px;white-space:nowrap"><span style="display:inline-flex;flex-direction:column;gap:8px;width:fit-content">{{{1|{{hTable}}}}}<span style="display:inline-grid;display:none{{{cluesHide|e}}};place-items:center;background:#fff;padding:8px;margin:0 4px;width:fit-content;border-radius:6px">{{hclue|{{{clues|8}}}}}</span>{{{2|{{hDiscard|}}}}}</span><span style="display:inline-flex;flex-direction:column;gap:4px;width:fit-content"><span style="display:none{{{aHide|e}}}">{{cardholder|{{{a|{{hBack}}{{hBack}}{{hBack}}{{hBack}}}}}|{{{A|Alice}}} 🡲}}</span><span style="display:none{{{bHide|e}}}">{{cardholder|{{{b|{{hCard}}{{hCard}}{{hCard}}{{hCard}}}}}|{{{B|Bob}}} 🡲}}</span><span style="display:none{{{cHide|e}}}">{{cardholder|{{{c|{{hCard}}{{hCard}}{{hCard}}{{hCard}}}}}|{{{C|Cathy}}} 🡲}}</span><span style="display:none{{{dHide|e}}}">{{cardholder|{{{d|{{hCard}}{{hCard}}{{hCard}}{{hCard}}}}}|{{{D|Donald}}} 🡲}}</span><span style="display:none{{{eHide|e}}}">{{cardholder|{{{e|{{hCard}}{{hCard}}{{hCard}}{{hCard}}}}}|{{{E|Emily}}} 🡲}}</span></span></span></onlyinclude> | ||
== Examples == | == Examples == | ||
| Line 13: | Line 13: | ||
|eHide=</nowiki><br><nowiki> | |eHide=</nowiki><br><nowiki> | ||
|float=left</nowiki><br><nowiki> | |float=left</nowiki><br><nowiki> | ||
|background= | |background=purple</nowiki><br><nowiki> | ||
}}</nowiki><br><br><nowiki> | }}</nowiki><br><br><nowiki> | ||
* Some notes | * Some notes | ||
| Line 33: | Line 33: | ||
|eHide= | |eHide= | ||
|float=left | |float=left | ||
|background= | |background=purple | ||
}} | }} | ||
| Line 138: | Line 138: | ||
<div>visible</div> | <div>visible</div> | ||
<div>Hide the fifth player (Emily).</div> | <div>Hide the fifth player (Emily).</div> | ||
<div>{{code|cluesHide}}</div> | |||
<div>Hide Clues</div> | |||
<div>visible</div> | |||
<div>Hide the clue tokens.</div> | |||
<div>{{code|float}}</div> | <div>{{code|float}}</div> | ||
<div>Float</div> | <div>Float</div> | ||
| Line 144: | Line 148: | ||
<div>{{code|background}}</div> | <div>{{code|background}}</div> | ||
<div>Background</div> | <div>Background</div> | ||
<div>light | <div>light blue</div> | ||
<div>Background color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value CSS color value].</div> | <div>Background color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value CSS color value].</div> | ||
</div> | </div> | ||
Revision as of 17:18, 8 July 2026
redyellowgreenbluewhiteDiscarded
Examples
{{hGame
|{{hTable|1|2|3|4|5|m=1|k=5|d=20|dc=white}}
|clues=4
|{{hDiscard|r=114|g=23|b=24|m=3|k=554}}
|A=You
|b={{hr|2}}{{hy|3}}{{hg|4}}{{hb|5}}
|c={{hg|5|c=}}{{hCard}}{{hCard}}{{hCard}}
|dHide=
|eHide=
|float=left
|background=purple
}}
* Some notes
that wrap around
because the float
parameter is set.
20cards in the deckred1yellow2green3blue4white5multicolor1black powder5 Discardedr11234g23b24m3554
- Some notes
that wrap around
because the float
parameter is set.
Parameters
Id
Name
Default
Description
1
Table
{{hTable}}
Played cards on Template:hTable.
clues
Clues
8
Number of available clue tokens.
2
Discard
{{hDiscard}}
Discarded cards in Template:hDiscard.
a
Hand a
{{hBack}}{{hBack}}{{hBack}}{{hBack}}
First player (Alice)'s hand of Template:hBack.
b
Hand b
{{hCard}}{{hCard}}{{hCard}}{{hCard}}
Second player (Bob)'s hand of Template:hCard.
c
Hand c
{{hCard}}{{hCard}}{{hCard}}{{hCard}}
Third player (Cathy)'s hand of Template:hCard.
d
Hand d
{{hCard}}{{hCard}}{{hCard}}{{hCard}}
Fourth player (Donald)'s hand of Template:hCard.
e
Hand e
{{hCard}}{{hCard}}{{hCard}}{{hCard}}
Fifth player (Emily)'s hand of Template:hCard.
A
Name A
Alice
First player (Alice)'s name.
B
Name B
Bob
Second player (Bob)'s name.
C
Name C
Cathy
Third player (Cathy)'s name.
D
Name D
Donald
Fourth player (Donald)'s name.
E
Name E
Emily
Fifth player (Emily)'s name.
aHide
Hide a
visible
Hide the first player (Alice).
bHide
Hide b
visible
Hide the second player (Bob).
cHide
Hide c
visible
Hide the third player (Cathy).
dHide
Hide d
visible
Hide the fourth player (Donald).
eHide
Hide e
visible
Hide the fifth player (Emily).
cluesHide
Hide Clues
visible
Hide the clue tokens.
float
Float
none
Float the game to the left/right of main body text.
background
Background
light blue
Background color as a CSS color value.
Pages using Template:HGame
- User:Sammy McSam/Hanabi/Examples (transclusion) (← links)
- User:Sammy McSam/Hanabi/Examples page 2 (transclusion) (← links)
- Template:HGame (transclusion) (← links)
- Template:HPlay (transclusion) (← links)