这是一个和扑克牌有关的模板。

简介

这个模板有两个参数。

{{card|suit|value}}

花色可以是:

  • heart
  • diamond
  • spade
  • club

点数可以是:

  • A
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • J
  • Q
  • K

例子

一共有52张牌。

Wikicode Card Wikicode Card Wikicode Card Wikicode Card
{{card|heart|A}} Ace of hearts {{card|diamond|A}} Ace of diamonds {{card|spade|A}} Ace of spades {{card|club|A}} Ace of clubs
{{card|heart|2}} 2 of hearts {{card|diamond|2}} 2 of diamonds {{card|spade|2}} 2 of spades {{card|club|2}} 2 of clubs
{{card|heart|3}} 3 of hearts {{card|diamond|3}} 3 of diamonds {{card|spade|3}} 3 of spades {{card|club|3}} 3 of clubs
{{card|heart|4}} 4 of hearts {{card|diamond|4}} 4 of diamonds {{card|spade|4}} 4 of spades {{card|club|4}} 4 of clubs
{{card|heart|5}} 5 of hearts {{card|diamond|5}} 5 of diamonds {{card|spade|5}} 5 of spades {{card|club|5}} 5 of clubs
{{card|heart|6}} 6 of hearts {{card|diamond|6}} 6 of diamonds {{card|spade|6}} 6 of spades {{card|club|6}} 6 of clubs
{{card|heart|7}} 7 of hearts {{card|diamond|7}} 7 of diamonds {{card|spade|7}} 7 of spades {{card|club|7}} 7 of clubs
{{card|heart|8}} 8 of hearts {{card|diamond|8}} 8 of diamonds {{card|spade|8}} 8 of spades {{card|club|8}} 8 of clubs
{{card|heart|9}} 9 of hearts {{card|diamond|9}} 9 of diamonds {{card|spade|9}} 9 of spades {{card|club|9}} 9 of clubs
{{card|heart|10}} 10 of hearts {{card|diamond|10}} 10 of diamonds {{card|spade|10}} 10 of spades {{card|club|10}} 10 of clubs
{{card|heart|J}} Jack of hearts {{card|diamond|J}} Jack of diamonds {{card|spade|J}} Jack of spades {{card|club|J}} Jack of clubs
{{card|heart|Q}} Queen of hearts {{card|diamond|Q}} Queen of diamonds {{card|spade|Q}} Queen of spades {{card|club|Q}} Queen of clubs
{{card|heart|K}} King of hearts {{card|diamond|K}} King of diamonds {{card|spade|K}} King of spades {{card|club|K}} King of clubs

模板参数

以下是该模板的模板数据,适用于可视化编辑器等工具。

Card模板数据

用于显示1张扑克牌

模板参数

此模板首选参数不换行的行内格式。

参数描述类型状态
花色1

扑克牌的花色,只能接受"heart"、"diamond"、"spade"与"club"

默认值
{{{1}}}
示例值
heart
自动值
{{{1}}}
字符串必需
点数2

扑克牌的点数,只能接受"A"、"K"、"Q"、"J",以及正整数2到10

默认值
{{{2}}}
示例值
A
自动值
{{{2}}}
字符串必需
扑克牌的大小3

显示扑克牌的大小,单位为px

默认值
75px
示例值
60px
自动值
75px
字符串可选