Texas Hold'em Cards
Texas Hold’em Cards lets you insert playing cards anywhere in your posts, pages or comments using a shortcode.
The main shortcode is [wouf_card]. A configurable alias (default [card]) is also available.
Cards are rendered as inline SVG: crisp at any size, no external images, no JavaScript.
Basic usage:
[wouf_card]As Kh[/wouf_card]
Displays an Ace of Spades and a King of Hearts.
Rank notation: A K Q J T 9 8 7 6 5 4 3 2
Suit notation: s (♠ spades) h (♥ hearts) d (♦ diamonds) c (♣ clubs)
Special tokens:
??— face-down card (card back)PP— face-down deck (stack of cards)_— half-card spacer (visually separates hole cards from the board)
Spaces, commas, semicolons, hyphens and pipes may be used as visual separators between cards and are ignored during parsing.
Shortcode attributes:
width— card width in pixels (default: plugin setting, initially 60 px; min 20, max 300). Height scales automatically at ratio ×1.4.align—inline(default),left,centerorright. Non-inline values wrap the hand in a block-level div.colors—2(default: ♠♣ black, ♥♦ red) or4(♠ black, ♥ red, ♦ blue, ♣ green). The 4-color mode is widely used in online poker for readability.gap— gap between cards in pixels. Defaults to ~8% of card width.
Plugin settings (Settings → Texas Hold’em Cards):
- Shortcode alias (default:
card) - Default card width
- Default alignment
- Default color scheme (2-color / 4-color)
- Enable shortcodes in comments
Examples:
[wouf_card]As Kh[/wouf_card]
→ Inline: A♠ K♥
[wouf_card width="90" align="center"]As Kh _ Td Jc Qh[/wouf_card]
→ Centered, larger cards. Hole cards separated from the flop by a half-card spacer.
[wouf_card align="center"]?? Kh _ Td Jc Qh _ PP[/wouf_card]
→ Hidden card, K♥, flop, remaining deck.
[wouf_card colors="4"]As Kh Qd Jc[/wouf_card]
→ 4-color deck: ♠ black, ♥ red, ♦ blue, ♣ green.
[wouf_card gap="2"]As Kh[/wouf_card]
→ Tighter gap between cards.
