This is a documentation for Board Game Arena: play board games online !
Difference between revisions of "Template:Card"
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) (added size variable) |
Sammy McSam (talk | contribs) (outlineColour & outlineThickness) |
||
Line 1: | Line 1: | ||
− | <span style="background:{{{background|#fafafa}}};box-shadow:0.05rem 0.05rem 0.1rem 0.1rem rgba(0,0,0,0.2),inset 0 0 0 0.1rem {{{borderColour|#fff0}}};border-radius:0.2rem;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.15rem;padding-right:0.15rem;line-height:calc({{{size|1}}}rem + 0.7rem);color:{{{colour|#000}}};text-shadow:0 0 0. | + | <span style="background:{{{background|#fafafa}}};box-shadow:0.05rem 0.05rem 0.1rem 0.1rem rgba(0,0,0,0.2),inset 0 0 0 0.1rem {{{borderColour|#fff0}}};border-radius:0.2rem;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.15rem;padding-right:0.15rem;line-height:calc({{{size|1}}}rem + 0.7rem);color:{{{colour|#000}}};text-shadow:0 0 {{{outlineThickness|0.05}}}rem {{{outlineColour|#fff0}}},0 0 {{{outlineThickness|0.05}}}rem {{{outlineColour|#fff0}}},0 0 {{{outlineThickness|0.05}}}rem {{{outlineColour|#fff0}}},0 0 {{{outlineThickness|0.05}}}rem {{{outlineColour|#fff0}}},0 0 {{{outlineThickness|0.05}}}rem {{{outlineColour|#fff0}}},0 0 {{{outlineThickness|0.05}}}rem {{{outlineColour|#fff0}}};font-size:{{{size|1}}}rem;">{{{| }}}</span><noinclude> |
{|class="wikitable" style="text-align:center;" | {|class="wikitable" style="text-align:center;" | ||
Line 53: | Line 53: | ||
|<b><i>Optional:</i></b> specify the text colour as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS colour]. | |<b><i>Optional:</i></b> specify the text colour as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS colour]. | ||
|- | |- | ||
− | |<code> | + | |<code>outlineColour</code> |
|<code>#fff0</code> (transparent white) | |<code>#fff0</code> (transparent white) | ||
− | |<code><nowiki>{{card|=A|colour=white| | + | |<code><nowiki>{{card|=A|colour=white|outlineColour=green}}</nowiki></code> |
− | |style="text-align:center;"|{{card|=A|colour=white| | + | |style="text-align:center;"|{{card|=A|colour=white|outlineColour=green}} |
− | |<b><i>Optional:</i></b> specify the text | + | |<b><i>Optional:</i></b> specify the text outline colour as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS colour]. |
+ | |- | ||
+ | |<code>outlineThickness</code> | ||
+ | |<code>0.05</code> | ||
+ | |<code><nowiki>{{card|=A|colour=white|outlineColour=green|outlineThickness=0.1}}</nowiki></code> | ||
+ | |style="text-align:center;"|{{card|=A|colour=white|outlineColour=green|outlineThickness=0.1}} | ||
+ | |<b><i>Optional:</i></b> specify the text outline thickness in rem units. | ||
|- | |- | ||
|<code>background</code> | |<code>background</code> |
Revision as of 15:35, 3 March 2022
Type | {{club}}
|
{{spade}}
|
{{heart}}
|
{{diamond}}
|
{{cardBack}}
|
{{card|=A}}
|
{{club|=A}}
|
{{club|=A|colour=green}}
|
---|---|---|---|---|---|---|---|---|
Result | ♣ | ♠ | ♥ | ♦ | 🟔 | A | A♣ | A♣ |
Note: Game Help pages (e.g. 'GameHelpMachiavelli') display on Rules Summary pages e.g. https://boardgamearena.com/gamepanel?game=machiavelli under HOW TO PLAY? > See More > RULES SUMMARY
Parameter | Default value | Example | Result | Description |
---|---|---|---|---|
null
|
|
{{card|=A}}
|
A | Optional: specify a card value e.g. A for Ace.
|
size
|
1
|
{{card|=A|size=1.5}}
|
A | Optional: specify the text size in rem units. |
colour
|
#000 (black)
|
{{card|=A|colour=green}}
|
A | Optional: specify the text colour as a CSS colour. |
outlineColour
|
#fff0 (transparent white)
|
{{card|=A|colour=white|outlineColour=green}}
|
A | Optional: specify the text outline colour as a CSS colour. |
outlineThickness
|
0.05
|
{{card|=A|colour=white|outlineColour=green|outlineThickness=0.1}}
|
A | Optional: specify the text outline thickness in rem units. |
background
|
#fafafa (almost white)
|
{{card|=A|colour=white|background=green}}
|
A | Optional: specify the background colour as a CSS colour. |
borderColour
|
#fff0 (transparent white)
|
{{card|=A|borderColour=green}}
|
A | Optional: specify the border colour as a CSS colour. |
Examples
Machiavelli
- The table has the set 5♠5♦5♥ .
- A player may play a combination, such as 6♠6♦6♥ or 6♠7♠8♠, or may extend the existing set by playing 5♣ .
* The table has the set {{spade|=5}}{{diamond|=5|colour=blue}}{{heart|=5}} . * A player may play a combination, such as {{spade|=6}}{{diamond|=6|colour=blue}}{{heart|=6}} or {{spade|=6}}{{spade|=7}}{{spade|=8}}, or may extend the existing set by playing {{club|=5|colour=green}} .
Table | In hand | Rearrange | Add card |
---|---|---|---|
5♣5♦5♥5♠
6♣7♣8♣ |
4♣ | 5♦5♥5♠
5♣6♣7♣8♣ |
5♦5♥5♠
4♣5♣6♣7♣8♣ |
5♣5♦5♥
6♣6♦6♥ 7♣7♦7♥ |
8♣ | 5♣6♣7♣
5♦6♦7♦ 5♥6♥7♥ |
5♣6♣7♣8♣
5♦6♦7♦ 5♥6♥7♥ |
{|class="wikitable" style="width:auto; text-align:center;" !style="width:8rem;"|Table !style="width:4rem;"|In hand !style="width:8rem;"|Rearrange !style="width:8rem;"|Add card |- |{{club|=5|colour=green}}{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}} {{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}} |{{club|=4|colour=green}} |{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}} {{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}} |{{diamond|=5|colour=blue}}{{heart|=5}}{{spade|=5}} {{club|=4|colour=green}}{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}} |- |{{club|=5}}{{diamond|=5|colour=blue}}{{heart|=5}} {{club|=6}}{{diamond|=6|colour=blue}}{{heart|=6}} {{club|=7|colour=green}}{{diamond|=7|colour=blue}}{{heart|=7}} |{{club|=8|colour=green}} |{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}} {{diamond|=5|colour=blue}}{{diamond|=6|colour=blue}}{{diamond|=7|colour=blue}} {{heart|=5}}{{heart|=6}}{{heart|=7}} |{{club|=5|colour=green}}{{club|=6|colour=green}}{{club|=7|colour=green}}{{club|=8|colour=green}} {{diamond|=5|colour=blue}}{{diamond|=6|colour=blue}}{{diamond|=7|colour=blue}} {{heart|=5}}{{heart|=6}}{{heart|=7}} |}
Palace
Player | In hand | On table | Stack top card | Action |
---|---|---|---|---|
A | 3♥3♣
4♠4♣ |
7♣7♦7♠
🟔🟔🟔 |
2♦ | Plays 3♥3♣ . |
B | - | 8♦J♣Q♦
🟔🟔🟔 |
3♥ | Plays 8♦ from the table. |
C | 8♠8♥8♣
6♥6♣6♦6♠ |
10♣10♦10♠
🟔🟔🟔 |
8♦ | Plays 8♠8♥8♣ .
This burns all the cards in the stack and grants an additional turn. |
6♥6♣6♦6♠ | 10♣10♦10♠
🟔🟔🟔 |
- | Plays 6♥6♣6♦6♠ .
This burns all the cards in the stack and grants another additional turn. | |
- | 10♣10♦10♠
🟔🟔🟔 |
- | Plays 10♣10♦10♠ .
This burns the stack and grants yet another additional turn. | |
- | -
Q♣🟔🟔 |
- | Plays a face-down card, Q♣ . | |
D | 9♣10♥ | K♣K♦K♠
🟔🟔🟔 |
Q♣ | Cannot play and picks up the stack.
Luckily it's just the Q♣ . |
{|class="wikitable" style="width:auto; text-align:center;" |+style="text-align:left;"|''The deck is already empty'' !Player !In hand !On table !Stack top card !style="text-align:left;"|Action |- |'''A''' |{{heart|=3}}{{club|=3}} {{spade|=4}}{{club|=4}} |{{club|=7}}{{Diamond|=7}}{{spade|=7}} {{cardBack}}{{cardBack}}{{cardBack}} |{{diamond|=2}} |style="text-align:left;"|Plays {{heart|=3}}{{club|=3}} . |- |'''B''' | - |{{Diamond|=8}}{{club|=J}}{{Diamond|=Q}} {{cardBack}}{{cardBack}}{{cardBack}} |{{heart|=3}} |style="text-align:left;"|Plays {{Diamond|=8}} from the table. |- |rowspan="4"|'''C''' |{{spade|=8}}{{heart|=8}}{{club|=8}} {{heart|=6}}{{club|=6}}{{Diamond|=6}}{{spade|=6}} |{{club|=10}}{{Diamond|=10}}{{spade|=10}} {{cardBack}}{{cardBack}}{{cardBack}} |{{Diamond|=8}} |style="text-align:left;"|Plays {{spade|=8}}{{heart|=8}}{{club|=8}} . This '''[[#Special_action_cards_and_plays|burns]]''' all the cards in the stack and grants an additional turn. |- |{{heart|=6}}{{club|=6}}{{Diamond|=6}}{{spade|=6}} |{{club|=10}}{{Diamond|=10}}{{spade|=10}} {{cardBack}}{{cardBack}}{{cardBack}} | - |style="text-align:left;"|Plays {{heart|=6}}{{club|=6}}{{Diamond|=6}}{{spade|=6}} . This '''[[#Special_action_cards_and_plays|burns]]''' all the cards in the stack and grants ''another'' additional turn. |- | - |{{club|=10}}{{Diamond|=10}}{{spade|=10}} {{cardBack}}{{cardBack}}{{cardBack}} | - |style="text-align:left;"|Plays {{club|=10}}{{Diamond|=10}}{{spade|=10}} . This '''[[#Special_action_cards_and_plays|burns]]''' the stack and grants ''yet another'' additional turn. |- | - | - {{club|=Q}}{{cardBack}}{{cardBack}} | - |style="text-align:left;"|Plays a face-down card, {{club|=Q}} . |- |'''D''' |{{club|=9}}{{heart|=10}} |{{club|=K}}{{Diamond|=K}}{{spade|=K}} {{cardBack}}{{cardBack}}{{cardBack}} |{{club|=Q}} |style="text-align:left;"|Cannot play and picks up the stack. ''Luckily it's just the'' {{club|=Q}} . |}