Template:ValidateCardType/doc: Difference between revisions
Jump to navigation
Jump to search
(document servant as valid cardtype) |
(document newly supported cardtype "search card") |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
{| class="wikitable" | {| class="wikitable" | ||
!Input | !Input !! Returns | ||
|- | |- | ||
|familiar | |familiar || {{ValidateCardType|familiar}} | ||
|- | |- | ||
|herorelic<br>hero relic | |herorelic<br>hero relic || {{ValidateCardType|hero relic}} | ||
|- | |- | ||
|item | |item || {{ValidateCardType|item}} | ||
|- | |- | ||
|overlordcard<br>overlord card | |overlordcard<br>overlord card || {{ValidateCardType|overlord card}} | ||
|- | |- | ||
|overlordrelic<br>overlord relic || {{ValidateCardType|overlord relic}} | |overlordrelic<br>overlord relic || {{ValidateCardType|overlord relic}} | ||
|- | |- | ||
|plotcard<br>plot card | |plotcard<br>plot card || {{ValidateCardType|plot card}} | ||
|- | |- | ||
|servant | |servant || {{ValidateCardType|servant}} | ||
|- | |- | ||
| | |search<br>searchcard<br>search card || {{ValidateCardType|search card}} | ||
|- | |- | ||
|Default (empty) | |skill || {{ValidateCardType|skill}} | ||
|- | |||
|tainted || {{ValidateCardType|tainted}} | |||
|- | |||
|Default (empty) || {{ValidateCardType}} | |||
|} | |} |
Latest revision as of 16:50, 1 November 2017
- 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) |