Template:ValidateCardType: Difference between revisions
Jump to navigation
Jump to search
(add servant as valid card type) |
(add support for Search Cards, make code more readable) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{#switch:{{lc:{{{1}}}}} | <onlyinclude>{{#switch:{{lc:{{{1}}}}} | ||
|familiar=Familiar | |familiar = Familiar | ||
|herorelic | |herorelic | ||
|hero relic=Hero Relic | |hero relic = Hero Relic | ||
|item=Item | |item = Item | ||
|overlordcard | |overlordcard | ||
|overlord card=Overlord Card | |overlord card = Overlord Card | ||
|overlordrelic | |overlordrelic | ||
|overlord relic=Overlord Relic | |overlord relic = Overlord Relic | ||
|plotcard | |plotcard | ||
|plot card=Plot Card | |plot card = Plot Card | ||
|servant=Servant | |search | ||
|skill=Skill | |searchcard | ||
|search card = Search Card | |||
|servant = Servant | |||
|skill = Skill | |||
|tainted = Tainted | |||
|#default= | |#default= | ||
}}</onlyinclude><noinclude>{{documentation}}</noinclude> | }}</onlyinclude><noinclude>{{documentation}}</noinclude> |
Latest revision as of 16:49, 1 November 2017
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) |
Visit Template:ValidateCardType/doc to edit this text! (How does this work?)