Template:ValidateCardType/doc: Difference between revisions

From Descent-Community Wiki 1.2
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           !! Returns
!Input                           !! Returns
|-
|-
|skill          || {{ValidateCardType|Skill}}
|familiar                        || {{ValidateCardType|familiar}}
|-
|-
|item            || {{ValidateCardType|Item}}
|herorelic<br>hero relic        || {{ValidateCardType|hero relic}}
|-
|-
|hero relic      || {{ValidateCardType|Hero Relic}}
|item                            || {{ValidateCardType|item}}
|-
|-
|overlord relic  || {{ValidateCardType|Overlord Relic}}
|overlordcard<br>overlord card  || {{ValidateCardType|overlord card}}
|-
|-
|overlord card  || {{ValidateCardType|Overlord Card}}
|overlordrelic<br>overlord relic || {{ValidateCardType|overlord relic}}
|-
|-
|plot card       || {{ValidateCardType|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)