Changes

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search

Template:Itembox

10,866 bytes added, 16:49, 16 July 2010
m
no edit summary
<includeonly><!--  FLAT VERSION (D2) STARTS HERE!!!  -->{{#if: {{#switch: {{{flat|}}} |Yes = Yes |yes = Yes |No = |no = }} |<!-- -->{{clear|both}}<table cellpadding="4" width="100%" style="border-collapse: collapse; border: none; background: #2D0606; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 11px; font-size: 11px;"> <tr> <td valign="top" style="text-align: center; line-height: 20px; font-size: 14px; width: 150px;"><!---->{{#if: {{{name_full|}}} |<!---->{{#if: {{{name|}}} | <b>[[{{{name_full}}}|{{{name}}}]]</b> | <span style=" font-size:11px;">"name" attribute must be added in main article</span>}} |<!---->{{#if: {{{name|}}} | <b>[[{{{name}}}]]</b> | <span style=" font-size:11px; margin:0px 0px 5px 0px;">"name" attribute must be added in main article</span>}} }}<!----><br /><!---->[[File:{{{portrait|Diablo_II_Logo.jpg}}}|{{{portrait-width|140px}}}|link={{{name|File:{{{portrait|File:Diablo_II_Logo.jpg}}} }}}]]<!---->{{#if: {{{base_item|}}} | <br /> ([[{{{base_item|}}}]]) }}<!---->{{#if: {{{ilvl|}}} | <span style="font-size:10px; line-height:10px;"><br />[[Item level|Ilvl]]: {{{ilvl|}}} </span>}} </td><!--   --> <td valign="top" style="width: 280px;"><!---->{{#if: {{{dam_melee_low|}}} {{{dam_melee_high|}}} |<!---->:* Melee Damage: {{{dam_melee_low|}}} {{#if: {{{dam_melee_low|}}} | {{#if: {{{dam_melee_high|}}} | - }} }} {{{dam_melee_high|}}}<!---->}}<!---->{{#if: {{{dam_melee_1h_low|}}} {{{dam_melee_1h_high|}}} |<!---->:* Melee 1h Damage: {{{dam_melee_1h_low|}}} {{#if: {{{dam_melee_1h_low|}}} | {{#if: {{{dam_melee_1h_high|}}} | - }} }} {{{dam_melee_1h_high|}}}<!---->}}<!---->{{#if: {{{dam_range_low|}}} {{{dam_range_high|}}} |<!---->:* Ranged Damage: {{{dam_range_low|}}} {{#if: {{{dam_range_low|}}} | {{#if: {{{dam_range_high|}}} | - }} }} {{{dam_range_high|}}}<!---->}}<!---->{{#if: {{{speed|}}}|<!---->:* [[Weapon Speed]]: {{{speed|}}}<!---->}}<!---->{{#if: {{{range|}}}|<!---->:* [[Range]]: {{{range|}}}<!---->}}<!---->{{#if: {{{dam_bonus_dex|}}} {{{dam_bonus_str|}}} |<!---->{{#if: {{{dam_bonus_dex|}}} | {{#if: {{{dam_bonus_str|}}}|<!---->:* [[Damage Bonus]]: {{{dam_bonus_dex|}}} [[Dexterity|Dex]], {{{dam_bonus_str|}}} [[Strength|Str]] |<!---->:* [[Damage Bonus]]: {{{dam_bonus_dex|}}} [[Dexterity|Dex]]}}|<!---->{{#if: {{{dam_bonus_str|}}}|<!---->:* [[Damage Bonus]]: {{{dam_bonus_str|}}} [[Strength|Str]]}} }}<!---->}}<!---->{{#if: {{{defense|}}}|<!---->:* [[Defense]]: {{{defense|}}} {{#if: {{{armortype|}}} |<!---->:**''[[{{{armortype|}}} Armor]]''}}<!---->}}<!---->{{#if: {{{socket|}}}|<!---->:* [[Socket]]s: {{{socket|}}}<!---->}}<!---->{{#if: {{{dam_melee_low|}}} {{{dam_melee_high|}}} {{{dam_range_low|}}} {{{dam_range_high|}}} {{{speed|}}} {{{range|}}} {{{dam_bonus_dex|}}} {{{dam_bonus_str|}}} {{{defense|}}} {{{armortype|}}} {{{socket|}}} |<hr style="background-color:#4D0B0B; height: 1px;" width="100%">}}<!----><!---->{{#if: {{{durability|}}}|<!---->:* [[Durability]]: {{{durability}}} }}<!----><!---->{{#if: {{{storage|}}}|<!---->:* {{{storage}}} slots }}<!----><!---->{{#if: {{{stack|}}}|<!---->:* [[Stack|Stack Size]]: {{{stack}}} }}<!----><!---->{{#if: {{{inv_size|}}}|<!---->:* [[Inventory size|Inv Size]]: {{{inv_size}}} }}<!----><hr style="background-color:#4D0B0B; height: 1px;" width="100%"><!---->{{#if: {{{barbarian_d3|}}}{{{monk_d3|}}}{{{witch_doctor|}}}{{{wizard|}}}{{{other_class|}}}{{{amazon|}}}{{{assassin|}}}{{{barbarian_d2|}}}{{{druid|}}}{{{necromancer|}}}{{{paladin|}}}{{{sorceress|}}}{{{barbarian_d1|}}}{{{bard|}}}{{{monk_d1|}}}{{{rogue|}}}{{{sorcerer|}}}{{{warrior|}}} | <!---->:* Usable by: <!----><!--D3--><!----> {{#if: {{{barbarian_d3|}}} | [[Barbarian (Diablo III)|Barbarian]] }}<!----> {{#if: {{{monk_d3|}}} | [[Monk (Diablo III)|Monk]] }}<!----> {{#if: {{{witch_doctor|}}} | [[Witch Doctor]] }}<!----> {{#if: {{{wizard|}}} | [[Wizard]] }}<!----> {{#if: {{{other_class|}}} | [[Other class]]es }}<!----><!--D2--><!----> {{#if: {{{amazon|}}} | [[Amazon]] }}<!----> {{#if: {{{assassin|}}} | [[Assassin]] }}<!----> {{#if: {{{barbarian_d2|}}} | [[Barbarian (Diablo II)|Barbarian]] }}<!----> {{#if: {{{druid|}}} | [[Druid]] }}<!----> {{#if: {{{necromancer|}}} | [[Necromancer]] }}<!----> {{#if: {{{paladin|}}} | [[Paladin]] }}<!----> {{#if: {{{sorceress|}}} | [[Sorceress]] }}<!----><!--D1--> {{#if: {{{barbarian_d1|}}} | [[Barbarian (Diablo I)|Barbarian]] }}<!----> {{#if: {{{bard|}}} | [[Bard]] }}<!----> {{#if: {{{monk_d1|}}} | [[Monk (Diablo I)|Monk]] }}<!----> {{#if: {{{rogue|}}} | [[Rogue]] }}<!----> {{#if: {{{sorcerer|}}} | [[Sorcerer]] }}<!----> {{#if: {{{warrior|}}} | [[Warrior]] }}<!---->}}<!-- END USABLE BY-->{{#if: {{{str|}}}|<!---->:* Required [[Strength]]: {{{str|}}}<!---->}}<!---->{{#if: {{{dex|}}}|<!---->:* Required [[Dexterity]]: {{{dex|}}}<!---->}}<!---->{{#if: {{{lvl|}}}|<!---->:* Required [[Level]]: {{{lvl|}}}<!---->}}<!---->{{#if: {{{sell|}}}|<!---->:* Sell Value: {{{sell|}}} }} </td> <td valign="top">{{#if: {{{set|}}} |<div style="float:right; margin: 0px 0px 5px 10px;">'''Part of: [[{{{set|}}}]]'''</div> }}<!---->{{#if: {{{d2x|}}} | <div style="float: right; margin: 0px 0px 5px 10px; clear: right;">[[File:Diablo_II_X_mini-icon.png|link=http://www.diablowiki.net/Diablo_II:_Lord_of_Destruction|30px]]</div> }}<!---->{{#if: {{{patch|}}} | <div style="font-size: 10px; float: right; margin: 0px 0px 5px 10px; font-weight: normal; clear: right;">[[Patch {{{patch|}}}|{{{patch|}}}]]</div> }}<!---->{{#if: {{{ladder|}}} | <div style="float: right; margin: 0px 0px 5px 10px; clear: right;">[[File:Ladder_icon.png|link=Ladder]]</div> }}<!-- -->{{#if: {{{assassin|}}}|<!---->:* '''[[Assassin item|Assassin Inherent Bonus]]''' <!---->}}<!---->{{#if: {{{amazon|}}}|<!---->:* '''[[Amazon item|Amazon Inherent Bonus]]''' <!---->}}<!---->{{#if: {{{barbarian_d2|}}}|<!---->:* '''[[Barbarian item|Barbarian Inherent Bonus]]''' <!---->}}<!---->{{#if: {{{druid|}}}|<!---->:* '''[[Druid item|Druid Inherent Bonus]]''' <!---->}}<!---->{{#if: {{{necromancer|}}}|<!---->:* '''[[Necromancer item|Necromancer Inherent Bonus]]''' <!---->}}<!---->{{#if: {{{paladin|}}}|<!---->:* '''[[Paladin item|Paladin Inherent Bonus]]''' <!---->}}<!---->{{#if: {{{sorceress|}}}|<!---->:* '''[[Sorceress item|Sorceress Inherent Bonus]]''' <!---->}}<!---->{{#if: {{{property|}}}|<!---->:* {{{property|}}}<!---->}}<!---->{{#if: {{{property2|}}}|<!---->:* {{{property2|}}}<!---->}}<!---->{{#if: {{{property3|}}}|<!---->:* {{{property3|}}}<!---->}}<!---->{{#if: {{{property4|}}}|<!---->:* {{{property4|}}}<!---->}}<!---->{{#if: {{{property5|}}}|<!---->:* {{{property5|}}}<!---->}}<!---->{{#if: {{{property6|}}}|<!---->:* {{{property6|}}}<!---->}}<!---->{{#if: {{{property7|}}}|<!---->:* {{{property7|}}}<!---->}}<!---->{{#if: {{{property8|}}}|<!---->:* {{{property8|}}}<!---->}}<!---->{{#if: {{{property9|}}}|<!---->:* {{{property9|}}}<!---->}}<!---->{{#if: {{{property10|}}}|<!---->:* {{{property10|}}}<!---->}}<!---->{{#if: {{{property11|}}}|<!---->:* {{{property11|}}}<!---->}}<!---->{{#if: {{{property12|}}}|<!---->:* {{{property12|}}}<!---->}}<!---->{{#if: {{{property13|}}}|<!---->:* {{{property13|}}}<!---->}}<!---->{{#if: {{{property14|}}}|<!---->:* {{{property14|}}}<!---->}}<!---->{{#if: {{{property15|}}}|<!---->:* {{{property15|}}}<!---->}}  </td> </tr></table> |<!--  MAIN SECTION STARTS HERE!!!  --><table cellpadding="4" width="250px" align="right" style="border-collapse: collapse; border: none; background: #2D0606; margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 10px; line-height: 11px; font-size: 11px;"> {{#if: {{{item_set_short|}}}{{{extra-quality|}}}||
<tr>
<th colspan="4" style="text-align: center; line-height: 12px; font-size: 14px;">'''[[{{{Game|Diablo II}}}]] [[Item|Item Info]]''' {{editlink|Template:Itembox|e|diablo2|A|A}}</th>
<tr>
<td colspan="4" style="text-align: center;">[[File:{{{portrait|Diablo_II_Logo.jpg}}}|{{{portrait-width|200px}}}]]</td>
</tr> }}<!-- END item_set_short AND extra-quality -->
<tr>
<th colspan="4" style="text-align: center; line-height: 14px; font-size: 16px;"><!--
-->{{#if: {{{patch|}}} | <div style="font-size: 10px; float: right; margin-left: -28px; font-weight: normal;">[[Patch {{{patch|}}}|{{{patch|}}}]]</div> }}<!--
-->{{#if: {{{d2x|}}} | <div style="float: left; margin: 0px -20px 1px 0px;">[[File:Diablo_II_X_mini-icon.png|link=http://www.diablowiki.net/Diablo_II:_Lord_of_Destruction|20px]]</div> }}<!--
-->{{#if: {{{ilvl|}}} | <div style="font-size: 10px; float: right; margin-left: -40px; font-weight: normal; clear:right;">[[Item level|Ilvl]]: {{{ilvl|}}} {{#if: {{{ilvl_high|}}} | - {{{ilvl_high|}}} }}</div> }}<!--
-->{{#if: {{{ladder|}}} | <div style="float: left; margin-right: -16px; clear:left;">[[File:Ladder_icon.png|link=Ladder]]</div> }}<!--
--><!--
-->{{#if: {{{item_set|}}}|<span style="color:#00c400;"> <bstyle="width:80%; display:block; margin: 0 auto;">{{{name|{{PAGENAME}} }}}</b></span>|<!--
-->{{#if: {{{quality|}}}|{{{quality}}} }}<!--
-->{{#if: {{{magic|}}} |<span style="color:#4850b8;"> <bstyle="width:80%; display:block; margin: 0 auto;">{{{name|{{PAGENAME}} }}}</b></span> }}<!---->{{#if: {{{rare|}}} |<span style="color:yellow;"> <bstyle="width:80%; display:block; margin: 0 auto;">{{{name|{{PAGENAME}} }}}</b></span> }}<!--
--><!--
Crafted/Very Rare = Orange
-->{{#if: {{{unique|}}} |<span style="color:#908858;"> <bstyle="width:80%; display:block; margin: 0 auto;">{{{name|{{PAGENAME}} }}} </b></span>}}<!---->{{#if: {{{set|}}} |<span style="color:#00c400;"> <bstyle="width:80%; display:block; margin: 0 auto;">{{{name|{{PAGENAME}} }}} </b></span>}}<!---->{{#if: {{{item_set|}}}{{{magic|}}}{{{rare|}}}{{{set|}}}{{{unique|}}}||<bstyle="width:80%; display:block; margin: 0 auto;">{{{name|{{PAGENAME}}}}}</b>}}<!---->}}<!-- (end END of item_set #if)
--><br /><!--
-->{{#if: {{{set|}}}|<span style="font-size:12px; font-weight:normal; color:red;">[[{{{set|}}}|(See full set)]]</span><br>}}<!--
--><span style="font-size:10px; font-weight:normal;"><nowiki>[</nowiki>{{{type|General Item}}}<nowiki>]</nowiki></span><!--
-->{{#if: {{{location|}}} |<br><span style="font-size:12px;color:grey;">{{{location|}}}</span> }}<!--
}}{{#if: {{{attacks|}}}{{{dam_melee_low|}}}{{{dam_melee_high|}}}{{{dam_range_low|}}}{{{dam_range_high|}}}{{{speed|}}}{{{range|}}}{{{dam_bonus_dex|}}}{{{dam_bonus_str|}}}{{{defense|}}}{{{socket|}}}|
<tr>
<td colspan="4">: {{#if: {{{base_item|}}} | '''[[Base item|Base Item]]''': [[{{{base_item}}}]] }}<!--
-->{{#if: {{{attacks|}}}|<!--
-->:* Attacks Per Second: {{{attacks|}}}<!--
-->{{#if: {{{dam_melee_low|}}} {{{dam_melee_high|}}} |<!--
-->:* Melee Damage: {{{dam_melee_low|}}} {{#if: {{{dam_melee_low|}}} | {{#if: {{{dam_melee_high|}}} | - }} }} {{{dam_melee_high|}}}<!--
-->}}<!--
-->{{#if: {{{dam_melee_1h_low|}}} {{{dam_melee_1h_high|}}} |<!--
-->:* Melee 1H Damage: {{{dam_melee_1h_low|}}} {{#if: {{{dam_melee_1h_low|}}} | {{#if: {{{dam_melee_1h_high|}}} | - }} }} {{{dam_melee_high|}}}<!--
-->}}<!--
-->{{#if: {{{dam_range_low|}}} {{{dam_range_high|}}} |<!--
-->{{#if: {{{set_full_bonus8|}}} |<!--
-->** {{{set_full_bonus8|}}} }}<!--
-->{{#if: {{{set_full_bonus9|}}} |<!--
-->** {{{set_full_bonus9|}}} }}<!--
-->{{#if: {{{set_full_bonus10|}}} |<!--
-->** {{{set_full_bonus10|}}} }}<!--
-->{{#if: {{{set_full_bonus11|}}} |<!--
-->** {{{set_full_bonus11|}}} }}<!--
-->{{#if: {{{set_full_bonus12|}}} |<!--
-->** {{{set_full_bonus12|}}} }}<!--
-->{{#if: {{{set_full_bonus13|}}} |<!--
-->** {{{set_full_bonus13|}}} }}<!--
-->{{#if: {{{set_full_bonus14|}}} |<!--
-->** {{{set_full_bonus14|}}} }}<!--
-->{{#if: {{{set_full_bonus15|}}} |<!--
-->** {{{set_full_bonus15|}}} }}<!--
-->}}<!-- (END of set_full_bonus)
-->
</tr>}} <!-- (item_set_short END)
-->
}}{{#if: {{{property|}}} {{{assassin|}}} {{{amazon|}}} {{{barbarian_d2|}}} {{{druid|}}} {{{necromancer|}}} {{{paladin|}}} {{{sorceress|}}}|
<tr>
<td colspan="4"><!--
-->{{#if: {{{assassin|}}}|<!--
-->:* '''[[Assassin item|Assassin Inherent Bonus]]''' <!--
-->}}<!--
-->{{#if: {{{amazon|}}}|<!--
-->:* '''[[Amazon item|Amazon Inherent Bonus]]''' <!--
-->}}<!--
-->{{#if: {{{barbarian_d2|}}}|<!--
-->:* '''[[Barbarian item|Barbarian Inherent Bonus]]''' <!--
-->}}<!--
-->{{#if: {{{druid|}}}|<!--
-->:* '''[[Druid item|Druid Inherent Bonus]]''' <!--
-->}}<!--
-->{{#if: {{{necromancer|}}}|<!--
-->:* '''[[Necromancer item|Necromancer Inherent Bonus]]''' <!--
-->}}<!--
-->{{#if: {{{paladin|}}}|<!--
-->:* '''[[Paladin item|Paladin Inherent Bonus]]''' <!--
-->}}<!--
-->{{#if: {{{sorceress|}}}|<!--
-->:* '''[[Sorceress item|Sorceress Inherent Bonus]]''' <!--
-->}}<!--
-->{{#if: {{{property|}}}|<!--
-->{{#if: {{{property8|}}}|<!--
-->:* {{{property8|}}}<!--
-->}}<!--
-->{{#if: {{{property9|}}}|<!--
-->:* {{{property9|}}}<!--
-->}}<!--
-->{{#if: {{{property10|}}}|<!--
-->:* {{{property10|}}}<!--
-->}}<!--
-->{{#if: {{{property11|}}}|<!--
-->:* {{{property11|}}}<!--
-->}}<!--
-->{{#if: {{{property12|}}}|<!--
-->:* {{{property12|}}}<!--
-->}}<!--
-->{{#if: {{{property13|}}}|<!--
-->:* {{{property13|}}}<!--
-->}}<!--
-->{{#if: {{{property14|}}}|<!--
-->:* {{{property14|}}}<!--
-->}}<!--
-->{{#if: {{{property15|}}}|<!--
-->:* {{{property15|}}}<!--
-->}}
</td>
</tr>
}}
{{#if: {{{ilvl|}}}{{{sell|}}} |
<tr>
<td colspan="4"><!--
-->{{#if: {{{ilvl|}}}|<!--
-->:* [[Item Level]]: {{{ilvl|}}} {{#if: {{{item_set|}}} | - {{{ilvl_high|}}} }}<!--
-->}}<!--
-->{{#if: {{{sell|}}}|<!--
-->:* Sell Value: {{{sell|}}}<!--
</td>
</tr> }}
</table><!-- MAIN SECTION ENDS HERE!!!  CATEGORIES START HERE!!! -->{{#if: {{{catexclude|}}}||<!--
-->{{#if: {{{unique|}}} | [[Category:Unique items ({{{game|Diablo II}}})]] }}<!--
-->{{#if: {{{unique|}}} | [[Category:Unique items]] }}<!--
-->{{#if: {{{item_set|}}} | [[Category:{{{name|{{PAGENAME}} }}}]]}}<!--
-->{{#if: {{{set|}}} | [[Category:{{{set|}}}]] }}<!--
-->{{#if: {{{set|}}} | [[Category:Item sets ({{{game|Diablo II}}})]] }}<!--
-->{{#if: {{{set|}}} | [[Category:Item sets]] }}<!--
 
-->{{#if: {{{type|}}} | [[Category:{{#switch: {{{type|General Item}}}
|Set = Item sets
|Dagger = Daggers
|Mace = Maces
|Orb = Orbs
|Polearm = Polearms
|Scepter = Scepters
|Legs = Legs
|Shield = Shields
|Totem = Totems
|Shoulder Pads = Shoulder pads
|Amulet = amulets
|General Item = General items
|Quest Item = Quest items }} ({{{game|Diablo II}}})]] }}<!--
 -->{{#if: {{{item_set|}}} || {{#if: {{{ilvl|}}} | [[Category:Ilvl {{IlvlCount|{{{ilvl|60}}} }} ({{{game|Diablo II}}})]] | [[Category:Items without Ilvls ({{{game|Diablo II}}})]] }} }}<!-- 
-->{{#if: {{{ladder|}}} | [[Category:Ladder only]]}}<!--
-->{{#if: {{{barbarian_d3|}}} | [[Category:Barbarian items (Diablo III)]]}}<!--
-->{{#if: {{{paladin|}}} | [[Category:Paladin items]]}}<!--
-->{{#if: {{{sorceress|}}} | [[Category:Sorceress items]]}}<!--
 
-->[[Category:Items (Diablo II)]]<!--
-->[[Category:Items]]<!--
-->}}</includeonly><noinclude>
-->}}<!-- END catexclude HERE!-->}}</includeonly><!-- END flat HERE!--><noinclude> This is the '''Itembox''' and is it's a very complicated and useful [[Help:Template|template]]. It can be used for all types of items from all three games and expansions. Please see individual help pages for each item you want to make for an easier understanding.
Below is a master list of all variables.
|ladder= Yes
|d2x= Yes
|base_item= Bananahammock
|patch= 1.13
|item_set= Yes
|quality= Elite
|name= Reflex Bow
|base_item= Reflex Bow X
|set= M'avina's Battle Hymn
|type= Staff
|dam_melee_low= 5
|dam_melee_high= 10
|dam_melee_1h_low= 6
|dam_melee_1h_high= 11
|dam_range_low= 7
|dam_range_high= 13
<nowiki>{{Itembox</nowiki>
|flat= Creates a horizontal table version of the
template. '''ALWAYS leave it as {{{1}}}!'''
|game= Diablo I, Diablo II or Diablo III
|portrait= Filename only! Like: "X-mavinas-caster.gif"
|patch= Just numbers. Like: "1.13"
|quality= Exceptional/Elite. If normal, remove entry. (D2)
|name= Name of item. |name_full= Name of item with underscrores, if different from article title.
|magic= Magic level. Yes or delete entry.
|rare= Magic level. Yes or delete entry.
Scepter, Spear, Staff, Sword, Thrown, Wand
Belt, Body Armor, Boots, Helmet, Gloves, Legs,
Shield, Totem, Shoulder Pads
Amulet, Gem, Ring, Rune
Elixir, Potion, Scroll, Vial
|dps= Value. Like "100.5". (D3)
|armor= Value. Like "1100". (D3)
|base_item= If Unique/Set, name the base item. Auto-linked.
|attacks= Attacks per second. Value. Like 1.10. (D3)
|dam_melee_low= Melee low end attack. "<u>5</u>-10".
|dam_melee_high= Melee high end attack. "5-<u>10</u>".
|dam_melee_1h_low= Like regular, but only for 2h weapons used 1h.
|dam_melee_1h_high= Like regular, but only for 2h weapons used 1h.
|dam_range_low= Ranged low end attack. "<u>5</u>-10".
|dam_range_high= Ranged high end attack. "5-<u>10</u>".
|property8= Magical property 8 (optional)
|durability= Value. Like "500" (D2)
|storage= Value. Like "8". If item stores other items.
|stack= If item can be stacked, how big is max?
|inv_size= How much space it uses in bag.
12,486
edits