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

Template:Card

From Board Game Arena
Jump to navigation Jump to search

   

Card template examples
Type {{club}} {{spade}} {{heart}} {{diamond}} {{cardBack}} {{card|A}} {{club|A}}
Result ​♣ ​♠ ​♥ ​♦ 🟔 A A♣

Available parameters

Parameter
Default value
Example
Result
Description
1
 

   

(3 white spaces)
{{card|A}}
A
Required: 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.
color
#000 (black)
{{card|A |color=green}}
A
Optional: specify the text color as a CSS color.
outlineColor
#fff0 (transparent)
{{card|A|color=white |outlineColor=green}}
A
Optional: specify the text outline color as a CSS color.
background
#fafafa (almost white)
{{card|A|color=white |background=green}}
A
Optional: specify the background color as a CSS color.
borderColor
#fff0 (transparent)
{{card |borderColor=green}}
   
Optional: specify the border color as a CSS color.
borderThickness
0.1
{{card|borderColor=green |borderThickness=0.2}}
   
Optional: specify the border thickness in rem units.

Examples

Machiavelli

  • A player may play a combination, such as 6♠6♦6♥ or 6♠7♠8♠, or may extend the existing set by playing 5♣ .
* A player may play a combination, such as {{spade|6}}{{diamond|6|color=blue}}{{heart|6}} or {{spade|6}}{{spade|7}}{{spade|8}}, or may extend the existing set by playing {{club|5|color=green}} .

Palace

The deck is already empty
Player In hand On table Stack top card Action
A 3♥3♣

4♠4♣

7♣7♦7♠

🟔🟔🟔

2♦ Plays 3♥3♣ .
{|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}} .
|}