Template:Cards: Difference between revisions

From TalossaWiki
Jump to navigation Jump to search
(Created page with "{{#ifeq: {{{1}}}|S|♠|}} {{#ifeq: {{{1}}}|s|♠|}}")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{{1}}}|S||}}
{{#ifeq: {{{2}}}|d|<span style="color:red">'''{{{1}}}'''♦</span>}}{{#ifeq: {{{2}}}|D|<span style="color:red">'''{{{1}}}'''♦</span>}}{{#ifeq: {{{2}}}|h|<span style="color:red">'''{{{1}}}'''♥</span>}}{{#ifeq: {{{2}}}|H|<span style="color:red">'''{{{1}}}'''♥</span>}}{{#ifeq: {{{2}}}|c|'''{{{1}}}'''♣}}{{#ifeq: {{{2}}}|C|'''{{{1}}}'''♣}}{{#ifeq: {{{2}}}|s|'''{{{1}}}'''♠}}{{#ifeq: {{{2}}}|S|'''{{{1}}}'''}}<noinclude>
{{#ifeq: {{{1}}}|s|♠|}}
===Usage===
The card template can be used by inputing the card value in variable 1 and the card suit in variable 2.
 
 
<nowiki>{{Cards|A|S}}</nowiki> would yield: {{Cards|A|S}}
 
The suits are:
{| class="wikitable"
|-
| Hearts || <span style="color:red">♥</span> || h or H
|-
| Diamonds || <span style="color:red">♦</span> || d or D
|-
| Clubs || ♣ || c or C
|-
| Spades || ♠ || s or S
|}
 
[[Category:Templates]]
 
</noinclude>

Latest revision as of 17:28, 6 August 2012

Usage

The card template can be used by inputing the card value in variable 1 and the card suit in variable 2.


{{Cards|A|S}} would yield: A

The suits are:

Hearts h or H
Diamonds d or D
Clubs c or C
Spades s or S