Template:Cards: Difference between revisions

From TalossaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#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}}}''' ♠}}
{{#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>
<noinclude>

Revision as of 16:24, 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