Template:Itempage

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
 
(63 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="150pt"|<big>'''{{{name}}}'''</big>
 
|width="150pt"|<big>'''{{{name}}}'''</big>
Line 10: Line 10:
 
|'''Rarity:'''
 
|'''Rarity:'''
 
|{{ItemRarity|{{{rarity}}} }}
 
|{{ItemRarity|{{{rarity}}} }}
 +
|-
 +
|'''Expansion:'''
 +
|{{#if:{{{expansion|}}}|{{Exp_icon|{{{expansion}}} }} [[{{Expansion|{{{expansion}}} }}]]|Basic }}
 
|-
 
|-
 
|'''Item level:'''
 
|'''Item level:'''
 
|{{{level|<span style="color:red">Pls enter item level</span>}}}  
 
|{{{level|<span style="color:red">Pls enter item level</span>}}}  
 
|-
 
|-
| '''Talent:'''
+
| '''Power Token:'''
| {{{talent|None}}}
+
| {{{talent|[[Has talent::None]]}}}
 
|-
 
|-
 
{{#if:{{{value|}}}|
 
{{#if:{{{value|}}}|
Line 23: Line 26:
 
{{#if:{{{itemcard1_name|}}}|
 
{{#if:{{{itemcard1_name|}}}|
 
{{!}} '''Cards:'''
 
{{!}} '''Cards:'''
{{!}} {{{itemcard1_qty}}} x {{C|{{{itemcard1_name}}} }} }}
+
{{!}} [[Has itemcard1_qty::{{{itemcard1_qty}}}]] x {{C|{{{itemcard1_name}}} }} }}
 
{{!-}}
 
{{!-}}
 
{{#if:{{{itemcard2_name|}}}|
 
{{#if:{{{itemcard2_name|}}}|
 
{{!}}  
 
{{!}}  
{{!}} {{{itemcard2_qty}}} x {{C|{{{itemcard2_name}}} }} }}
+
{{!}} [[Has itemcard2_qty::{{{itemcard2_qty}}}]] x {{C|{{{itemcard2_name}}} }} }}
 
{{!-}}
 
{{!-}}
 
{{#if:{{{itemcard3_name|}}}|
 
{{#if:{{{itemcard3_name|}}}|
 
{{!}}  
 
{{!}}  
{{!}} {{{itemcard3_qty}}} x {{C|{{{itemcard3_name}}} }} }}
+
{{!}} [[Has itemcard3_qty::{{{itemcard3_qty}}}]] x {{C|{{{itemcard3_name}}} }} }}
 
{{!-}}
 
{{!-}}
 
{{#if:{{{itemcard4_name|}}}|
 
{{#if:{{{itemcard4_name|}}}|
 
{{!}}  
 
{{!}}  
{{!}} {{{itemcard4_qty}}} x {{C|{{{itemcard4_name}}} }} }}
+
{{!}} [[Has itemcard4_qty::{{{itemcard4_qty}}}]] x {{C|{{{itemcard4_name}}} }} }}
 
{{!-}}
 
{{!-}}
 
{{#if:{{{itemcard5_name|}}}|
 
{{#if:{{{itemcard5_name|}}}|
 
{{!}}  
 
{{!}}  
{{!}} {{{itemcard5_qty}}} x {{C|{{{itemcard5_name}}} }} }}
+
{{!}} [[Has itemcard5_qty::{{{itemcard5_qty}}}]] x {{C|{{{itemcard5_name}}} }} }}
 
{{!-}}
 
{{!-}}
 
{{#if:{{{itemcard6_name|}}}|
 
{{#if:{{{itemcard6_name|}}}|
 
{{!}}  
 
{{!}}  
{{!}} {{{itemcard6_qty}}} x {{C|{{{itemcard6_name}}} }} }}
+
{{!}} [[Has itemcard6_qty::{{{itemcard6_qty}}}]] x {{C|{{{itemcard6_name}}} }} }}
 
|}
 
|}
  
 
{{#if:{{{itemcard1_name|}}} |
 
{{#if:{{{itemcard1_name|}}} |
 
{{#ifexist:Cards/{{{itemcard1_name}}}|
 
{{#ifexist:Cards/{{{itemcard1_name}}}|
{{ {{{itemcard1_qty}}}x|{{CardImage|{{{itemcard1_name}}}.png}} }}|
+
{{ {{{itemcard1_qty}}}x|[[File:{{{itemcard1_name}}}.jpeg|150px|link=Cards/{{{itemcard1_name}}}]] }}|
{{ {{{itemcard1_qty}}}x|{{CardImage|No_image.png}} ‎}} }}
+
{{ {{{itemcard1_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
 
|}}
 
|}}
 
{{#if:{{{itemcard2_name|}}} |
 
{{#if:{{{itemcard2_name|}}} |
 
{{#ifexist:Cards/{{{itemcard2_name}}}|
 
{{#ifexist:Cards/{{{itemcard2_name}}}|
{{ {{{itemcard2_qty}}}x|{{CardImage|{{{itemcard2_name}}}.png}} }}|
+
{{ {{{itemcard2_qty}}}x|[[File:{{{itemcard2_name}}}.jpeg|150px|link=Cards/{{{itemcard2_name}}}]] }}|
{{ {{{itemcard2_qty}}}x|{{CardImage|No_image.png}} }} }}
+
{{ {{{itemcard2_qty}}}x|[[File:No_image.png|150px]] }} }}
 
|}}
 
|}}
 
{{#if:{{{itemcard3_name|}}} |
 
{{#if:{{{itemcard3_name|}}} |
 
{{#ifexist:Cards/{{{itemcard3_name}}}|
 
{{#ifexist:Cards/{{{itemcard3_name}}}|
{{ {{{itemcard3_qty}}}x|{{CardImage|{{{itemcard3_name}}}.png}} }}|
+
{{ {{{itemcard3_qty}}}x|[[File:{{{itemcard3_name}}}.jpeg|150px|link=Cards/{{{itemcard3_name}}}]] }}|
{{ {{{itemcard3_qty}}}x|{{CardImage|No_image.png}} }} }}
+
{{ {{{itemcard3_qty}}}x|[[File:No_image.png|150px]] }} }}
 
|}}
 
|}}
 
{{#if:{{{itemcard4_name|}}} |
 
{{#if:{{{itemcard4_name|}}} |
 
{{#ifexist:Cards/{{{itemcard4_name}}}|
 
{{#ifexist:Cards/{{{itemcard4_name}}}|
{{ {{{itemcard4_qty}}}x|{{CardImage|{{{itemcard4_name}}}.png}} }}|
+
{{ {{{itemcard4_qty}}}x|[[File:{{{itemcard4_name}}}.jpeg|150px|link=Cards/{{{itemcard4_name}}}]] }}|
{{ {{{itemcard4_qty}}}x|{{CardImage|No_image.png}} ‎}} }}
+
{{ {{{itemcard4_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
 
|}}
 
|}}
 
{{#if:{{{itemcard5_name|}}} |
 
{{#if:{{{itemcard5_name|}}} |
 
{{#ifexist:Cards/{{{itemcard5_name}}}|
 
{{#ifexist:Cards/{{{itemcard5_name}}}|
{{ {{{itemcard5_qty}}}x|{{CardImage|{{{itemcard5_name}}}.png}} }}|
+
{{ {{{itemcard5_qty}}}x|[[File:{{{itemcard5_name}}}.jpeg|150px|link=Cards/{{{itemcard5_name}}}]] }}|
{{ {{{itemcard5_qty}}}x|{{CardImage|No_image.png}} ‎}} }}
+
{{ {{{itemcard5_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
 
|}}
 
|}}
 
{{#if:{{{itemcard6_name|}}} |
 
{{#if:{{{itemcard6_name|}}} |
 
{{#ifexist:Cards/{{{itemcard6_name}}}|
 
{{#ifexist:Cards/{{{itemcard6_name}}}|
{{ {{{itemcard6_qty}}}x|{{CardImage|{{{itemcard6_name}}}.png}} }}|
+
{{ {{{itemcard6_qty}}}x|[[File:{{{itemcard6_name}}}.jpeg|150px|link=Cards/{{{itemcard6_name}}}]] }}|
{{ {{{itemcard6_qty}}}x|{{CardImage|No_image.png}} ‎}} }}
+
{{ {{{itemcard6_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
 
|}}
 
|}}
 
+
{{#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}}]]}}
{{ItemCat|{{{type}}}|{{{rarity}}} }}
+
{{#ifeq: {{uc:{{{noloot?|}}} }} | YES | This item is not available as a loot drop.|}}
 
+
<!--Semantic Properties for items, edit with care !-->
[[Category:Items|{{SUBPAGENAME}}]]
+
{{#if:{{{level|}}}|[[Has Itemlevel::{{{level}}}| ]]|}}
 +
{{#if:{{{type|}}}|[[Has Itemtype::{{ItemType|{{{type}}} }}| ]]|}}
 +
{{#if:{{{rarity|}}}|[[Has Itemrarity::{{ItemRarity|{{{rarity}}} }}| ]]|}}
 +
{{#if:{{{expansion|}}}|[[Has Itemexpansion::{{Expansion|{{{expansion}}} }}| ]]|[[Has Itemexpansion::Basic| ]]}}
 +
{{#if:{{{itemcard1_name|}}}|[[Has itemcard1_name::Cards/{{{itemcard1_name}}}| ]]|}}
 +
{{#if:{{{itemcard2_name|}}}|[[Has itemcard2_name::Cards/{{{itemcard2_name}}}| ]]|}}
 +
{{#if:{{{itemcard3_name|}}}|[[Has itemcard3_name::Cards/{{{itemcard3_name}}}| ]]|}}
 +
{{#if:{{{itemcard4_name|}}}|[[Has itemcard4_name::Cards/{{{itemcard4_name}}}| ]]|}}
 +
{{#if:{{{itemcard5_name|}}}|[[Has itemcard5_name::Cards/{{{itemcard5_name}}}| ]]|}}
 +
{{#if:{{{itemcard6_name|}}}|[[Has itemcard6_name::Cards/{{{itemcard6_name}}}| ]]|}}
 +
{{#if:{{{image1|}}}|[[Has Image::File:{{{image1}}}| ]]|}}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
Line 90: Line 103:
 
|name=<Item name, mandatory>
 
|name=<Item name, mandatory>
 
|type=<Item type, mandatory>
 
|type=<Item type, mandatory>
|rarity=<Item rarity (CURE notation), 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={{ItemTalent|<CS notation>|<CS notation>|<CS notation>|<CS notation>}}
+
|talent={{ItemTalent|<CSTP notation>|<CSTP notation>}}
|value=<item value in gold>
+
|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>

Latest revision as of 19: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