Template:Itempage

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
 
(172 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| style="background:white; border-collapse: collapse; width=85%;"
+
{| style="border-collapse: collapse; width=85%;"
 
|width="100pt"|'''Item name:'''
 
|width="100pt"|'''Item name:'''
|width="200pt"|<big>'''{{{name}}}'''</big>
+
|width="150pt"|<big>'''{{{name}}}'''</big>
|rowspan={{#expr:4+{{#if:{{{damage|}}}|1|0}}+{{#if:{{{range|}}}|1|0}}+{{#if:
+
|rowspan={{#expr:4+{{#if:{{{talent|}}}|1|0}}+{{#if:{{{value|}}}|1|0}}+{{#if:{{{itemcard1_name|}}}|1|0}}+{{#if:{{{itemcard2_name|}}}|1|0}}+{{#if:{{{itemcard3_name|}}}|1|0}}+{{#if:{{{itemcard4_name|}}}|1|0}}+{{#if:{{{itemcard5_name|}}}|1|0}}+{{#if:{{{itemcard6_name|}}}|1|0}}}}|{{ItemImage|{{{image1}}} }}
 
+
{{{Type|}}}|1|0}}+{{#if:{{{damType|}}}|1|0}}+{{#if:{{{effectType|}}}|1|
+
 
+
0}}+{{#if:{{{effect1|}}}|1|0}}+{{#if:{{{effect1_range|}}}|1|0}}+{{#if:
+
 
+
{{{effect1_duration|}}}|1|0}}+{{#if:{{{effect1_selftar|}}}|1|0}}+{{#if:
+
 
+
{{{effect1_chance|}}}|1|0}}+{{#if:{{{effect1_keep|}}}|1|0}}+{{#if:
+
 
+
{{{effect2|}}}|6|0}}+{{#if:{{{effect2_range|}}}|1|0}}+{{#if:
+
 
+
{{{effect2_duration|}}}|1|0}}+{{#if:{{{effect2_selftar|}}}|1|0}}+{{#if:
+
 
+
{{{effect2_chance|}}}|1|0}}+{{#if:{{{effect2_keep|}}}|1|0}}+{{#if:
+
 
+
{{{reaction1|}}}|1|0}}+{{#if:{{{reaction1_range|}}}|1|0}}+{{#if:
+
 
+
{{{reaction1_duration|}}}|1|0}}+{{#if:{{{reaction1_selftar|}}}|1|0}}+{{#if:
+
 
+
{{{reaction1_chance|}}}|1|0}}+{{#if:{{{reaction1_keep|}}}|1|0}}+{{#if:
+
 
+
{{{reaction2|}}}|6|0}}+{{#if:{{{reaction2_range|}}}|1|0}}+{{#if:
+
 
+
{{{reaction2_duration|}}}|1|0}}+{{#if:{{{reaction2_selftar|}}}|1|0}}+{{#if:
+
 
+
{{{reaction2_chance|}}}|1|0}}+{{#if:{{{reaction2_keep|}}}|1|0}}+{{#if:
+
 
+
{{{flavor|}}}|1|0}}}}|{{CardImage|{{{image1}}} }}
+
 
|-
 
|-
|'''Quality:'''
+
|'''Item type:'''
|{{CardTier|{{{titlebar}}} }}
+
|{{ItemType|{{{type}}} }}
 
|-
 
|-
 
|'''Rarity:'''
 
|'''Rarity:'''
|{{{rarity|Pls enter card rarity}}}
+
|{{ItemRarity|{{{rarity}}} }}
 
|-
 
|-
|'''Color Class:'''
+
|'''Expansion:'''
|{{CardType|{{{cardcolor1}}}|{{{cardcolor2}}}|{{{cardcolor3}}} }}
+
|{{#if:{{{expansion|}}}|{{Exp_icon|{{{expansion}}} }} [[{{Expansion|{{{expansion}}} }}]]|Basic }}
 
|-
 
|-
{{#if:{{{Type|}}}|
+
|'''Item level:'''
{{!}} style="background: beige;" {{!}} '''Type:'''
+
|{{{level|<span style="color:red">Pls enter item level</span>}}}
{{!}} style="background: beige;" {{!}} {{{Type}}} }}
+
|-
 +
| '''Power Token:'''
 +
| {{{talent|[[Has talent::None]]}}}
 +
|-
 +
{{#if:{{{value|}}}|
 +
{{!}} '''Value:'''
 +
{{!}} {{{value}}} gold }}
 
{{!-}}
 
{{!-}}
{{#if:{{{damType|}}}|
+
{{#if:{{{itemcard1_name|}}}|
{{!}} style="background: beige;" {{!}} '''Damage Type:'''
+
{{!}} '''Cards:'''
{{!}} style="background: beige;" {{!}} {{{damType}}} }}
+
{{!}} [[Has itemcard1_qty::{{{itemcard1_qty}}}]] x {{C|{{{itemcard1_name}}} }} }}
 
{{!-}}
 
{{!-}}
{{#if:{{{effectType|}}}|
+
{{#if:{{{itemcard2_name|}}}|
{{!}} style="background: beige;" {{!}} '''Effect Type:'''
+
{{!}}  
{{!}} style="background: beige;" {{!}} {{{effectType}}} }}
+
{{!}} [[Has itemcard2_qty::{{{itemcard2_qty}}}]] x {{C|{{{itemcard2_name}}} }} }}
 
{{!-}}
 
{{!-}}
{{#if:{{{damage|}}}|
+
{{#if:{{{itemcard3_name|}}}|
{{!}} style="background: beige;" {{!}} '''Damage:'''
+
{{!}}  
{{!}} style="background: beige;" {{!}} {{{damage}}} }}
+
{{!}} [[Has itemcard3_qty::{{{itemcard3_qty}}}]] x {{C|{{{itemcard3_name}}} }} }}
 
{{!-}}
 
{{!-}}
{{#if:{{{range|}}}|
+
{{#if:{{{itemcard4_name|}}}|
{{!}} style="background: beige;" {{!}} '''Range:'''
+
{{!}}  
{{!}} style="background: beige;" {{!}} {{{range}}} }}
+
{{!}} [[Has itemcard4_qty::{{{itemcard4_qty}}}]] x {{C|{{{itemcard4_name}}} }} }}
 
{{!-}}
 
{{!-}}
{{#if:{{{effect1|}}}|
+
{{#if:{{{itemcard5_name|}}}|
{{!}} style="background: beige;" {{!}} '''Play effect 1:'''
+
{{!}}  
{{!}} style="background: beige;" {{!}} {{{effect1}}} }}
+
{{!}} [[Has itemcard5_qty::{{{itemcard5_qty}}}]] x {{C|{{{itemcard5_name}}} }} }}
 
{{!-}}
 
{{!-}}
{{#if:{{{effect1_range|}}}|
+
{{#if:{{{itemcard6_name|}}}|
{{!}} style="background: beige;" {{!}} '''Range:'''
+
{{!}}  
{{!}} style="background: beige;" {{!}} {{{effect1_range}}} }}
+
{{!}} [[Has itemcard6_qty::{{{itemcard6_qty}}}]] x {{C|{{{itemcard6_name}}} }} }}
{{!-}}
+
|}
{{#if:{{{effect1_duration|}}}|
+
 
{{!}} style="background: beige;" {{!}} '''Duration:'''
+
{{#if:{{{itemcard1_name|}}} |
{{!}} style="background: beige;" {{!}} {{{effect1_duration}}} }}
+
{{#ifexist:Cards/{{{itemcard1_name}}}|
{{!-}}
+
{{ {{{itemcard1_qty}}}x|[[File:{{{itemcard1_name}}}.jpeg|150px|link=Cards/{{{itemcard1_name}}}]] }}|
{{#if:{{{effect1_selftar|}}}|
+
{{ {{{itemcard1_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
{{!}} style="background: beige;" {{!}} '''Self target:'''
+
|}}
{{!}} style="background: beige;" {{!}} {{{effect1_selftar}}} }}
+
{{#if:{{{itemcard2_name|}}} |
{{!-}}
+
{{#ifexist:Cards/{{{itemcard2_name}}}|
{{#if:{{{effect1_chance|}}}|
+
{{ {{{itemcard2_qty}}}x|[[File:{{{itemcard2_name}}}.jpeg|150px|link=Cards/{{{itemcard2_name}}}]] }}|
{{!}} style="background: beige;" {{!}} '''Chance:'''
+
{{ {{{itemcard2_qty}}}x|[[File:No_image.png|150px]] }} }}
{{!}} style="background: beige;" {{!}} {{{effect1_chance}}} }}
+
|}}
{{!-}}
+
{{#if:{{{itemcard3_name|}}} |
{{#if:{{{effect1_keep|}}}|
+
{{#ifexist:Cards/{{{itemcard3_name}}}|
{{!}} style="background: beige;" {{!}} '''Keep:'''
+
{{ {{{itemcard3_qty}}}x|[[File:{{{itemcard3_name}}}.jpeg|150px|link=Cards/{{{itemcard3_name}}}]] }}|
{{!}} style="background: beige;" {{!}} {{{effect1_keep}}} }}
+
{{ {{{itemcard3_qty}}}x|[[File:No_image.png|150px]] }} }}
{{!-}}
+
|}}
{{#if:{{{effect2|}}}|
+
{{#if:{{{itemcard4_name|}}} |
{{!}} style="background: aliceblue;" {{!}} '''Play effect 2:'''
+
{{#ifexist:Cards/{{{itemcard4_name}}}|
{{!}} style="background: aliceblue;" {{!}} {{{effect2}}} }}
+
{{ {{{itemcard4_qty}}}x|[[File:{{{itemcard4_name}}}.jpeg|150px|link=Cards/{{{itemcard4_name}}}]] }}|
{{!-}}
+
{{ {{{itemcard4_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
{{#if:{{{effect2_range|}}}|
+
|}}
{{!}} style="background: aliceblue;" {{!}} '''Range:'''
+
{{#if:{{{itemcard5_name|}}} |
{{!}} style="background: aliceblue;" {{!}} {{{effect2_range}}} }}
+
{{#ifexist:Cards/{{{itemcard5_name}}}|
{{!-}}
+
{{ {{{itemcard5_qty}}}x|[[File:{{{itemcard5_name}}}.jpeg|150px|link=Cards/{{{itemcard5_name}}}]] }}|
{{#if:{{{effect2_duration|}}}|
+
{{ {{{itemcard5_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
{{!}} style="background: aliceblue;" {{!}} '''Duration:'''
+
|}}
{{!}} style="background: aliceblue;" {{!}} {{{effect2_duration}}} }}
+
{{#if:{{{itemcard6_name|}}} |
{{!-}}
+
{{#ifexist:Cards/{{{itemcard6_name}}}|
{{#if:{{{effect2_selftar|}}}|
+
{{ {{{itemcard6_qty}}}x|[[File:{{{itemcard6_name}}}.jpeg|150px|link=Cards/{{{itemcard6_name}}}]] }}|
{{!}} style="background: aliceblue;" {{!}} '''Self target:'''
+
{{ {{{itemcard6_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
{{!}} style="background: aliceblue;" {{!}} {{{effect2_selftar}}} }}
+
|}}
{{!-}}
+
{{#ifeq: {{uc:{{{deleted?|}}} }} | YES | This item is no longer in game |{{ItemCat|{{{type}}}|{{{rarity}}}|{{{level}}} }}{{#if:{{{expansion|}}}|[[Category:Expansion set Item]][[Category:{{Expansion|{{{expansion}}} }} Item]]|[[Category:Basic set Item]]}}{{#if:{{{AA|}}}|[[Category:Aloyzo's Arsenal Item]]|}}{{ItemTalentCat|{{{talent}}}|{{{type}}} }}[[Category:Items|{{SUBPAGENAME}}]]}}
{{#if:{{{effect2_chance|}}}|
+
{{#ifeq: {{uc:{{{noloot?|}}} }} | YES | This item is not available as a loot drop.|}}
{{!}} style="background: aliceblue;" {{!}} '''Chance:'''
+
<!--Semantic Properties for items, edit with care !-->
{{!}} style="background: aliceblue;" {{!}} {{{effect2_chance}}} }}
+
{{#if:{{{level|}}}|[[Has Itemlevel::{{{level}}}| ]]|}}
{{!-}}
+
{{#if:{{{type|}}}|[[Has Itemtype::{{ItemType|{{{type}}} }}| ]]|}}
{{#if:{{{effect2_keep|}}}|
+
{{#if:{{{rarity|}}}|[[Has Itemrarity::{{ItemRarity|{{{rarity}}} }}| ]]|}}
{{!}} style="background: aliceblue;" {{!}} '''Keep:'''
+
{{#if:{{{expansion|}}}|[[Has Itemexpansion::{{Expansion|{{{expansion}}} }}| ]]|[[Has Itemexpansion::Basic| ]]}}
{{!}} style="background: aliceblue;" {{!}} {{{effect2_keep}}} }}
+
{{#if:{{{itemcard1_name|}}}|[[Has itemcard1_name::Cards/{{{itemcard1_name}}}| ]]|}}
{{!-}}
+
{{#if:{{{itemcard2_name|}}}|[[Has itemcard2_name::Cards/{{{itemcard2_name}}}| ]]|}}
{{#if:{{{reaction1|}}}|
+
{{#if:{{{itemcard3_name|}}}|[[Has itemcard3_name::Cards/{{{itemcard3_name}}}| ]]|}}
{{!}} style="background: pink;" {{!}} '''Reaction 1:'''
+
{{#if:{{{itemcard4_name|}}}|[[Has itemcard4_name::Cards/{{{itemcard4_name}}}| ]]|}}
{{!}} style="background: pink;" {{!}} {{{reaction1}}} }}
+
{{#if:{{{itemcard5_name|}}}|[[Has itemcard5_name::Cards/{{{itemcard5_name}}}| ]]|}}
{{!-}}
+
{{#if:{{{itemcard6_name|}}}|[[Has itemcard6_name::Cards/{{{itemcard6_name}}}| ]]|}}
{{#if:{{{reaction1_range|}}}|
+
{{#if:{{{image1|}}}|[[Has Image::File:{{{image1}}}| ]]|}}
{{!}} style="background: pink;" {{!}} '''Range:'''
+
</includeonly>
{{!}} style="background: pink;" {{!}} {{{reaction1_range}}} }}
+
<noinclude>
{{!-}}
+
{{#if:{{{reaction1_duration|}}}|
+
{{!}} style="background: pink;" {{!}} '''Duration:'''
+
{{!}} style="background: pink;" {{!}} {{{reaction1_duration}}} }}
+
{{!-}}
+
{{#if:{{{reaction1_selftar|}}}|
+
{{!}} style="background: pink;" {{!}} '''Self target:'''
+
{{!}} style="background: pink;" {{!}} {{{reaction1_selftar}}} }}
+
{{!-}}
+
{{#if:{{{reaction1_chance|}}}|
+
{{!}} style="background: pink;" {{!}} '''Chance:'''
+
{{!}} style="background: pink;" {{!}} {{{reaction1_chance}}} }}
+
{{!-}}
+
{{#if:{{{reaction1_keep|}}}|
+
{{!}} style="background: pink;" {{!}} '''Keep:'''
+
{{!}} style="background: pink;" {{!}} {{{reaction1_keep}}} }}
+
{{!-}}
+
{{#if:{{{reaction2|}}}|
+
{{!}} style="background: lavender;" {{!}} '''Reaction 2:'''
+
{{!}} style="background: lavender;" {{!}} {{{reaction2}}} }}
+
{{!-}}
+
{{#if:{{{reaction2_range|}}}|
+
{{!}} style="background: lavender;" {{!}} ''Range:'''
+
{{!}} style="background: lavender;" {{!}} {{{reaction2_range}}} }}
+
{{!-}}
+
{{#if:{{{reaction2_duration|}}}|
+
{{!}} style="background: lavender;" {{!}} '''Duration:'''
+
{{!}} style="background: lavender;" {{!}} {{{reaction2_duration}}} }}
+
{{!-}}
+
{{#if:{{{reaction2_selftar|}}}|
+
{{!}} style="background: lavender;" {{!}} '''Self target:'''
+
{{!}} style="background: lavender;" {{!}} {{{reaction2_selftar}}} }}
+
{{!-}}
+
{{#if:{{{reaction2_chance|}}}|
+
{{!}} style="background: lavender;" {{!}} '''Chance:'''
+
{{!}} style="background: lavender;" {{!}} {{{reaction2_chance}}} }}
+
{{!-}}
+
{{#if:{{{reaction2_keep|}}}|
+
{{!}} style="background: lavender;" {{!}} '''Keep:'''
+
{{!}} style="background: lavender;" {{!}} {{{reaction2_keep}}} }}
+
{{!-}}
+
{{#if:{{{flavor|}}}|
+
{{!}} valign=top {{!}} '''Flavor Text:'''
+
{{!}} ''{{{flavor}}}''}}
+
|}[[Category:Cards|{{SUBPAGENAME}}]]</includeonly><noinclude>
+
  
 
This is the skeletal outline for a item page, usage is as follows:
 
This is the skeletal outline for a item page, usage is as follows:
Line 170: Line 103:
 
|name=<Item name, mandatory>
 
|name=<Item name, mandatory>
 
|type=<Item type, mandatory>
 
|type=<Item type, mandatory>
|rarity=<Item rarity, mandatory>
+
|rarity=<Item rarity (CUREL notation), mandatory>
 +
|expansion=<Item from expansion, optional>
 +
|AA=<Alooyzo's Arsenal Item, optional>
 
|level=<Item level, mandatory>  
 
|level=<Item level, mandatory>  
|talent bead=<Item talent bead, mandatory>  
+
|talent={{ItemTalent|<CSTP notation>|<CSTP notation>}}
|itemcard_qty=<number of cards making up the item, mandatory>
+
|value=<item value in gold, optional>
 +
|deleted?=<item deleted?, optional>
 +
|noloot?=<no loot flag, optional>
 
|itemcard1_qty=<qty of 1st card, mandatory>
 
|itemcard1_qty=<qty of 1st card, mandatory>
 
|itemcard1_name=<name of 1st card, mandatory>
 
|itemcard1_name=<name of 1st card, mandatory>
Line 183: Line 120:
 
}}
 
}}
 
</pre>
 
</pre>
 
Do not use yet ! template WIP.
 
  
 
</noinclude>
 
</noinclude>

Latest revision as of 20:53, 9 August 2015


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

{{Itempage
|image1=<image_filename.jpg, mandatory>
|name=<Item name, mandatory>
|type=<Item type, mandatory>
|rarity=<Item rarity (CUREL notation), mandatory>
|expansion=<Item from expansion, optional>
|AA=<Alooyzo's Arsenal Item, optional>
|level=<Item level, mandatory> 
|talent={{ItemTalent|<CSTP notation>|<CSTP notation>}}
|value=<item value in gold, optional>
|deleted?=<item deleted?, optional>
|noloot?=<no loot flag, optional>
|itemcard1_qty=<qty of 1st card, mandatory>
|itemcard1_name=<name of 1st card, mandatory>
|itemcard2_qty=<qty of 2nd card, optional>
|itemcard2_name=<name of 2nd card, optional>
|itemcard3_qty=<qty of 3rd card, optional>
|itemcard3_name=<name of 3rd card, optional>
| and so on...
}}


      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools