Linux 软件免费装
Banner图

Texas Hold'em Cards

开发者 wouf
更新时间 2026年6月23日 18:01
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode svg cards poker texas holdem

下载

1.1.1

详情介绍:

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: Spaces, commas, semicolons, hyphens and pipes may be used as visual separators between cards and are ignored during parsing. Shortcode attributes: Plugin settings (Settings → Texas Hold'em Cards): 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.

安装:

  1. In your WordPress admin, go to Plugins → Add New, search for Texas Hold'em Cards and click Install Now. Or upload the texas-holdem-cards folder to /wp-content/plugins/ manually.
  2. Activate the plugin in Plugins → Installed Plugins.
  3. Optional: adjust settings in Settings → Texas Hold'em Cards.
  4. Use the [wouf_card] shortcode in any post, page, widget or comment.

屏幕截图:

  • Full board with spacer and deck — `[wouf_card align="center"]As Kh _ Td Jc Qh _ PP[/wouf_card]`
  • Face-down hand and board — `[wouf_card align="center"]?? Kh _ Td Jc Qh[/wouf_card]`
  • 4-color deck — `[wouf_card colors="4"]As Kh Qd Jc[/wouf_card]`

常见问题:

Does it work in the block editor (Gutenberg)?

Yes. Use a Shortcode block and paste your [wouf_card] shortcode.

Can I change the shortcode alias?

Yes. Go to Settings → Texas Hold'em Cards. The main [wouf_card] shortcode always remains available.

What is the 4-color mode?

In 4-color mode, each suit has a distinct color: ♠ black, ♥ red, ♦ blue, ♣ green. This is standard in online poker clients and greatly improves readability when suits matter (flushes, flush draws).

Can readers post hands in comments?

Yes — enable "Shortcodes in comments" in the plugin settings.

What happens if I write an invalid card (e.g. Xz)?

Invalid cards are silently ignored. The shortcode never produces broken output.

Are there any external requests?

No. Everything is inline SVG generated server-side. No fonts, no CDN, no JavaScript.

Can I style the cards with CSS?

The hand wrapper has classes thc-hand and thc-colors-2 or thc-colors-4. Individual SVGs have inline styles; override them with !important if needed.

更新日志:

1.1.1 1.1.0 1.0.3 1.0.2 1.0.1 1.0.0