Template:ValidateCardType/doc: Difference between revisions

From Descent-Community Wiki 1.2
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                           !! Returns
!Input                               !! Returns
|-
|-
|familiar                       || {{ValidateCardType|familiar}}
|familiar                           || {{ValidateCardType|familiar}}
|-
|-
|herorelic<br>hero relic         || {{ValidateCardType|hero relic}}
|herorelic<br>hero relic             || {{ValidateCardType|hero relic}}
|-
|-
|item                           || {{ValidateCardType|item}}
|item                               || {{ValidateCardType|item}}
|-
|-
|overlordcard<br>overlord card   || {{ValidateCardType|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           || {{ValidateCardType|plot card}}
|plotcard<br>plot card               || {{ValidateCardType|plot card}}
|-
|-
|servant                         || {{ValidateCardType|servant}}
|servant                             || {{ValidateCardType|servant}}
|-
|-
|skill                          || {{ValidateCardType|skill}}
|search<br>searchcard<br>search card || {{ValidateCardType|search card}}
|-
|-
|Default (empty)                 || {{ValidateCardType}}
|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)