這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Card Converter

外掛說明

Replace playing card abbreviations with a CSS playing card.

Notes

  • Make sure to only use one card abbreviation in between each set of tags. If you want to display multiple cards, you will need to use multiple tags. This was done to allow unsuited cards and unranked cards to be used.
  • Uppercase and lowercase letters are both allowed for card abbreviations.
  • 10 is converted to T.
  • 1 is converted to A.
  • Both ? and X are allowed for card ranks. ? means you have no idea what a card was. X is meant for any “rag,” such as when people use the term AX suited they mean they had an Ace and a rag both of the same suit.
  • Unsuited cards are allowed.
  • Unranked suits are allowed. X will be used as the card rank.
  • I tested using <CARD> as the tag and WP automatically converted it to lowercase.
  • Using anything other than letters, numbers, or ? inside the tags will cause the plugin to skip over it.

Examples

  • Rank & Suit
    AcAd
    KCTC
  • Unsuited
    8j?
  • Unranked
    Ch
  • Invalid cards
    V
    0
    Ph
    Eb
    ch
    1ds

安裝方式

  1. Upload card-converter.php to your wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Options->Discussion. Add <span and </span> to the Comment Moderation list. In order for the plugin to work correctly, the allowed_tags had to be overwritten. Now if anyone attempts to use a span tag in comments, you will have to approve it first.
  4. Whenever you want to display a playing card in a post or comment, wrap one card abbreviation between <card> and </card> tags.

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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