Template:ValidateCardType: Difference between revisions

From Descent-Community Wiki 1.2
Jump to navigation Jump to search
(Add "Hero Relic" as valid card type)
(add support for familiar, sort alphabetically)
Line 1: Line 1:
<onlyinclude>{{#switch:{{lc:{{{1}}}}}
<onlyinclude>{{#switch:{{lc:{{{1}}}}}
|skill=Skill
|familiar=Familiar
|item=Item
|herorelic
|herorelic
|hero relic=Hero Relic
|hero relic=Hero Relic
|item=Item
|overlordcard
|overlord card=Overlord Card
|overlordrelic
|overlordrelic
|overlord relic=Overlord Relic
|overlord relic=Overlord Relic
|overlordcard
|overlord card=Overlord Card
|plotcard
|plotcard
|plot card=Plot Card
|plot card=Plot Card
|skill=Skill
|#default=
|#default=
}}</onlyinclude><noinclude>{{documentation}}</noinclude>
}}</onlyinclude><noinclude>{{documentation}}</noinclude>

Revision as of 02:53, 17 August 2016

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to validate the card type. It returns a consistent capitalised version, or an empty string on an invalid card type.
Syntax
{{ValidateCardType|<type>}}
Input Returns
familiar Familiar
herorelic
hero relic
Hero Relic
item Item
overlordcard
overlord card
Overlord Card
overlordrelic
overlord relic
Overlord Relic
plotcard
plot card
Plot Card
servant
search
searchcard
search card
skill Skill
tainted
Default (empty)