Difference between revisions of "Template:Card"

From Artifact Wiki
Jump to: navigation, search
m
(added missing "None" color. Added upcoming "Mutation" card type. Added sizes to text fields that were truncating their values.)
 
Line 7: Line 7:
 
| Aliases      = List (,) of String
 
| Aliases      = List (,) of String
 
| SetID        = Integer
 
| SetID        = Integer
| CardType      = String (allowed values = Hero,Creep,Improvement,Spell,Item,Stronghold,Pathing,Ability,PassiveAbility)
+
| CardType      = String (allowed values = Hero,Creep,Improvement,Spell,Item,Stronghold,Pathing,Ability,PassiveAbility,Mutation)
 
| SubType      = String (allowed values = None,Consumable,Weapon,Armor,Accessory,Deed)
 
| SubType      = String (allowed values = None,Consumable,Weapon,Armor,Accessory,Deed)
 
| Rarity        = String (allowed values = Basic,Common,Uncommon,Rare)
 
| Rarity        = String (allowed values = Basic,Common,Uncommon,Rare)
| Color        = String (allowed values = Black,Blue,Green,Red)
+
| Color        = String (allowed values = None,Black,Blue,Green,Red)
 
| Abilities    = List (,) of Integer
 
| Abilities    = List (,) of Integer
 
| TokenOf      = List (,) of Integer
 
| TokenOf      = List (,) of Integer
Line 16: Line 16:
 
| IsCollectable = Boolean
 
| IsCollectable = Boolean
 
| Text          = String
 
| Text          = String
| TextRaw      = String
+
| TextRaw      = String (size=1000)
| TextFormatted = Wikitext
+
| TextFormatted = Wikitext (size=2000)
 
| CardImage    = File
 
| CardImage    = File
 
| CardImageRaw  = File
 
| CardImageRaw  = File
Line 23: Line 23:
 
| Illustrator  = String
 
| Illustrator  = String
 
| VoiceActor    = String
 
| VoiceActor    = String
| Lore          = String
+
| Lore          = String (size=3000)
| LoreFormatted = Wikitext
+
| LoreFormatted = Wikitext (size=3000)
 
| Keywords      = List (,) of String  
 
| Keywords      = List (,) of String  
 
}}{{Doc}}[[Category:Templates]]</noinclude>
 
}}{{Doc}}[[Category:Templates]]</noinclude>

Latest revision as of 01:31, 31 January 2019

This template defines the table "Cards". View table.

Documentation for Template:Card [edit] [edit doc]

Info Icon.png See also: Card module

Use this template to create formatted cards of any type.
Please note that using the specific templates is more performant:

The searching order is: Hero > Creature > Item > Spell > Improvement > Ability, so for some cards, like abilities, you might have to use the specific template to get the desired result.

Preview


Tidehunter

This card is not in the database yet.
Description BG.png
[refresh card]

Rebel Decoy

This card is not in the database yet.
Description BG.png
[refresh card]

Mystic Flare

This card is not in the database yet.
Description BG.png
[refresh card]

Assault Ladders

This card is not in the database yet.
Description BG.png
[refresh card]

Return

This card is not in the database yet.
Description BG.png
[refresh card]

Usage


{{Card|<card name>|width (optional, default 200}}