Portal Knights Wiki
Djk68 (talk | contribs)
(Created template for Item)
 
Roemar (talk | contribs)
m (Reverted edits by Hayaden (talk) to last revision by Roemar)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| class="infobox" style="float:right; font-size:100%; background-color: #eae4d8; color: #063B5E; width:{{{boxwidth|21em}}}; -moz-border-radius: .7em; -webkit-border-radius: .7em; border-radius: .7em;"
+
{| class="infobox" style="float:right; font-size:100%; background-color: #e9e2d4; color: #063B5E; width:{{{boxwidth|21em}}}; -moz-border-radius: .7em; -webkit-border-radius: .7em; border-radius: .7em;"
 
|-
 
|-
 
! colspan="2" style="background-color: #987e4d; color: #ffffff; font-size:120%; padding:0.5em; -moz-border-radius: .7em; -webkit-border-radius: .7em; border-radius: .7em;" | <!--
 
! colspan="2" style="background-color: #987e4d; color: #ffffff; font-size:120%; padding:0.5em; -moz-border-radius: .7em; -webkit-border-radius: .7em; border-radius: .7em;" | <!--
 
--><div style="line-height:19px;">{{{name|{{BASEPAGENAME}}}}}{{#if:{{{namesub|}}}|<br><span style="color: #c9c9c9; font-size:80%;">(''{{{namesub|}}}'')</span>}}</div>
 
--><div style="line-height:19px;">{{{name|{{BASEPAGENAME}}}}}{{#if:{{{namesub|}}}|<br><span style="color: #c9c9c9; font-size:80%;">(''{{{namesub|}}}'')</span>}}</div>
 
|-
 
|-
! colspan="2" | [[File:{{{1}}}_Icon.png|{{{iconsize|160px}}}|border|link=]]<hr>
+
! colspan="2" | {{#ifexist: File:{{{1}}}_Icon.png | [[File:{{{1}}}_Icon.png|{{{iconsize|160px}}}|link=]] | [[File:{{{1}}}.png|{{{iconsize|160px}}}|link=]] }}<hr>
 
|-
 
|-
 
{{#if: {{{maxstack|}}}|
 
{{#if: {{{maxstack|}}}|
Line 36: Line 36:
 
|-
 
|-
 
{{#if: {{{damage|}}}|
 
{{#if: {{{damage|}}}|
{{!}} '''damage:'''
+
{{!}} '''Damage:'''
 
{{!}} {{{damage|}}} }}
 
{{!}} {{{damage|}}} }}
 
|-
 
|-
Line 50: Line 50:
 
{{!}} '''Crafting Time:'''
 
{{!}} '''Crafting Time:'''
 
{{!}} {{{craftingtime|}}} }}
 
{{!}} {{{craftingtime|}}} }}
  +
|-
  +
{{#if: {{{duration|}}}|
  +
{{!}} '''Duration:'''
  +
{{!}} {{{duration|}}} }}
  +
|-
  +
{{#if: {{{cooldown|}}}|
  +
{{!}} '''Cooldown:'''
  +
{{!}} {{{cooldown|}}} }}
 
|-
 
|-
 
{{#if: {{{consumable|}}}|
 
{{#if: {{{consumable|}}}|

Latest revision as of 15:33, 20 July 2017

Template-info Documentation

This is the item info box. It has the following (optional) fields:

Usage

{{Item|icon filename|
| name            = (defaults to page name)
| namesub         = 
| maxstack        = 
| density         = 
| type            = 
| inflicts        = 
| soldby          = 
| buyprice        = 
| sellvalue       = 
| damage          = 
| armor           = 
| craftingstation = 
| craftingtime    = 
| duration        = 
| cooldown        = 
| consumable      = 
| internalid      =
}}

Example

Amazing Pickaxe
(My First Pickaxe)
Copper Pickaxe Icon
Max Stack: 1
Type: Tool
Inflicts: Mining Damage
Sold by: No one
Buy: 10,000 GP
Sell: 0 GP
Damage: +1
Craft With: Workbench
Crafting Time: 1m
Consumable: No
Internal Item ID = 1,234


{{Item|Copper Pickaxe|
| name = Amazing Pickaxe
| namesub = My First Pickaxe
| maxstack = 1
| type = Tool
| inflicts = Mining Damage
| soldby = No one
| buyprice = 10,000
| sellvalue = 0 
| damage = +1
| craftingstation = [[Workbench]]
| craftingtime = 1m
| consumable = No 
| internalid = 1,234
}}