Template:ValidateCardType

From Descent-Community Wiki 1.2
Revision as of 16:49, 1 November 2017 by Psymia (talk | contribs) (add support for Search Cards, make code more readable)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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 Servant
search
searchcard
search card
Search Card
skill Skill
tainted Tainted
Default (empty)