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) mNo edit summary |
Sammy McSam (talk | contribs) mNo edit summary |
||
| 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><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> | ||
== Example == | == Example == | ||
Revision as of 14:13, 3 September 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 5 game states.
note#
note
empty
{{hPlay |note3=Bob plays {{hy|1}}.}}
Note for each game state.
#steps
Steps
5
{{hPlay |4Steps=}}
Number of steps.
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)