该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Card Converter

描述

Replace playing card abbreviations with a CSS playing card.

笔记

  • 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.

比如

  • 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. 通过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订阅开发日志