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

Template:HPlay: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
(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...")
 
(minimum 2 states, +final state parameters)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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-customcollapsible-h{{{id|0}}}2"style="display:contents">{{{3|}}}<div>{{{note3|}}}</div></div><div class="mw-collapsible mw-collapsed"id="mw-customcollapsible-h{{{id|0}}}3"style="display:contents">{{{4|}}}<div>{{{note4|}}}</div></div><div class="mw-collapsible mw-collapsed"id="mw-customcollapsible-h{{{id|0}}}4"style="display:contents">{{{5|}}}<div>{{{note5|}}}</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 style="display:none{{{0steps|e}}}"><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><div style="display:none{{{0steps|e}}}"><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><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>
<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 5 game states.</div>
   <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 steps.</div>
   <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

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
red1,with a red 1clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Bob 🡲red2,with a red 2clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Cathy 🡲card back,with a clue,card back,with a clue,card back,with a clue,card back,with a clue,Donald 🡲
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
red1,with a red 1clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Bob 🡲red2,with a red 2clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Cathy 🡲card back3,with a 3clue,card back,with a clue,card back,with a clue,card back,with a clue,Donald 🡲
Alice to Donald: this card is a 3.
cards in the deckred1yellowgreenbluewhitemulticolorblack 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,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Bob 🡲red2,with a red 2clue,card,with a Hanabi card clue,card,with a Hanabi card clue,card,with a Hanabi card clue,Cathy 🡲card back3,with a 3clue,card back,with a clue,card back,with a clue,card back,with a clue,Donald 🡲
Bob plays red1,with a red 1clue,.
cards in the deckred2yellowgreenbluewhitemulticolorblack 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,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 back3,with a 3clue,card back,with a clue,card back,with a clue,card back,with a clue,Donald 🡲
Cathy plays red2,with a red 2clue,.
cards in the deckred3yellowgreenbluewhitemulticolorblack 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,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 back,with a clue,card back,with a clue,card back,with a clue,card back,with a clue,Donald 🡲
Donald plays red3,with a red 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