Template:ValidateCardType/doc: Difference between revisions
Jump to navigation
Jump to search
(Document "Hero Relic" as valid card type) |
(document support for familiar, sort alphabetically) |
||
Line 5: | Line 5: | ||
{| class="wikitable" | {| class="wikitable" | ||
!Input | !Input !! Returns | ||
|- | |- | ||
| | |familiar || {{ValidateCardType|familiar}} | ||
|- | |- | ||
| | |herorelic<br>hero relic || {{ValidateCardType|hero relic}} | ||
|- | |- | ||
| | |item || {{ValidateCardType|item}} | ||
|- | |- | ||
|overlord | |overlordcard<br>overlord card || {{ValidateCardType|overlord card}} | ||
|- | |- | ||
|overlord | |overlordrelic<br>overlord relic || {{ValidateCardType|overlord relic}} | ||
|- | |- | ||
|plot card | |plotcard<br>plot card || {{ValidateCardType|plot card}} | ||
|- | |- | ||
|Default (empty) || {{ValidateCardType}} | |skill || {{ValidateCardType|skill}} | ||
|- | |||
|Default (empty) || {{ValidateCardType}} | |||
|} | |} |
Revision as of 02:53, 17 August 2016
- 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 |
skill | Skill |
Default (empty) |