Template:Itempage

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<includeonly> {| style="background:white; border-collapse: collapse; width=85%;" |width="100pt"|'''Item name:''' |width="200pt"|<big>'''{{{name}}}'''</big> |rowspan={{#expr:4+...")
 
 
(175 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:'''
+
{{!}} style="background: beige;" {{!}} {{{effect1_duration}}} }}
+
{{!-}}
+
{{#if:{{{effect1_selftar|}}}|
+
{{!}} style="background: beige;" {{!}} '''Self target:'''
+
{{!}} style="background: beige;" {{!}} {{{effect1_selftar}}} }}
+
{{!-}}
+
{{#if:{{{effect1_chance|}}}|
+
{{!}} style="background: beige;" {{!}} '''Chance:'''
+
{{!}} style="background: beige;" {{!}} {{{effect1_chance}}} }}
+
{{!-}}
+
{{#if:{{{effect1_keep|}}}|
+
{{!}} style="background: beige;" {{!}} '''Keep:'''
+
{{!}} style="background: beige;" {{!}} {{{effect1_keep}}} }}
+
{{!-}}
+
{{#if:{{{effect2|}}}|
+
{{!}} style="background: aliceblue;" {{!}} '''Play effect 2:'''
+
{{!}} style="background: aliceblue;" {{!}} {{{effect2}}} }}
+
{{!-}}
+
{{#if:{{{effect2_range|}}}|
+
{{!}} style="background: aliceblue;" {{!}} '''Range:'''
+
{{!}} style="background: aliceblue;" {{!}} {{{effect2_range}}} }}
+
{{!-}}
+
{{#if:{{{effect2_duration|}}}|
+
{{!}} style="background: aliceblue;" {{!}} '''Duration:'''
+
{{!}} style="background: aliceblue;" {{!}} {{{effect2_duration}}} }}
+
{{!-}}
+
{{#if:{{{effect2_selftar|}}}|
+
{{!}} style="background: aliceblue;" {{!}} '''Self target:'''
+
{{!}} style="background: aliceblue;" {{!}} {{{effect2_selftar}}} }}
+
{{!-}}
+
{{#if:{{{effect2_chance|}}}|
+
{{!}} style="background: aliceblue;" {{!}} '''Chance:'''
+
{{!}} style="background: aliceblue;" {{!}} {{{effect2_chance}}} }}
+
{{!-}}
+
{{#if:{{{effect2_keep|}}}|
+
{{!}} style="background: aliceblue;" {{!}} '''Keep:'''
+
{{!}} style="background: aliceblue;" {{!}} {{{effect2_keep}}} }}
+
{{!-}}
+
{{#if:{{{reaction1|}}}|
+
{{!}} style="background: pink;" {{!}} '''Reaction 1:'''
+
{{!}} style="background: pink;" {{!}} {{{reaction1}}} }}
+
{{!-}}
+
{{#if:{{{reaction1_range|}}}|
+
{{!}} style="background: pink;" {{!}} '''Range:'''
+
{{!}} style="background: pink;" {{!}} {{{reaction1_range}}} }}
+
{{!-}}
+
{{#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 card page, usage is as follows:
+
{{#if:{{{itemcard1_name|}}} |
 +
{{#ifexist:Cards/{{{itemcard1_name}}}|
 +
{{ {{{itemcard1_qty}}}x|[[File:{{{itemcard1_name}}}.jpeg|150px|link=Cards/{{{itemcard1_name}}}]] }}|
 +
{{ {{{itemcard1_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
 +
|}}
 +
{{#if:{{{itemcard2_name|}}} |
 +
{{#ifexist:Cards/{{{itemcard2_name}}}|
 +
{{ {{{itemcard2_qty}}}x|[[File:{{{itemcard2_name}}}.jpeg|150px|link=Cards/{{{itemcard2_name}}}]] }}|
 +
{{ {{{itemcard2_qty}}}x|[[File:No_image.png|150px]] }} }}
 +
|}}
 +
{{#if:{{{itemcard3_name|}}} |
 +
{{#ifexist:Cards/{{{itemcard3_name}}}|
 +
{{ {{{itemcard3_qty}}}x|[[File:{{{itemcard3_name}}}.jpeg|150px|link=Cards/{{{itemcard3_name}}}]] }}|
 +
{{ {{{itemcard3_qty}}}x|[[File:No_image.png|150px]] }} }}
 +
|}}
 +
{{#if:{{{itemcard4_name|}}} |
 +
{{#ifexist:Cards/{{{itemcard4_name}}}|
 +
{{ {{{itemcard4_qty}}}x|[[File:{{{itemcard4_name}}}.jpeg|150px|link=Cards/{{{itemcard4_name}}}]] }}|
 +
{{ {{{itemcard4_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
 +
|}}
 +
{{#if:{{{itemcard5_name|}}} |
 +
{{#ifexist:Cards/{{{itemcard5_name}}}|
 +
{{ {{{itemcard5_qty}}}x|[[File:{{{itemcard5_name}}}.jpeg|150px|link=Cards/{{{itemcard5_name}}}]] }}|
 +
{{ {{{itemcard5_qty}}}x|[[File:No_image.png|150px]] ‎}} }}
 +
|}}
 +
{{#if:{{{itemcard6_name|}}} |
 +
{{#ifexist:Cards/{{{itemcard6_name}}}|
 +
{{ {{{itemcard6_qty}}}x|[[File:{{{itemcard6_name}}}.jpeg|150px|link=Cards/{{{itemcard6_name}}}]] }}|
 +
{{ {{{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}}]]}}
 +
{{#ifeq: {{uc:{{{noloot?|}}} }} | YES | This item is not available as a loot drop.|}}
 +
<!--Semantic Properties for items, edit with care !-->
 +
{{#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>
 +
<noinclude>
 +
 
 +
This is the skeletal outline for a item page, usage is as follows:
  
 
<pre>
 
<pre>
{{Cardpage
+
{{Itempage
 
|image1=<image_filename.jpg, mandatory>
 
|image1=<image_filename.jpg, mandatory>
|name=<Card name, mandatory>
+
|name=<Item name, mandatory>
|titlebar=<Card quality*, mandatory>
+
|type=<Item type, mandatory>
|rarity=<Card rarity in keywords or plain text, mandatory>
+
|rarity=<Item rarity (CUREL notation), mandatory>
|cardcolor1=<Card color1, mandatory>
+
|expansion=<Item from expansion, optional>
|cardcolor2=<Card color2, optional>
+
|AA=<Alooyzo's Arsenal Item, optional>
|cardcolor3=<Card color3, optional>
+
|level=<Item level, mandatory>  
|Type=<type in keywords or plain text, optional>
+
|talent={{ItemTalent|<CSTP notation>|<CSTP notation>}}
|damType=<damage type in keywords or plain text, optional>
+
|value=<item value in gold, optional>
|effectType=<effect type in keywords or plain text, optional>
+
|deleted?=<item deleted?, optional>
|damage=<damage value, optional>
+
|noloot?=<no loot flag, optional>
|range=<range value, optional>
+
|itemcard1_qty=<qty of 1st card, mandatory>
|effect1=<effect 1 in keywords or plain text, optional>
+
|itemcard1_name=<name of 1st card, mandatory>
|effect1_range=<integer range, optional>
+
|itemcard2_qty=<qty of 2nd card, optional>
|effect1_duration=<integer duration, optional>
+
|itemcard2_name=<name of 2nd card, optional>
|effect1_selftar=<Yes, optional>
+
|itemcard3_qty=<qty of 3rd card, optional>
|effect1_chance=<dice roll, optional>
+
|itemcard3_name=<name of 3rd card, optional>
|effect1_keep=<Yes, optional>
+
| and so on...
|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>
+
 
}}
 
}}
 
</pre>
 
</pre>
  
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)
 
 
</noinclude>
 
</noinclude>

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