Template:Card: Difference between revisions

From Infinite Nomic Wiki
miraheze>CodeTriangle
these all look terrible
Fix TemplateData
 
(9 intermediate revisions by 5 users not shown)
Line 10: Line 10:
  | Cp=color: #B08821;}}" title="{{#switch: {{{1|}}}
  | Cp=color: #B08821;}}" title="{{#switch: {{{1|}}}
  | A=Ace
  | A=Ace
| T=10
| E=11
  | J=Jack
  | J=Jack
  | U=Unter Knave
  | U=Unter Knave
Line 57: Line 59:
{{Card|R|L}}<br>
{{Card|R|L}}<br>
{{Card|T|Cp}}
{{Card|T|Cp}}
<templatedata>
{
    "description": "This template renders an ascii-friendly, color-coded representation of a playing card.",
    "params": {
        "1": {
            "label": "Rank",
            "type": "string",
            "required": true,
            "description": "The Rank of the card. 2-10, J, Q, K, A.",
            "aliases": ["Rank"]
        },
        "2": {
            "label": "Suit",
            "type": "string",
            "required": true,
            "description": "The Suit of the card. D, C, H, or S.",
            "aliases": ["Suit"]
        }
    }
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 19:47, 9 July 2024

[]
[A]
[5]
[10]
[J]
[1]
[13]
[Q]
[K]
[O]
[U]
[R]
[T]

This template renders an ascii-friendly, color-coded representation of a playing card.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Rank1 Rank

The Rank of the card. 2-10, J, Q, K, A.

Stringrequired
Suit2 Suit

The Suit of the card. D, C, H, or S.

Stringrequired