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) |
Sammy McSam (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<onlyinclude><span style="display: | <onlyinclude><span style="float:{{{float|none}}};display:flex;gap:1rem;margin-right:16px;padding:12px 16px 12px 8px;width:fit-content;background:{{{background|#fee8}}};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;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 == | |||
{{code|<nowiki>{{hGame</nowiki><br><nowiki> | {{code|<nowiki>{{hGame</nowiki><br><nowiki> | ||
|{{hTable|1|2|3|4|5|m=1|k=5|d=20|dc=white}}</nowiki><br><nowiki> | |{{hTable|1|2|3|4|5|m=1|k=5|d=20|dc=white}}</nowiki><br><nowiki> | ||
|clues=4</nowiki><br><nowiki> | |||
|{{hDiscard|r=114|g=23|b=24|m=3|k=554}}</nowiki><br><nowiki> | |{{hDiscard|r=114|g=23|b=24|m=3|k=554}}</nowiki><br><nowiki> | ||
|A=You</nowiki><br><nowiki> | |||
|A= | |||
|b={{hr|2}}{{hy|3}}{{hg|4}}{{hb|5}}</nowiki><br><nowiki> | |b={{hr|2}}{{hy|3}}{{hg|4}}{{hb|5}}</nowiki><br><nowiki> | ||
|c={{hg|5}}{{hCard}}{{hCard}}{{hCard}}</nowiki><br><nowiki> | |c={{hg|5|c=}}{{hCard}}{{hCard}}{{hCard}}</nowiki><br><nowiki> | ||
|dHide=</nowiki><br><nowiki> | |||
|eHide=</nowiki><br><nowiki> | |eHide=</nowiki><br><nowiki> | ||
}}</nowiki>}} | |float=left</nowiki><br><nowiki> | ||
|background=powderblue</nowiki><br><nowiki> | |||
}}</nowiki><br><br><nowiki> | |||
* Some notes | |||
</nowiki><br><br><nowiki> | |||
that wrap around | |||
</nowiki><br><br><nowiki> | |||
because the float | |||
</nowiki><br><br><nowiki> | |||
parameter is set.</nowiki>}} | |||
{{hGame | {{hGame | ||
|{{hTable|1|2|3|4|5|m=1|k=5|d=20|dc=white}} | |{{hTable|1|2|3|4|5|m=1|k=5|d=20|dc=white}} | ||
|clues=4 | |clues=4 | ||
|A= | |{{hDiscard|r=11234|g=23|b=24|m=3|k=554}} | ||
|A=You | |||
|b={{hr|2}}{{hy|3}}{{hg|4}}{{hb|5}} | |b={{hr|2}}{{hy|3}}{{hg|4}}{{hb|5}} | ||
|c={{hg|5}}{{hCard}}{{hCard}}{{hCard}} | |c={{hg|5|c=}}{{hCard}}{{hCard}}{{hCard}} | ||
|dHide= | |||
|eHide= | |eHide= | ||
|float=left | |||
|background=powderblue | |||
}} | }} | ||
* Some notes | |||
that wrap around | |||
because the {{code|float}} | |||
parameter is set. | |||
== Parameters == | == Parameters == | ||
| Line 31: | Line 70: | ||
<div>{{code|<nowiki>{{hTable}}</nowiki>}}</div> | <div>{{code|<nowiki>{{hTable}}</nowiki>}}</div> | ||
<div>Played cards on [[Template:hTable]].</div> | <div>Played cards on [[Template:hTable]].</div> | ||
<div>{{code|clues}}</div> | |||
<div>Clues</div> | |||
<div>{{code|8}}</div> | |||
<div>Number of available clue tokens.</div> | |||
<div>2</div> | <div>2</div> | ||
<div>Discard</div> | <div>Discard</div> | ||
<div>{{code|<nowiki>{{hDiscard}}</nowiki>}}</div> | <div>{{code|<nowiki>{{hDiscard}}</nowiki>}}</div> | ||
<div>Discarded cards in [[Template:hDiscard]].</div> | <div>Discarded cards in [[Template:hDiscard]].</div> | ||
<div>{{code|a}}</div> | <div>{{code|a}}</div> | ||
<div>Hand a</div> | <div>Hand a</div> | ||
| Line 99: | Line 138: | ||
<div>visible</div> | <div>visible</div> | ||
<div>Hide the fifth player (Emily).</div> | <div>Hide the fifth player (Emily).</div> | ||
<div>{{code|float}}</div> | |||
<div>Float</div> | |||
<div>none</div> | |||
<div>Float the game to the {{code|left}}/{{code|right}} of main body text.</div> | |||
<div>{{code|background}}</div> | |||
<div>Background</div> | |||
<div>light yellow</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> | ||
<noinclude> | <noinclude> | ||
Revision as of 16:25, 8 July 2026
redyellowgreenbluewhite8 clue tokensDiscarded
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=powderblue
}}
* Some notes
that wrap around
because the float
parameter is set.
20cards in the deckred1yellow2green3blue4white5multicolor1black powder5 4 clue tokensDiscardedr11234g23b24m3554
- 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).
float
Float
none
Float the game to the left/right of main body text.
background
Background
light yellow
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)