Template:Infobox Item: Difference between revisions
Infer sprite from name, no .png needed (via update-page on MediaWiki MCP Server) |
Use wikitable class and add float right positioning (via update-page on MediaWiki MCP Server) |
||
| Line 1: | Line 1: | ||
<!-- Template:Infobox Item --> | <!-- Template:Infobox Item --> | ||
<includeonly>{| class="infobox item-infobox{{#if:{{{rarity|}}}| rarity-{{{rarity}}}}}" | <includeonly>{| class="wikitable infobox item-infobox{{#if:{{{rarity|}}}| rarity-{{{rarity}}}}}" style="float:right; clear:right; margin:0 0 1em 1em; width:250px;" | ||
|- | |- | ||
! colspan="2" style="text-align:center;" | {{{name}}} | ! colspan="2" style="text-align:center;" | {{{name}}} | ||
|- | |- | ||
| colspan="2" style="text-align:center;" | {{Sprite|{{{sprite|{{{name}}}}}}|64}} | | colspan="2" style="text-align:center;" | {{Sprite|{{{sprite|{{{name}}}}}}|64}} | ||
{{#if:{{{slot|}}}|{{!}}- | |||
{{#if:{{{slot|}}}|! Slot {{!}}{{!}} {{{slot}}} | ! Slot {{!}}{{!}} {{{slot}}}}} | ||
{{#if:{{{category|}}}|{{!}}- | |||
{{#if:{{{category|}}}|! Type {{!}}{{!}} [[:Category:{{{category}}}|{{{category}}}]] | ! Type {{!}}{{!}} [[:Category:{{{category}}}|{{{category}}}]]}} | ||
{{#if:{{{rarity|}}}|{{!}}- | |||
{{#if:{{{rarity|}}}|! Rarity {{!}}{{!}} {{{rarity}}} | ! Rarity {{!}}{{!}} {{{rarity}}}}} | ||
{{#if:{{{wgt|}}}|{{!}}- | |||
{{#if:{{{wgt|}}}|! Weight {{!}}{{!}} {{{wgt}}} | ! Weight {{!}}{{!}} {{{wgt}}}}} | ||
{{#if:{{{rng|}}}|{{!}}- | |||
{{#if:{{{rng|}}}|! Range {{!}}{{!}} {{{rng}}} | ! Range {{!}}{{!}} {{{rng}}}}} | ||
{{#if:{{{dmg|}}}|{{!}}- | |||
{{#if:{{{dmg|}}}|! Damage {{!}}{{!}} {{{dmg}}} | ! Damage {{!}}{{!}} {{{dmg}}}}} | ||
{{#if:{{{eq|}}}|{{!}}- | |||
{{#if:{{{eq|}}}|! Equip Size {{!}}{{!}} {{{eq}}} | ! Equip Size {{!}}{{!}} {{{eq}}}}} | ||
{{#if:{{{hp|}}}{{{mp|}}}{{{ab|}}}{{{mag|}}}{{{arm|}}}{{{def|}}}{{{ms|}}}{{{as|}}}|{{!}}- | |||
{{#if:{{{hp|}}}{{{mp|}}}{{{ab|}}}{{{mag|}}}{{{arm|}}}{{{def|}}}{{{ms|}}}{{{as|}}}| | ! colspan="2" {{!}} '''Bonuses'''}} | ||
! colspan="2" {{!}} '''Bonuses''' | {{#if:{{{hp|}}}|{{!}}- | ||
! HP {{!}}{{!}} +{{{hp}}}}} | |||
}} | {{#if:{{{mp|}}}|{{!}}- | ||
{{#if:{{{hp|}}}|! HP {{!}}{{!}} +{{{hp}}} | ! MP {{!}}{{!}} +{{{mp}}}}} | ||
{{#if:{{{ab|}}}|{{!}}- | |||
{{#if:{{{mp|}}}|! MP {{!}}{{!}} +{{{mp}}} | ! Ability {{!}}{{!}} +{{{ab}}}}} | ||
{{#if:{{{mag|}}}|{{!}}- | |||
{{#if:{{{ab|}}}|! Ability {{!}}{{!}} +{{{ab}}} | ! Magic {{!}}{{!}} +{{{mag}}}}} | ||
{{#if:{{{arm|}}}|{{!}}- | |||
{{#if:{{{mag|}}}|! Magic {{!}}{{!}} +{{{mag}}} | ! Armor {{!}}{{!}} +{{{arm}}}}} | ||
{{#if:{{{def|}}}|{{!}}- | |||
{{#if:{{{arm|}}}|! Armor {{!}}{{!}} +{{{arm}}} | ! Defense {{!}}{{!}} +{{{def}}}}} | ||
{{#if:{{{ms|}}}|{{!}}- | |||
{{#if:{{{def|}}}|! Defense {{!}}{{!}} +{{{def}}} | ! Move Speed {{!}}{{!}} +{{{ms}}}}} | ||
{{#if:{{{as|}}}|{{!}}- | |||
{{#if:{{{ms|}}}|! Move Speed {{!}}{{!}} +{{{ms}}} | ! Attack Speed {{!}}{{!}} +{{{as}}}}} | ||
{{#if:{{{as|}}}|! Attack Speed {{!}}{{!}} +{{{as}}} | |||
|} | |} | ||
[[Category:{{{category}}}]]{{#if:{{{rarity|}}}|[[Category:{{{rarity}}} items]]}} | [[Category:{{{category}}}]]{{#if:{{{rarity|}}}|[[Category:{{{rarity}}} items]]}} | ||
Revision as of 06:39, 22 January 2026
Documentation
The above documentation is transcluded from Template:Infobox Item/doc. Edit