Changes

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search

Template:Itembox

1,018 bytes added, 15:07, 13 May 2010
m
no edit summary
{{#if: {{#switch: {{{flat|Yes}}} |Yes = Yes |yes = Yes |No = }} |<!-- --><table cellpadding="4" width="100%" style="border-collapse: collapse; border: none; background: #2D0606; margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; line-height: 11px; font-size: 11px;"> <tr> <td style="text-align: center; line-height: 12px; font-size: 14px;">{{#if: {{{name|}}} | [[{{{name}}}]] | <span style=" font-size:11px;">"name" attribute must be added in main article</span>}}<br />[[File:{{{portrait|Diablo_II_Logo.jpg}}}|{{{portrait-width|150px}}}|link={{{name|File:{{{portrait|File:Diablo_II_Logo.jpg}}} }}}]] </td> <td>test </td> </tr></table> |<!--  --><includeonly><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: {{{set|}}} |<span style="color:#00c400;"> <b>{{{name|{{PAGENAME}} }}} </b></span>}}<!--
-->{{#if: {{{item_set|}}}{{{magic|}}}{{{rare|}}}{{{set|}}}{{{unique|}}}||<b>{{{name|{{PAGENAME}} }}}</b>}}<!--
-->}}<!-- (end END of item_set #if)
--><br /><!--
-->{{#if: {{{set|}}}|<span style="font-size:12px; font-weight:normal;">[[{{{set|}}}|(See full set)]]</span><br>}}<!--
<tr>
<td colspan="4"><!--
-->{{#if: {{{base_item|}}} | [[Base item|Base Item]]: {{{base_item}}} }}<!--
-->{{#if: {{{attacks|}}}|<!--
-->:* Attacks Per Second: {{{attacks|}}}<!--
-->[[Category:Items (Diablo II)]]<!--
-->[[Category:Items]]<!--
-->}}</includeonly><!-- -->{{#if: {{#switch: {{{flat|}}} |Yes = Yes |No = }} | [[Category:Haberdashery]]}}<!-- END flat HERE!--></includeonly><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
<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"
|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".
12,486
edits