Template:Card: Difference between revisions
miraheze>Gaelan No edit summary |
RandomNetCat (talk | contribs) Fix TemplateData |
||
(20 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<span {{#switch: {{{2|}}} | <span style="white-space:nowrap;{{#switch: {{{2|}}} | ||
| H | | H | ||
| D= | | D | ||
| R=color: #DD0000; | |||
| L | |||
| A | |||
| Sh=color: #119933; | |||
| Cn | |||
| B | |||
| Cp=color: #B08821;}}" title="{{#switch: {{{1|}}} | |||
| A=Ace | |||
| T=10 | |||
| E=11 | |||
| J=Jack | |||
| U=Unter Knave | |||
| O=Ober Knave | |||
| N=Knight | |||
| B=Bishop | |||
| R=Rook | |||
| Q=Queen | |||
| K=King | |||
| {{{1|}}}}} of {{#switch: {{{2|}}} | |||
| H=Hearts | |||
| D=Diamonds | |||
| R=Roses | |||
| L=Leaves | |||
| A=Acorns | |||
| Sh=Shields | |||
| Cn=Coins | |||
| B=Bells | |||
| Cp=Cups | |||
| C=Clubs | |||
| S=Spades | |||
| Sw=Swords | |||
| {{{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=♦ | | D=♦ | ||
| C=♣ | | C=♣ | ||
| S=♠}} | | S=♠ | ||
| Sw=[[File:Suit sword.svg|12px]] | |||
| L=[[File:Suit leaf.svg|12px]] | |||
| A=[[File:Suit acorn.svg|12px]] | |||
| Sh=[[File:Suit shield.svg|12px]] | |||
| R=[[File:Suit rose.svg|12px]] | |||
| Cn=[[File:Suit coin.svg|12px]] | |||
| B=[[File:Suit bell.svg|12px]] | |||
| Cp=[[File:Suit cup.svg|12px]]}}</span>]</span><noinclude> | |||
<br> | <br> | ||
{{Card|A|H}}<br> | {{Card|A|H}}<br> | ||
Line 11: | Line 51: | ||
{{Card|10|C}}<br> | {{Card|10|C}}<br> | ||
{{Card|J|S}}<br> | {{Card|J|S}}<br> | ||
{{Card|Q| | {{Card|1|Sh}}<br> | ||
{{Card|K|D}} | {{Card|13|Sw}}<br> | ||
{{Card|Q|R}}<br> | |||
{{Card|K|B}}<br> | |||
{{Card|O|A}}<br> | |||
{{Card|U|Cn}}<br> | |||
{{Card|R|L}}<br> | |||
{{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> |