TrySolitaire Embed

外掛說明

Add a playable game to any post or page in one step. Games run in a sandboxed iframe served by trysolitaire.com — nothing to install or maintain, no accounts, no sign-up for your readers, and games keep working offline once loaded.

21 games: Klondike, Spider (1/2/4 suits), FreeCell, Pyramid, TriPeaks, 2048, Golf, Yukon, Russian, Forty Thieves, Double Klondike, Australian Patience, Canfield, Easthaven, Eight Off, Baker’s Game, Baker’s Dozen, Spiderette, Scorpion, Wasp, Beleaguered Castle.

Two ways to embed:

  1. The TrySolitaire Game block — pick the game, theme, card style and language in the editor and see a live preview.
  2. The [trysolitaire] shortcode:

    [trysolitaire game=”spider” suits=”2″ theme=”navy” lang=”en”]

Attributes: game, theme (dark-green, dark, navy, midnight, teal, light), cards (card face style), lang (en, es, fr, de, nl, hi), draw (1 or 3, Klondike-family), suits (1, 2 or 4, Spider-family), timer, moves, hints, fullscreen (true/false), sound (on/off).

The embed is responsive and adapts its aspect ratio to phones and tablets. A small attribution line links to the game’s page on trysolitaire.com.

螢幕擷圖

適用於區塊編輯器

這個外掛提供 1 個可供區塊編輯器使用的區塊。

  • TrySolitaire Game

安裝方式

  1. Upload the plugin folder to /wp-content/plugins/, or install it from the Plugins screen.
  2. Activate it.
  3. Add the “TrySolitaire Game” block to a post, or use the [trysolitaire] shortcode.

常見問題集

Do my readers need an account?

No. Games start instantly, with no sign-up and no download.

Does the embed slow my page down?

The iframe is lazy-loaded — nothing is fetched until it approaches the viewport.

Can I remove the attribution link?

The single credit line below the game is how the free service is sustained; please keep it.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈TrySolitaire Embed〉的開發相關工作。

參與者

將〈TrySolitaire Embed〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release: 21 games, Gutenberg block + shortcode, responsive sizing, theme/card-style/language options.