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) m (Template:HTable Template:HDiscard updates) |
Sammy McSam (talk | contribs) (optimisation) |
||
| Line 1: | Line 1: | ||
<onlyinclude>< | <onlyinclude><div style="float:{{{float|none}}};display:flex;gap:12px;margin-right:16px;padding:12px;width:fit-content;background:{{{background|#cef}}};border-radius:6px;white-space:nowrap"><div style="display:flex;flex-direction:column;gap:8px;width:fit-content">{{{1|{{hTable}}}}}{{{cluesHide|<div style="display:grid;place-items:center;background:#fff;padding:8px;width:fit-content;border-radius:6px">{{hclue|{{{clues|8}}}}}</div>}}}{{{2|{{hDiscard|}}}}}</div><div style="display:flex;flex-direction:column;gap:4px;width:fit-content">{{{aHide|{{cardholder|{{{a|{{hBack}}{{hBack}}{{hBack}}{{hBack}}}}}|{{{A|Alice}}} 🡲}}}}}{{{bHide|{{cardholder|{{{b|{{hCard}}{{hCard}}{{hCard}}{{hCard}}}}}|{{{B|Bob}}} 🡲}}}}}{{{cHide|{{cardholder|{{{c|{{hCard}}{{hCard}}{{hCard}}{{hCard}}}}}|{{{C|Cathy}}} 🡲}}}}}{{{dHide|{{cardholder|{{{d|{{hCard}}{{hCard}}{{hCard}}{{hCard}}}}}|{{{D|Donald}}} 🡲}}}}}{{{eHide|{{cardholder|{{{e|{{hCard}}{{hCard}}{{hCard}}{{hCard}}}}}|{{{E|Emily}}} 🡲}}}}}</div></div></onlyinclude> | ||
== Examples == | == Examples == | ||
Revision as of 14:17, 2 September 2026
redyellowgreenbluewhite
8 clue tokens
Discardedcard backcard backcard backcard backAlice 🡲cardcardcardcardBob 🡲cardcardcardcardCathy 🡲cardcardcardcardDonald 🡲cardcardcardcardEmily 🡲
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
4 clue tokens
Discardedr11234g23b24m3554
card backcard backcard backcard backYou 🡲red2yellow3green4blue5Bob 🡲green5,with a green clue,cardcardcardCathy 🡲
- 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)