Difference between revisions of "Template:Infobox Item"

From Corruption of Champions II
Jump to navigation Jump to search
m
m (added contributors)
 
(25 intermediate revisions by 5 users not shown)
Line 4: Line 4:
 
| above = {{{name|}}}
 
| above = {{{name|}}}
  
|label1 = Type
+
| subheaderstyle = font-size: 125%; font-weight: bold;
|data1 = {{{itemtype|}}}
+
| subheader = {{{shortname|}}}
  
|label2 = Short Name
+
|label1 = Author
|data2 = {{{shortname|}}}
+
|data1 = {{{author|}}}
  
|label3 = Slot
+
|label2 = Contributors
|data3 = {{{slotname|}}}
+
|data2 = {{{contributors|}}}
  
|label4 = Base Price
+
|label3 = Type
|data4 = {{{baseprice|}}}
+
|data3 = {{{itemtype|}}}
  
|header5 = {{ #if: {{{damage|}}}{{{damagetype|}}}{{{defense|}}}{{{shielddefense|}}}{{{bonusshield|}}}{{{accuracy|}}}{{{sexiness|}}}{{{critbonus|}}}{{{evasion|}}}{{{fortification|}}}{{{bonusresistances|}}}{{{lustvuln|}}}{{{usable|}}}{{{combatusable|}}}{{{deftarget|}}}{{{addflags|}}} | {{ #if: {{{info-hdr|}}}|{{{info-hdr}}}|Information }} }}
+
|label4 = Slot
 +
|data4 = {{{slotname|}}}
  
|label6 = Damage
+
|label5 = Base Price
|data6 = {{{damage|}}}
+
|data5 = {{{baseprice|}}}
  
|label7 = Damage Type
+
|header6 = {{ #if: {{{damage|}}}{{{damagetype|}}}{{{accuracy|}}}{{{critbonus|}}}{{{spellpower|}}}{{{spellpenetration|}}}{{{armorpenetration|}}}{{{armor|}}}{{{ward|}}}{{{evasion|}}}{{{focus|}}}{{{sexiness|}}}{{{temptation|}}}{{{specialstats|}}}{{{bonusresistances|}}}{{{lustvuln|}}}{{{stacklimit|}}}{{{usable|}}}{{{combatusable|}}}{{{deftarget|}}}{{{addflags|}}} | {{ #if: {{{info-hdr|}}}|{{{info-hdr}}}|Additional Information }} }}
|data7 = {{{damagetype|}}}
 
  
|label8 = Defense
+
|label7 = Damage
|data8 = {{{defense|}}}
+
|data7 = {{{damage|}}}
 +
 
 +
|label8 = Damage Type
 +
|data8 = {{{damagetype|}}}
  
 
|label9 = Accuracy
 
|label9 = Accuracy
 
|data9 = {{{accuracy|}}}
 
|data9 = {{{accuracy|}}}
  
|label10 = Sexiness
+
|label10 = Crit Bonus
|data10 = {{{sexiness|}}}
+
|data10 = {{{critbonus|}}}
 +
 
 +
|label11 = Spellpower
 +
|data11 = {{{spellpower|}}}
 +
 
 +
|label12 = Spell Penetration
 +
|data12 = {{{spellpenetration|}}}
 +
 
 +
|label13 = Armor Penetration
 +
|data13 = {{{armorpenetration|}}}
 +
 
 +
|label14 = Armor
 +
|data14 = {{{armor|}}}
 +
 
 +
|label15 = Ward
 +
|data15 = {{{ward|}}}
 +
 
 +
|label16 = Evasion
 +
|data16 = {{{evasion|}}}
  
|label11 = Crit Bonus
+
|label17 = Focus
|data11 = {{{critbonus|}}}
+
|data17 = {{{focus|}}}
  
|label12 = Evasion
+
|label18 = Sexiness
|data12 = {{{evasion|}}}
+
|data18 = {{{sexiness|}}}
  
|label13 = Bonus Resistances
+
|label19 = Temptation
|data13 = {{{bonusresistances|}}}
+
|data19 = {{{temptation|}}}
  
|label14 = Lust Vulnerability
+
|label20 = Special Stats
|data14 = {{{lustvuln|}}}
+
|data20 = {{{specialstats|}}}
  
|label15 = Usable
+
|label21 = Bonus Resistances
|data15 = {{{usable|}}}
+
|data21 = {{{bonusresistances|}}}
  
|label16 = Combat Usable
+
|label22 = Lust Vulnerability
|data16 = {{{combatusable|}}}
+
|data22 = {{{lustvuln|}}}
  
|label17 = Defensive Target
+
|label23 = Stack Limit
|data17 = {{{deftarget|}}}
+
|data23 = {{{stacklimit|}}}
  
|label18 = Additional Flags
+
|label24 = Usable
|data18 = {{{addflags|}}}
+
|data24 = {{{usable|}}}
}}
+
 
 +
|label25 = Combat Usable
 +
|data25 = {{{combatusable|}}}
 +
 
 +
|label26 = Defensive Target
 +
|data26 = {{{deftarget|}}}
 +
 
 +
|label27 = Additional Flags
 +
|data27 = {{{addflags|}}}
  
 +
|label28 = Version Added
 +
|data28 = {{{versionadded|}}}
 +
}}<noinclude>
  
