This is a documentation for Board Game Arena: play board games online !

Template:HGame: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
(background)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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>
<onlyinclude><div style="float:{{{float|none}}};display:flex;gap:12px;margin-right:16px;padding:12px;width:fit-content;background:{{{background|}}};border-radius:6px;white-space:nowrap"><div style="display:flex;flex-direction:column;gap:8px;width:fit-content">{{{1|{{hTable}}}}}<div>{{{clueBox|{{hClues|a{{{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 ==
Line 13: Line 13:
|eHide=</nowiki><br><nowiki>
|eHide=</nowiki><br><nowiki>
|float=left</nowiki><br><nowiki>
|float=left</nowiki><br><nowiki>
|background=purple</nowiki><br><nowiki>
|background=lightcyan</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=purple
|background=lightcyan
}}
}}


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>{{code|clueBox}}</div>
   <div>Hide Clues</div>
   <div>Clue Box</div>
   <div>visible</div>
   <div>visible</div>
   <div>Hide the clue tokens.</div>
   <div>Hide clue box or replace with [[Template:hclue]].</div>
   <div>{{code|float}}</div>
   <div>{{code|float}}</div>
   <div>Float</div>
   <div>Float</div>

Latest revision as of 15:28, 2 September 2026

cards in the deckredyellowgreenbluewhitemulticolorblack powder
​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens1 clue tokens2 clue tokens3 clue tokens4 clue tokens5 clue tokens6 clue tokens7 clue tokens8 clue tokens
Discardedrygbwm
card back,with a clue,card back,with a clue,card back,with a clue,card back,with a clue,Alice 🡲card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Bob 🡲card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Cathy 🡲card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Donald 🡲card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Emily 🡲

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=lightcyan
}}

* Some notes

that wrap around

because the float

parameter is set.

20cards in the deckred1yellow2green3blue4white5multicolor1black powder5
​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens​ clue tokens1 clue tokens2 clue tokens3 clue tokens4 clue tokens5 clue tokens6 clue tokens7 clue tokens8 clue tokens
Discardedr11234yg23b24wm3554
card back,with a clue,card back,with a clue,card back,with a clue,card back,with a clue,You 🡲red2,with a red 2clue,yellow3,with a yellow 3clue,green4,with a green 4clue,blue5,with a blue 5clue,Bob 🡲green5,with a green 5clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Cathy 🡲
  • 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).
clueBox
Clue Box
visible
Hide clue box or replace with Template:hclue.
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