コンテンツにスキップ

英文维基 | 中文维基 | 日文维基 | 草榴社区

Template:Card

テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

Template:Cardは、任意のトランプのカード図柄画像を表示するためのテンプレートです。

解説

[編集]

このテンプレートは、2つの変数(XY)を記入して使用します。

{{card|X|Y}}

Xには、次の4つのいずれかを記入します:

  • heart
  • diamond
  • spade
  • club

Yには、次の13種のいずれかを記入します:

  • A または Ace
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • J または Jack
  • Q または Queen
  • K または King

表示例

[編集]

全52種のカード表示例は以下の通り:

記入 表示 記入 表示 記入 表示 記入 表示
{{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|11}} 11 of hearts {{card|diamond|11}} 11 of diamonds {{card|spade|11}} 11 of spades {{card|club|11}} 11 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