[WordPress] 外掛分享: Embed Chessboard

首頁外掛目錄 › Embed Chessboard
WordPress 外掛 Embed Chessboard 的封面圖片
600+
安裝啟用
★★★★
4/5 分(3 則評價)
23 天前
最後更新
問題解決
WordPress 2.9+ v3.08.00 上架:2010-01-28

內容簡介

Embed Chessboard 是一個外掛,可讓您在 WordPress 文章中插入顯示棋局的西洋棋棋盤。

使用以下縮短代碼標籤來插入西洋棋棋盤:

[pgn parameter=value ...]
... PGN 格式下的西洋棋遊戲 ...
[/pgn]

縮短代碼標籤參數:

layout=horizontal|vertical
height=auto|number
showMoves=figurine|text|puzzle|hidden
initialGame=first|last|random|number
initialVariation=number
initialHalfmove=start|end|random|comment|number
autoplayMode=game|loop|none

範例:

[pgn height=500 initialHalfmove=16 autoplayMode=none]

[Event "世界冠軍賽"]
[Site "莫斯科 URS"]
[Date "1985.10.15"]
[Round "16"]
[White "卡爾波夫"]
[Black "卡斯帕羅夫"]
[Result "0-1"]

1. e4 c5 2. Nf3 e6 3. d4 cxd4 4. Nxd4 Nc6 5. Nb5 d6 6.
c4 Nf6 7. N1c3 a6 8. Na3 d5 9. cxd5 exd5 10. exd5 Nb4
11. Be2 Bc5 12. O-O O-O 13. Bf3 Bf5 14. Bg5 Re8 15.
Qd2 b5 16. Rad1 Nd3 17. Nab1 h6 18. Bh4 b4 19. Na4 Bd6
20. Bg3 Rc8 21. b3 g5 22. Bxd6 Qxd6 23. g3 Nd7 24. Bg2
Qf6 25. a3 a5 26. axb4 axb4 27. Qa2 Bg6 28. d6 g4 29.
Qd2 Kg7 30. f3 Qxd6 31. fxg4 Qd4+ 32. Kh1 Nf6 33. Rf4
Ne4 34. Qxd3 Nf2+ 35. Rxf2 Bxd3 36. Rfd2 Qe3 37. Rxd3
Rc1 38. Nb2 Qf2 39. Nd2 Rxd1+ 40. Nxd1 Re1+ 0-1

[/pgn]

在使用古騰堡編輯器時,請將縮短代碼標籤添加為古騰堡的縮短代碼區塊。

任何缺少 PGN 標頭標籤將不會顯示。

注意:PGN 數據中的 HTML 標記將被剝離,刪除所有位於"<"和">"字符之間的文本。 請確保您的 PGN 數據不包含"<"和">"字符。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.08.00) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Embed Chessboard」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Embed Chessboard is a plugin that allows for the insertion of a chessboard displaying chess games within worpress articles.
Use following shortcode tag to insert a chessboard:
[pgn parameter=value ...]
... chess games in PGN format ...
[/pgn]

Shortcode tag parameters:

layout=horizontal|vertical
height=auto|number
showMoves=figurine|text|puzzle|hidden
initialGame=first|last|random|number
initialVariation=number
initialHalfmove=start|end|random|comment|number
autoplayMode=game|loop|none

Example:
[pgn height=500 initialHalfmove=16 autoplayMode=none]

[Event "World championship"]
[Site "Moscow URS"]
[Date "1985.10.15"]
[Round "16"]
[White "Karpov"]
[Black "Kasparov"]
[Result "0-1"]

1. e4 c5 2. Nf3 e6 3. d4 cxd4 4. Nxd4 Nc6 5. Nb5 d6 6.
c4 Nf6 7. N1c3 a6 8. Na3 d5 9. cxd5 exd5 10. exd5 Nb4
11. Be2 Bc5 12. O-O O-O 13. Bf3 Bf5 14. Bg5 Re8 15.
Qd2 b5 16. Rad1 Nd3 17. Nab1 h6 18. Bh4 b4 19. Na4 Bd6
20. Bg3 Rc8 21. b3 g5 22. Bxd6 Qxd6 23. g3 Nd7 24. Bg2
Qf6 25. a3 a5 26. axb4 axb4 27. Qa2 Bg6 28. d6 g4 29.
Qd2 Kg7 30. f3 Qxd6 31. fxg4 Qd4+ 32. Kh1 Nf6 33. Rf4
Ne4 34. Qxd3 Nf2+ 35. Rxf2 Bxd3 36. Rfd2 Qe3 37. Rxd3
Rc1 38. Nb2 Qf2 39. Nd2 Rxd1+ 40. Nxd1 Re1+ 0-1

[/pgn]

When using the gutenberg editor, please add shortcodes as shortcodes blocks in guntenberg.
Any PGN header tag missing will not be displayed.
Note: HTML tags are stripped from the PGN data, removing all text between “<” and “>” characters; please make sure your PGN data does not contain “<” and “>” characters.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon