Template:Card16: Difference between revisions

From Infinite Nomic Wiki
No edit summary
No edit summary
Line 1: Line 1:
<span style="white-space:nowrap;{{#switch: {{{2|}}}
<span style="white-space:nowrap;{{#switch: {{{2|}}}
  | H
  |H|D|R=color: #DD0000;
| D
  |L|A|Sh=color: #119933;
| R=color: #DD0000;
  |Cn|B|Cp=color: #B08821;}}
  | L
{{#switch: {{{3|}}}
| A
|Holo=font-style:italic;}}"
| Sh=color: #119933;
title="{{#switch: {{{1|}}}
  | Cn
| B
| Cp=color: #B08821;}}" title="{{{3|}}}{{#switch: {{{1|}}}
  | A=Ace
  | A=Ace
  | T=10
  | T=10
Line 33: Line 30:
  | S=Spades
  | S=Spades
  | Sw=Swords
  | Sw=Swords
  | {{{2|}}}}}{{{3|}}}">[{{{3|}}}<span style="min-width:1.2em; text-align:center; display: inline-block">{{{1|}}}</span><span style="min-width:1em; text-align:center; display: inline-block">{{#switch: {{{2|}}}
  | {{{2|}}}}}">[<span style="min-width:1.2em; text-align:center; display: inline-block">{{{1|}}}</span><span style="min-width:1em; text-align:center; display: inline-block">{{#switch: {{{2|}}}
  | H=♥
  |H=♥|D=♦|C=♣|S=♠
| D=♦
| C=♣
| S=♠
  | Sw=[[File:Suit sword.svg|12px]]
  | Sw=[[File:Suit sword.svg|12px]]
  | L=[[File:Suit leaf.svg|12px]]
  | L=[[File:Suit leaf.svg|12px]]
Line 45: Line 39:
  | Cn=[[File:Suit coin.svg|12px]]
  | Cn=[[File:Suit coin.svg|12px]]
  | B=[[File:Suit bell.svg|12px]]
  | B=[[File:Suit bell.svg|12px]]
  | Cp=[[File:Suit cup.svg|12px]]}}</span>{{{3|}}}]</span>
  | Cp=[[File:Suit cup.svg|12px]]}}</span>]</span><noinclude>
<noinclude>
 
<br>
<br>
{{Card16|A|H|_}}<br>
{{Card16|A|H|Holo}}<br>
{{Card16|5|D|:}}<br>
{{Card16|5|D|Holo}}<br>
{{Card16|10|C|*}}<br>
{{Card16|10|C| }}<br>
{{Card16|J|S|!}}<br>
{{Card16|J|S| }}<br>
{{Card16|1|Sh|-}}<br>
{{Card16|1|Sh| }}<br>
{{Card16|13|Sw|#}}<br>
{{Card16|13|Sw| }}<br>
{{Card16|Q|R|$}}<br>
{{Card16|Q|R| }}<br>
{{Card16|K|B| }}<br>
{{Card16|K|B| }}<br>
{{Card16|O|A| }}<br>
{{Card16|O|A| }}<br>
{{Card16|U|Cn|}}<br>
{{Card16|U|Cn| }}<br>
{{Card16|R|L|}}<br>
{{Card16|R|L| }}<br>
{{Card16|T|Cp|}}
{{Card16|T|Cp| }}




Line 69: Line 63:
             "label": "Rank",
             "label": "Rank",
             "required": true,
             "required": true,
             "description": "The Rank of the card. 2-10, J, Q, K, A.",
             "description": "The Rank of the card.",
            "example": "2-10, J, Q, K, A.",
             "aliases": ["Rank"]
             "aliases": ["Rank"]
         },
         },
    "params": {
         "2": {
         "2": {
             "label": "Suit",
             "label": "Suit",
             "required": true,
             "required": true,
             "description": "The Suit of the card. D, C, H, or S.",
             "example":"D, C, H, or S",
            "description": "The Suit of the card.",
             "aliases": ["Suit"]
             "aliases": ["Suit"]
         },
         },
    "params": {
         "3": {
         "3": {
             "label": "Modifiers",
             "label": "Modifiers",
             "required": false,
             "required": false,
            "example":"Holo, [empty]",
             "description": "Modifiers on the card.",
             "description": "Modifiers on the card.",
             "aliases": ["Mod"]
             "aliases": ["Mod"]
         },
         }
}
}}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 20:05, 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.

Example
2-10, J, Q, K, A.
Unknownrequired
Suit2 Suit

The Suit of the card.

Example
D, C, H, or S
Unknownrequired
Modifiers3 Mod

Modifiers on the card.

Example
Holo, [empty]
Unknownoptional