Template:Cards: Difference between revisions

From TalossaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{{2}}}|d|<span style="color:red">'''{{{1}}}''' ♦</span>}}
{{#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: {{{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>
===Usage===
===Usage===
The card template can be used by inputing the card value in variable 1 and the card suit in variable 2.
The card template can be used by inputing the card value in variable 1 and the card suit in variable 2.
Line 14: Line 5:


<nowiki>{{Cards|A|S}}</nowiki> would yield: {{Cards|A|S}}
<nowiki>{{Cards|A|S}}</nowiki> would yield: {{Cards|A|S}}


The suits are:
The suits are:

Latest revision as of 16: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