[WordPress] 外掛分享: Texas Hold’em Cards

首頁外掛目錄 › Texas Hold'em Cards
WordPress 外掛 Texas Hold'em Cards 的封面圖片
全新外掛
安裝啟用
尚無評分
37 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.1.1 上架:2026-06-22

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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, center or right. Non-inline values wrap the hand in a block-level div.
colors — 2 (default: ♠♣ black, ♥♦ red) or 4 (♠ 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.

延伸相關外掛

文章
Filter
Mastodon