Template:Cards: Difference between revisions

From TalossaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
{{#ifeq: {{{2}}}|s|'''{{{1}}}''' ♠}}
{{#ifeq: {{{2}}}|s|'''{{{1}}}''' ♠}}
{{#ifeq: {{{2}}}|S|'''{{{1}}}''' ♠}}
{{#ifeq: {{{2}}}|S|'''{{{1}}}''' ♠}}
{{{1}}} {{{2}}}


<noinclude>
<noinclude>
Line 15: Line 13:




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





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