Template:Cards/doc

52-card deck
Card ranks from Standard 52-card deck:
 * or =
 * or =

56-card deck
Card ranks from 56-card deck :
 * or =  (Knight, standard 56-card deck)
 * = (standard 56-card deck)
 * = (nonstandard 56-card deck)

Joker
You may use "r" (red) or "b" (black) suit: Or maybe use the parameters " " and " " (details see below, the "Advanced usage" section) to get a full name:

? card
Symbols that indicate any or unknown card rank:

Customized card
Actually any string will be allowed to be shown as a "card", e.g.: =,  = ,  = ,  =

If one of "s", "h", "d", "c", "r", "b" in lower or upper case, and ♠, ♥, ♦, ♣ is at the end, it will be thought as a suit. A "&" symbol can be used to escape, as: =,  = ,  =

The first letter of "a", "k", "q", "kn", "j", "jkr" and "x" will be capitalized. To prevent it, put them in a :  =

Suit

 * or =
 * or =
 * or =
 * or =

Compound use

 * or =
 * Card ranks without suit: =
 * Stand-alone suit symbols: or  =

Other note
Predefined strings: "a", "k", "q", "kn", "j", "jkr", "x", and "s", "h", "d", "c", "r", "b", are case insensitive when parsed.

The number of the basic, non-named parameters (for cards) should be from 1 to 15.

Description of all parameters


All these parameters are optional.
 * : separator that separates every card, default is a non-breaking space (&amp;nbsp;)
 * : may be "yes" or anything else:
 * : add a hidden key to indicate the card rank and suit's level to make it sortable in a table; card ranks from highest to lowest: Jkr, A, K, Q, Kn, J, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, then anything else; suits from highest to lowest: ♠, ♥, ♦, ♣, red, black, then those without suit indicated; note that it can only tell first card's rank, then the second card's rank, ..., it may not reflect the hand's actual value when it includes 2 or more cards
 * Anything else (incl. leaving blank or not presenting this parameter): default, not do it
 * : "full" or anything else:
 * : full rank name: "Joker", "Ace", "King", "Queen", "Knight", "Jack", "11", "10", "9", ...
 * Anything else (incl. leaving blank or not presenting this parameter): default, normal abbr. rank name: "Jkr", "A", "K", "Q", "Kn", "J", "11", "10", "9", ...
 * : "full" or "letter" or anything else:
 * : full suit name with a space before: "", "", "", "", "", ""; if you use a full suit name, usually you may want to make the card rank name full and make the separator a comma and a space (a non-breaking space "&amp;nbsp;" must be used), that'll be: =
 * : one letter suit name: "", "", "", "", "", ""
 * Anything else (incl. leaving blank or not presenting this parameter): default, normal suit name: "", "", "", "", "", ""
 * : CSS style for the hand
 * ,,  ,  : color (CSS color value, like "#FFFFFF" or "white") for cards of every suit; default is 2 black and 2 red; with these parameters, you may make it a 4-color deck:  =
 * : enables or disables boldface on card font
 * : uses bold font to display cards (default setting):
 * : uses regular font to display cards:
 * : CSS style for every card
 * : (not yet implemented) use images to show the cards

HTML, class names and CSS
The HTML markup produced by this template includes a microformat, it uses rich semantic class names including: "pokerhands", "playingcards", "spades", "hearts", "diamonds", "clubs", "cardranks", "cardsuits", which makes the details parsable by computers.

For example, generates, whose HTML markup is:

Template for playing cards, will automatically color the suits with the standard red/black. To see a typical 4-color deck, copy the following into your user style sheet (Special:MyPage/common.css for the common CSS):

Developers' links

 * Template:Cards/core
 * Template:Cards/core2
 * Template:Cards/core3
 * User:Chzz/cards/clubs
 * User:Chzz/cards/diamonds
 * User:Chzz/cards/hearts
 * User:Chzz/cards/spades