This is a documentation subpage for Template:Card. It may contain usage information, categories and other content that is not part of the original template page. |
This template displays a playing card of a given suit and value. There are separate templates for displaying other cards:
- {{German suited card}}
- {{Hanafuda}}
- {{Tarot}}
Instructions
editThis template accepts two arguments: suit and value:
- {{card|suit|value}}
Where suit is one of the following values:
- heart
- diamond
- spade
- club
And the value is one of the following values:
Jokers are also supported:
- {{card|color|Joker}}
Where color is one of the following values:
- red
- black
A card back is also supported:
- {{card|back}}
By default, all cards will be in the English pattern. However, this can be changed via the pattern argument:
- English — English pattern (default)
- French — Paris pattern
- Russian — Satin Deck
- Italian — Bresciane pattern
- Spanish — Castilian pattern
- German — Saxon pattern
- Swiss — 1850 Jass Deck
Please note that not all patterns have jokers, the Spanish pattern doesn't have rank 10, the German pattern doesn't have ranks below 7, and the Swiss pattern doesn't have ranks below 6 and considers the Banner as rank 10. The German and Swiss patterns use values U=Unter, O=Ober, and D=Deuce, and uses suits: acorn and bell. The German pattern use the heart and leaf suits, and the Swiss pattern use the rose and shield suits. The Spanish and Italian patterns use value C=Cavalier and use suits: cup, coin, club, and sword.
Examples
edit