<noinclude>
 
 
==Usage==
 
==Usage==
<pre>
+
Parameters with empty values usually can be removed without any bad effect.
<nowiki>
+
 
{{Infobox CoC2Item
+
All possible parameters:
| name = Item Name
+
<pre><nowiki>
| type = Item Type
+
{{Infobox Item
| shortname = Short Name
+
| name = long item name
| slotname = Slot
+
| author = writer/creator of the item
 +
| contributors = contributors to the item
 +
| itemtype = type of the item according to the vague system used on the wiki
 +
| shortname = short name, as used in inventory buttons, e.g. "Sp.Blade" for "Spiralled Blade"; omit if it's the same
 +
| slotname = name of the equipment slot, if the item can be equipped
 
| baseprice = Base Price
 
| baseprice = Base Price
 
| damage = Damage
 
| damage = Damage
 
| damagetype = Damage Type
 
| damagetype = Damage Type
| defense = Defense
 
 
| accuracy = Accuracy
 
| accuracy = Accuracy
| sexiness = Sexiness
 
 
| critbonus = Crit Bonus
 
| critbonus = Crit Bonus
 +
| spellpower = Spellpower
 +
| spellpenetration = Spell Penetration
 +
| armorpenetration = Armor Penetration
 +
| armor = Armor
 +
| ward = Ward
 
| evasion = Evasion
 
| evasion = Evasion
 +
| focus = Focus
 +
| sexiness = Sexiness
 +
| temptation = Lust Penetration
 +
| specialstats = Other Bonus stats such as initiative
 
| bonusresistances = Bonus Resistances
 
| bonusresistances = Bonus Resistances
 
| lustvuln = Lust Vulnerability
 
| lustvuln = Lust Vulnerability
| usable = Yes or omit
+
| stacklimit = How many times the item can stack in one inventory slot
| combatusable = Yes or omit
+
| usable = Yes or omit if the item can't be used outside of combat (usable = has the "use" button)
| deftarget = Defensive Target
+
| combatusable = Yes or omit if the item can't be used in combat
| addflags = Additional Flags
+
| deftarget = Defensive Target (???)
 +
| addflags = item flags, such as METAL, HEAVY, etc.
 +
| versionadded = What patch said item was added in
 
}}
 
}}
</nowiki>
+
</nowiki></pre>
</pre>
+
 
 
<noinclude>
 
<noinclude>

Latest revision as of 10:52, 22 August 2021

Usage

Parameters with empty values usually can be removed without any bad effect.

All possible parameters:

{{Infobox Item
| name = long item name
| author = writer/creator of the item
| contributors = contributors to the item
| itemtype = type of the item according to the vague system used on the wiki
| shortname = short name, as used in inventory buttons, e.g. "Sp.Blade" for "Spiralled Blade"; omit if it's the same
| slotname = name of the equipment slot, if the item can be equipped
| baseprice = Base Price
| damage = Damage
| damagetype = Damage Type
| accuracy = Accuracy
| critbonus = Crit Bonus
| spellpower = Spellpower
| spellpenetration = Spell Penetration
| armorpenetration = Armor Penetration
| armor = Armor
| ward = Ward
| evasion = Evasion
| focus = Focus
| sexiness = Sexiness
| temptation = Lust Penetration 
| specialstats = Other Bonus stats such as initiative
| bonusresistances = Bonus Resistances
| lustvuln = Lust Vulnerability
| stacklimit = How many times the item can stack in one inventory slot
| usable = Yes or omit if the item can't be used outside of combat (usable = has the "use" button)
| combatusable = Yes or omit if the item can't be used in combat
| deftarget = Defensive Target (???)
| addflags = item flags, such as METAL, HEAVY, etc.
| versionadded = What patch said item was added in
}}