內容簡介
使用 CSS 扑克牌替换扑克牌缩写。
注意事项
请确保在每组标记之间只使用一个卡缩写。如果您想显示多张牌,您需要使用多个标记。这样做是为了允许使用不同花色和无等级的牌。
卡牌缩写允许使用大写和小写字母。
10 将转换为 T。
1 将转换为 A。
? 和 X 均可用于卡牌等级。? 表示您不知道某张牌的具体值。X 可以用于任何“垃圾”牌,例如当人们使用“AX suited”一词时,他们指的是一张 Ace 和一张垃圾牌,两张牌都是同色。
允许使用不同花色的牌。
允许使用无等级花色的牌。将使用 X 作为牌的等级。
我使用”<CARD>”作为标记进行测试,但 WP 自动将其转换为小写字母。
标签内除了字母、数字或 ? 以外的任何其他字符都将导致插件跳过该标签。
样例
等级 & 花色
AcAd
KCTC
不同花色
8j?
无等级
Ch
无效牌
V
0
Ph
Eb
ch
1ds
外掛標籤
開發者團隊
原文外掛簡介
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
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
