This is a documentation for Board Game Arena: play board games online !
Template:HPlay: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (Created page with "<onlyinclude><div style="display:flex;flex-direction:column;gap:8px;padding:8px;border-radius:6px;background:{{{b|#cef8}}}"><div style="display:flex;gap:1rem"><div class="mw-collapsible"id="mw-customcollapsible-h{{{id|0}}}0"style="display:contents">{{{1|}}}<div>{{{note1|}}}</div></div><div class="mw-collapsible mw-collapsed"id="mw-customcollapsible-h{{{id|0}}}1"style="display:contents">{{{2|}}}<div>{{{note2|}}}</div></div><div class="mw-collapsible mw-collapsed"id="mw-cu...") |
Sammy McSam (talk | contribs) (minimum 2 states, +final state parameters) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude><div style=" | <onlyinclude><div style="padding:8px;border-radius:6px;background:{{{b|#cef8}}}"><div style="display:flex;gap:1rem"><div class="mw-collapsible"id="mw-customcollapsible-h{{{id|0}}}0"style="display:contents"><div>{{{1|}}}</div><div>{{{note1|}}}</div></div><div class="mw-collapsible mw-collapsed"id="mw-customcollapsible-h{{{id|0}}}1"style="display:contents"><div>{{{2|}}}</div><div>{{{note2|}}}</div></div><div class="mw-collapsible mw-collapsed"id="mw-customcollapsible-h{{{id|0}}}2"style="display:contents"><div>{{{3|}}}</div><div>{{{note3|}}}</div></div><div class="mw-collapsible mw-collapsed"id="mw-customcollapsible-h{{{id|0}}}3"style="display:contents"><div>{{{4|}}}</div><div>{{{note4|}}}</div></div><div class="mw-collapsible mw-collapsed"id="mw-customcollapsible-h{{{id|0}}}4"style="display:contents"><div>{{{5|}}}</div><div>{{{note5|}}}</div></div><div class="mw-collapsible mw-collapsed"id="mw-customcollapsible-h{{{id|0}}}5"style="display:contents"><div>{{{6|}}}</div><div>{{{note6|}}}</div></div></div><div style="display:flex"><div class="mw-collapsible"id="mw-customcollapsible-h{{{id|0}}}0"style="cursor:not-allowed">{{button|⯇|3}}</div><div class="mw-collapsible mw-customtoggle-h{{{id|0}}}0 mw-customtoggle-h{{{id|0}}}1"id="mw-customcollapsible-h{{{id|0}}}0">{{button|⯈}}</div><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}0 mw-customtoggle-h{{{id|0}}}1"id="mw-customcollapsible-h{{{id|0}}}1">{{button|⯇}}</div><div style="display:none{{{1steps|e}}}"><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}1 mw-customtoggle-h{{{id|0}}}2"id="mw-customcollapsible-h{{{id|0}}}1">{{button|⯈}}</div></div><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}0 mw-customtoggle-h{{{id|0}}}1"id="mw-customcollapsible-h{{{id|0}}}1">{{button|↺}}</div><div style="display:none{{{1steps|e}}}"><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}1 mw-customtoggle-h{{{id|0}}}2"id="mw-customcollapsible-h{{{id|0}}}2">{{button|⯇}}</div></div><div style="display:none{{{2steps|e}}}"><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}2 mw-customtoggle-h{{{id|0}}}3"id="mw-customcollapsible-h{{{id|0}}}2">{{button|⯈}}</div></div><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}0 mw-customtoggle-h{{{id|0}}}2"id="mw-customcollapsible-h{{{id|0}}}2">{{button|↺}}</div><div style="display:none{{{2steps|e}}}"><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}2 mw-customtoggle-h{{{id|0}}}3"id="mw-customcollapsible-h{{{id|0}}}3">{{button|⯇}}</div></div><div style="display:none{{{3steps|e}}}"><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}3 mw-customtoggle-h{{{id|0}}}4"id="mw-customcollapsible-h{{{id|0}}}3">{{button|⯈}}</div></div><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}0 mw-customtoggle-h{{{id|0}}}3"id="mw-customcollapsible-h{{{id|0}}}3">{{button|↺}}</div><div style="display:none{{{3steps|e}}}"><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}3 mw-customtoggle-h{{{id|0}}}4"id="mw-customcollapsible-h{{{id|0}}}4">{{button|⯇}}</div></div><div style="display:none{{{4steps|e}}}"><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}4 mw-customtoggle-h{{{id|0}}}5"id="mw-customcollapsible-h{{{id|0}}}4">{{button|⯈}}</div></div><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}0 mw-customtoggle-h{{{id|0}}}4"id="mw-customcollapsible-h{{{id|0}}}4">{{button|↺}}</div><div style="display:none{{{4steps|e}}}"><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}4 mw-customtoggle-h{{{id|0}}}5"id="mw-customcollapsible-h{{{id|0}}}5">{{button|⯇}}</div></div><div class="mw-collapsible mw-collapsed mw-customtoggle-h{{{id|0}}}0 mw-customtoggle-h{{{id|0}}}5"id="mw-customcollapsible-h{{{id|0}}}5">{{button|↺}}</div></div></div></onlyinclude> | ||
== Example == | == Example == | ||
| Line 126: | Line 126: | ||
<div>empty</div> | <div>empty</div> | ||
<div>{{code|<nowiki>{{hPlay |state 1 |state 2 |state 3}}</nowiki>}}</div> | <div>{{code|<nowiki>{{hPlay |state 1 |state 2 |state 3}}</nowiki>}}</div> | ||
<div>Up to | <div>Up to 6 game states.</div> | ||
<div>{{code|<nowiki>note#</nowiki>}}</div> | <div>{{code|<nowiki>note#</nowiki>}}</div> | ||
<div>note</div> | <div>note</div> | ||
| Line 136: | Line 136: | ||
<div>5</div> | <div>5</div> | ||
<div>{{code|<nowiki>{{hPlay |4Steps=}}</nowiki>}}</div> | <div>{{code|<nowiki>{{hPlay |4Steps=}}</nowiki>}}</div> | ||
<div>Number of | <div>Number of transitions.</div> | ||
<div>{{code|b}}</div> | <div>{{code|b}}</div> | ||
<div>Background</div> | <div>Background</div> | ||
Latest revision as of 19:06, 5 October 2026
Example
redyellowgreenbluewhite
clue tokens clue tokens clue tokens clue tokens clue tokens clue tokens clue tokens5 clue tokens
Discardedred1cardcardcardBob 🡲red2cardcardcardCathy 🡲card backcard backcard backcard backDonald 🡲
redyellowgreenbluewhite
clue tokens clue tokens clue tokens clue tokens clue tokens clue tokens clue tokens4 clue tokens
Discardedred1cardcardcardBob 🡲red2cardcardcardCathy 🡲card back3,with a 3clue,card backcard backcard backDonald 🡲
Alice to Donald: this card is a 3.
red1yellowgreenbluewhite
clue tokens clue tokens clue tokens clue tokens clue tokens clue tokens clue tokens4 clue tokens
DiscardedcardcardcardcardBob 🡲red2cardcardcardCathy 🡲card back3,with a 3clue,card backcard backcard backDonald 🡲
Bob plays red1.
red2yellowgreenbluewhite
clue tokens clue tokens clue tokens clue tokens clue tokens clue tokens clue tokens4 clue tokens
DiscardedcardcardcardcardBob 🡲cardcardcardcardCathy 🡲card back3,with a 3clue,card backcard backcard backDonald 🡲
Cathy plays red2.
red3yellowgreenbluewhite
clue tokens clue tokens clue tokens clue tokens clue tokens clue tokens clue tokens4 clue tokens
DiscardedcardcardcardcardBob 🡲cardcardcardcardCathy 🡲card backcard backcard backcard backDonald 🡲
Donald plays red3,with a 3clue,.
{{hPlay|id=2|4steps=
|note2=Alice to Donald: this card is a 3.
|note3=Bob plays {{hr|1}}.
|note4=Cathy plays {{hr|2}}.
|note5=Donald plays {{hr|3|n=}}.
|{{hGame
|{{hTable}}
|clues=5
|aHide=
|eHide=
|b={{hr|1}}{{hCard}}{{hCard}}{{hCard}}
|c={{hr|2}}{{hCard}}{{hCard}}{{hCard}}
|d={{hBack}}{{hBack}}{{hBack}}{{hBack}}
}}
|{{hGame
|{{hTable}}
|clues=4
|aHide=
|eHide=
|b={{hr|1}}{{hCard}}{{hCard}}{{hCard}}
|c={{hr|2}}{{hCard}}{{hCard}}{{hCard}}
|d={{hBack|3|n=}}{{hBack}}{{hBack}}{{hBack}}
}}
|{{hGame
|{{hTable|1}}
|clues=4
|aHide=
|eHide=
|b={{hCard}}{{hCard}}{{hCard}}{{hCard}}
|c={{hr|2}}{{hCard}}{{hCard}}{{hCard}}
|d={{hBack|3|n=}}{{hBack}}{{hBack}}{{hBack}}
}}
|{{hGame
|{{hTable|2}}
|clues=4
|aHide=
|eHide=
|b={{hCard}}{{hCard}}{{hCard}}{{hCard}}
|c={{hCard}}{{hCard}}{{hCard}}{{hCard}}
|d={{hBack|3|n=}}{{hBack}}{{hBack}}{{hBack}}
}}
|{{hGame
|{{hTable|3}}
|clues=4
|aHide=
|eHide=
|b={{hCard}}{{hCard}}{{hCard}}{{hCard}}
|c={{hCard}}{{hCard}}{{hCard}}{{hCard}}
|d={{hBack}}{{hBack}}{{hBack}}{{hBack}}
}}
}}
Parameters
Id
Name
Default
Example
Description
id
Id
0
{{hPlay |id=2}}
Unique identifier required to independently control each instance when there are multiple on the same page.
N/A
States
empty
{{hPlay |state 1 |state 2 |state 3}}
Up to 6 game states.
note#
note
empty
{{hPlay |note3=Bob plays {{hy|1}}.}}
Note for each game state.
#steps
Steps
5
{{hPlay |4Steps=}}
Number of transitions.
b
Background
#cef8
{{hPlay |background=green}}
Background color e.g. green.
Pages using Template:HPlay
- User:Sammy McSam/Hanabi/Examples (transclusion) (← links)
- User:Sammy McSam/Hanabi page 2 (transclusion) (← links)
- User:Sammy McSam/Hanabi/Examples page 2 (transclusion) (← links)
- Template:HPlay (transclusion) (← links)