Template:Cardpage

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
Line 138: Line 138:
 
</div></div>
 
</div></div>
 
<!--Semantic Properties for cards, edit with care !-->
 
<!--Semantic Properties for cards, edit with care !-->
{{#if:{{{rarity|}}}|[[Has Cardrarity::{{CardRarity|{{{rarity}}} }}| ]]|}}{{#if:{{{Type|}}}|[[Has Attack_type::{{{Type}}}| ]]|}}{{#if:{{{damType|}}}|[[Has Damage_type::{{{damType}}}| ]]|}}{{#if:{{{effect1_keep|}}}{{{effect2_keep|}}}{{{reaction1_keep|}}}{{{reaction2_keep|}}}|[[Has Keep_keyword::Yes| ]]|}}{{#if:{{{effect1_selftar|}}}{{{effect2_selftar|}}}{{{reaction1_selftar|}}}{{{reaction2_selftar|}}}|[[Has Self Target_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Burning}}{{#pos:{{{reaction2}}}|Keywords#Burning}}{{#pos:{{{effect1}}}|Keywords#Burning}}{{#pos:{{{effect2}}}|Keywords#Burning}}|[[Has Burning_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Burst}}{{#pos:{{{reaction2}}}|Keywords#Burst}}{{#pos:{{{effect1}}}|Keywords#Burst}}{{#pos:{{{effect2}}}|Keywords#Burst}}|[[Has Burst_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Cantrip}}{{#pos:{{{reaction2}}}|Keywords#Cantrip}}{{#pos:{{{effect1}}}|Keywords#Cantrip}}{{#pos:{{{effect2}}}|Keywords#Cantrip}}|[[Has Cantrip_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Cone}}{{#pos:{{{reaction2}}}|Keywords#Cone}}{{#pos:{{{effect1}}}|Keywords#Cone}}{{#pos:{{{effect2}}}|Keywords#Cone}}|[[Has Cone_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Encumber}}{{#pos:{{{reaction2}}}|Keywords#Encumber}}{{#pos:{{{effect1}}}|Keywords#Encumber}}{{#pos:{{{effect2}}}|Keywords#Encumber}}|[[Has Encumber_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Fly}}{{#pos:{{{reaction2}}}|Keywords#Fly}}{{#pos:{{{effect1}}}|Keywords#Fly}}{{#pos:{{{effect2}}}|Keywords#Fly}}|[[Has Fly_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Free Move}}{{#pos:{{{reaction2}}}|Keywords#Free Move}}{{#pos:{{{effect1}}}|Keywords#Free Move}}{{#pos:{{{effect2}}}|Keywords#Free Move}}|[[Has Free Move_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Frenzy}}{{#pos:{{{reaction2}}}|Keywords#Frenzy}}{{#pos:{{{effect1}}}|Keywords#Frenzy}}{{#pos:{{{effect2}}}|Keywords#Frenzy}}|[[Has Frenzy_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Halt}}{{#pos:{{{reaction2}}}|Keywords#Halt}}{{#pos:{{{effect1}}}|Keywords#Halt}}{{#pos:{{{effect2}}}|Keywords#Halt}}|[[Has Halt_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Hard to Block}}{{#pos:{{{reaction2}}}|Keywords#Hard to Block}}{{#pos:{{{effect1}}}|Keywords#Hard to Block}}{{#pos:{{{effect2}}}|Keywords#Hard to Block}}|[[Has Hard to Block_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Heal}}{{#pos:{{{reaction2}}}|Keywords#Heal}}{{#pos:{{{effect1}}}|Keywords#Heal}}{{#pos:{{{effect2}}}|Keywords#Heal}}|[[Has Heal_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Linear}}{{#pos:{{{reaction2}}}|Keywords#Linear}}{{#pos:{{{effect1}}}|Keywords#Linear}}{{#pos:{{{effect2}}}|Keywords#Linear}}|[[Has Linear_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Penetrating}}{{#pos:{{{reaction2}}}|Keywords#Penetrating}}{{#pos:{{{effect1}}}|Keywords#Penetrating}}{{#pos:{{{effect2}}}|Keywords#Penetrating}}|[[Has Penetrating_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Poison}}{{#pos:{{{reaction2}}}|Keywords#Poison}}{{#pos:{{{effect1}}}|Keywords#Poison}}{{#pos:{{{effect2}}}|Keywords#Poison}}|[[Has Poison_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Push}}{{#pos:{{{reaction2}}}|Keywords#Push}}{{#pos:{{{effect1}}}|Keywords#Push}}{{#pos:{{{effect2}}}|Keywords#Push}}|[[Has Push_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Saving Roll}}{{#pos:{{{reaction2}}}|Keywords#Saving Roll}}{{#pos:{{{effect1}}}|Keywords#Saving Roll}}{{#pos:{{{effect2}}}|Keywords#Saving Roll}}|[[Has Saving Roll_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Slide}}{{#pos:{{{reaction2}}}|Keywords#Slide}}{{#pos:{{{effect1}}}|Keywords#Slide}}{{#pos:{{{effect2}}}|Keywords#Slide}}|{{#if:{{#pos:{{{reaction1}}}|Keywords#Slide Back}}{{#pos:{{{reaction2}}}|Keywords#Slide Back}}{{#pos:{{{effect1}}}|Keywords#Slide Back}}{{#pos:{{{effect2}}}|Keywords#Slide Back}}|[[Has Slide Back_keyword::Yes| ]]|[[Has Slide_keyword::Yes| ]]}}|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Stealthy}}{{#pos:{{{reaction2}}}|Keywords#Stealthy}}{{#pos:{{{effect1}}}|Keywords#Stealthy}}{{#pos:{{{effect2}}}|Keywords#Stealthy}}|[[Has Stealthy_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Step}}{{#pos:{{{reaction2}}}|Keywords#Step}}{{#pos:{{{effect1}}}|Keywords#Step}}{{#pos:{{{effect2}}}|Keywords#Step}}|[[Has Step_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Stop}}{{#pos:{{{reaction2}}}|Keywords#Stop}}{{#pos:{{{effect1}}}|Keywords#Stop}}{{#pos:{{{effect2}}}|Keywords#Stop}}|[[Has Stop_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Stun}}{{#pos:{{{reaction2}}}|Keywords#Stun}}{{#pos:{{{effect1}}}|Keywords#Stun}}{{#pos:{{{effect2}}}|Keywords#Stun}}|[[Has Stun_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Teleport}}{{#pos:{{{reaction2}}}|Keywords#Teleport}}{{#pos:{{{effect1}}}|Keywords#Teleport}}{{#pos:{{{effect2}}}|Keywords#Teleport}}|[[Has Teleport_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Trait}}{{#pos:{{{reaction2}}}|Keywords#Trait}}{{#pos:{{{effect1}}}|Keywords#Trait}}{{#pos:{{{effect2}}}|Keywords#Trait}}|[[Has Trait_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Armor}}{{#pos:{{{reaction2}}}|Keywords#Armor}}|[[Has Armor_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Block Any}}{{#pos:{{{reaction2}}}|Keywords#Block Any}}|[[Has Block Any_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Block Melee}}{{#pos:{{{reaction2}}}|Keywords#Block Melee}}|[[Has Block Melee_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Block Magic}}{{#pos:{{{reaction2}}}|Keywords#Block Magic}}|[[Has Block Magic_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Block Projectile}}{{#pos:{{{reaction2}}}|Keywords#Block Projectile}}|[[Has Block Projectile_keyword::Yes| ]]|}}
+
{{#if:{{{rarity|}}}|[[Has Cardrarity::{{CardRarity|{{{rarity}}} }}| ]]|[[Has Cardrarity::None| ]]}}{{#if:{{{Type|}}}|[[Has Attack_type::{{{Type}}}| ]]|}}{{#if:{{{damType|}}}|[[Has Damage_type::{{{damType}}}| ]]|}}{{#if:{{{effect1_keep|}}}{{{effect2_keep|}}}{{{reaction1_keep|}}}{{{reaction2_keep|}}}|[[Has Keep_keyword::Yes| ]]|}}{{#if:{{{effect1_selftar|}}}{{{effect2_selftar|}}}{{{reaction1_selftar|}}}{{{reaction2_selftar|}}}|[[Has Self Target_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Burning}}{{#pos:{{{reaction2}}}|Keywords#Burning}}{{#pos:{{{effect1}}}|Keywords#Burning}}{{#pos:{{{effect2}}}|Keywords#Burning}}|[[Has Burning_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Burst}}{{#pos:{{{reaction2}}}|Keywords#Burst}}{{#pos:{{{effect1}}}|Keywords#Burst}}{{#pos:{{{effect2}}}|Keywords#Burst}}|[[Has Burst_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Cantrip}}{{#pos:{{{reaction2}}}|Keywords#Cantrip}}{{#pos:{{{effect1}}}|Keywords#Cantrip}}{{#pos:{{{effect2}}}|Keywords#Cantrip}}|[[Has Cantrip_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Cone}}{{#pos:{{{reaction2}}}|Keywords#Cone}}{{#pos:{{{effect1}}}|Keywords#Cone}}{{#pos:{{{effect2}}}|Keywords#Cone}}|[[Has Cone_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Encumber}}{{#pos:{{{reaction2}}}|Keywords#Encumber}}{{#pos:{{{effect1}}}|Keywords#Encumber}}{{#pos:{{{effect2}}}|Keywords#Encumber}}|[[Has Encumber_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Fly}}{{#pos:{{{reaction2}}}|Keywords#Fly}}{{#pos:{{{effect1}}}|Keywords#Fly}}{{#pos:{{{effect2}}}|Keywords#Fly}}|[[Has Fly_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Free Move}}{{#pos:{{{reaction2}}}|Keywords#Free Move}}{{#pos:{{{effect1}}}|Keywords#Free Move}}{{#pos:{{{effect2}}}|Keywords#Free Move}}|[[Has Free Move_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Frenzy}}{{#pos:{{{reaction2}}}|Keywords#Frenzy}}{{#pos:{{{effect1}}}|Keywords#Frenzy}}{{#pos:{{{effect2}}}|Keywords#Frenzy}}|[[Has Frenzy_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Halt}}{{#pos:{{{reaction2}}}|Keywords#Halt}}{{#pos:{{{effect1}}}|Keywords#Halt}}{{#pos:{{{effect2}}}|Keywords#Halt}}|[[Has Halt_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Hard to Block}}{{#pos:{{{reaction2}}}|Keywords#Hard to Block}}{{#pos:{{{effect1}}}|Keywords#Hard to Block}}{{#pos:{{{effect2}}}|Keywords#Hard to Block}}|[[Has Hard to Block_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Heal}}{{#pos:{{{reaction2}}}|Keywords#Heal}}{{#pos:{{{effect1}}}|Keywords#Heal}}{{#pos:{{{effect2}}}|Keywords#Heal}}|[[Has Heal_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Linear}}{{#pos:{{{reaction2}}}|Keywords#Linear}}{{#pos:{{{effect1}}}|Keywords#Linear}}{{#pos:{{{effect2}}}|Keywords#Linear}}|[[Has Linear_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Penetrating}}{{#pos:{{{reaction2}}}|Keywords#Penetrating}}{{#pos:{{{effect1}}}|Keywords#Penetrating}}{{#pos:{{{effect2}}}|Keywords#Penetrating}}|[[Has Penetrating_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Poison}}{{#pos:{{{reaction2}}}|Keywords#Poison}}{{#pos:{{{effect1}}}|Keywords#Poison}}{{#pos:{{{effect2}}}|Keywords#Poison}}|[[Has Poison_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Push}}{{#pos:{{{reaction2}}}|Keywords#Push}}{{#pos:{{{effect1}}}|Keywords#Push}}{{#pos:{{{effect2}}}|Keywords#Push}}|[[Has Push_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Saving Roll}}{{#pos:{{{reaction2}}}|Keywords#Saving Roll}}{{#pos:{{{effect1}}}|Keywords#Saving Roll}}{{#pos:{{{effect2}}}|Keywords#Saving Roll}}|[[Has Saving Roll_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Slide}}{{#pos:{{{reaction2}}}|Keywords#Slide}}{{#pos:{{{effect1}}}|Keywords#Slide}}{{#pos:{{{effect2}}}|Keywords#Slide}}|{{#if:{{#pos:{{{reaction1}}}|Keywords#Slide Back}}{{#pos:{{{reaction2}}}|Keywords#Slide Back}}{{#pos:{{{effect1}}}|Keywords#Slide Back}}{{#pos:{{{effect2}}}|Keywords#Slide Back}}|[[Has Slide Back_keyword::Yes| ]]|[[Has Slide_keyword::Yes| ]]}}|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Stealthy}}{{#pos:{{{reaction2}}}|Keywords#Stealthy}}{{#pos:{{{effect1}}}|Keywords#Stealthy}}{{#pos:{{{effect2}}}|Keywords#Stealthy}}|[[Has Stealthy_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Step}}{{#pos:{{{reaction2}}}|Keywords#Step}}{{#pos:{{{effect1}}}|Keywords#Step}}{{#pos:{{{effect2}}}|Keywords#Step}}|[[Has Step_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Stop}}{{#pos:{{{reaction2}}}|Keywords#Stop}}{{#pos:{{{effect1}}}|Keywords#Stop}}{{#pos:{{{effect2}}}|Keywords#Stop}}|[[Has Stop_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Stun}}{{#pos:{{{reaction2}}}|Keywords#Stun}}{{#pos:{{{effect1}}}|Keywords#Stun}}{{#pos:{{{effect2}}}|Keywords#Stun}}|[[Has Stun_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Teleport}}{{#pos:{{{reaction2}}}|Keywords#Teleport}}{{#pos:{{{effect1}}}|Keywords#Teleport}}{{#pos:{{{effect2}}}|Keywords#Teleport}}|[[Has Teleport_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Trait}}{{#pos:{{{reaction2}}}|Keywords#Trait}}{{#pos:{{{effect1}}}|Keywords#Trait}}{{#pos:{{{effect2}}}|Keywords#Trait}}|[[Has Trait_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Armor}}{{#pos:{{{reaction2}}}|Keywords#Armor}}|[[Has Armor_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Block Any}}{{#pos:{{{reaction2}}}|Keywords#Block Any}}|[[Has Block Any_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Block Melee}}{{#pos:{{{reaction2}}}|Keywords#Block Melee}}|[[Has Block Melee_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Block Magic}}{{#pos:{{{reaction2}}}|Keywords#Block Magic}}|[[Has Block Magic_keyword::Yes| ]]|}}{{#if:{{#pos:{{{reaction1}}}|Keywords#Block Projectile}}{{#pos:{{{reaction2}}}|Keywords#Block Projectile}}|[[Has Block Projectile_keyword::Yes| ]]|}}
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
</includeonly><noinclude>
 
</includeonly><noinclude>

Revision as of 19:16, 6 November 2013


This is the skeletal outline for a card page, usage is as follows:

{{Cardpage
|image1=<image_filename.jpg, mandatory>
|name=<Card name, mandatory>
|titlebar=<Card quality*, mandatory>
|rarity=<Card rarity in keywords or plain text, mandatory>
|cardcolor1=<Card color1, mandatory>
|cardcolor2=<Card color2, optional>
|cardcolor3=<Card color3, optional>
|Type=<type in keywords or plain text, optional>
|damType=<damage type in keywords or plain text, optional>
|damage=<damage value, optional>
|range=<range value, optional>
|effect1=<effect 1 in keywords or plain text, optional>
|effect1_range=<integer range, optional>
|effect1_duration=<integer duration, optional>
|effect1_selftar=<Yes, optional>
|effect1_chance=<dice roll, optional>
|effect1_keep=<Yes, optional>
|effect2=<effect 2 in keywords or plain text, optional>
|effect2_range=<integer range, optional>
|effect2_duration=<integer duration, optional>
|effect2_selftar=<Yes, optional>
|effect2_chance=<dice roll, optional>
|effect2_keep=<Yes, optional>
|reaction1=<reaction 1 in keywords or plain text, optional>
|reaction1_range=<integer range, optional>
|reaction1_duration=<integer duration, optional>
|reaction1_selftar=<Yes, optional>
|reaction1_chance=<dice roll, optional>
|reaction1_keep=<Yes, optional>
|reaction2=<reaction 2 in keywords or plain text, optional>
|reaction2_range=<integer range, optional>
|reaction2_duration=<integer duration, optional>
|reaction2_selftar=<Yes, optional>
|reaction2_chance=<dice roll, optional>
|reaction2_keep=<Yes, optional>
|flavor=<flavor text, optional>
}}

Simply copy/paste the above code and fill in what should be there and delete any optional lines you are not using. Template automatically puts card in Cards category.

Accepted Card quality entries: Black, Brown, Beige, Paper, Tan, Bronze, Silver, Gold, Emerald, Green, Violet, Purple and Amethyst

Accepted Card color entries: Blue, Red, Green, Grey, White, Orange, Purple and Black (Caps and non-caps catered for)

      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools