Template:Infobox Item: Difference between revisions
From OpenSpell Wiki
Jump to navigationJump to search
Created page with "<noinclude> == Usage == Place at the top of any item article. Only fill in the sections relevant to the item type. <pre> {{Infobox Item | name = Iron longsword | image = 150px | description = A sharp sword crafted from iron | cost = 200 | weight = 2 | stackable = no | tradeable = yes | members = no | equipslot = weapon | weapon_speed = 5 | req_skill = accuracy | req_level = 10 | bonus_accuracy..." |
|||
| Line 1: | Line 1: | ||
<noinclude> | |||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Place at the top of any item article. | Place at the top of any item article. Leave irrelevant parameters empty — they will show as —. | ||
<pre> | <pre> | ||
{{Infobox Item | {{Infobox Item | ||
| name | | name = iron longsword | ||
| image | | image = [[File:Iron_longsword.png|150px]] | ||
| description | | description = A sharp sword crafted from iron | ||
| cost | | cost = 200 | ||
| weight | | weight = 2 | ||
| stackable | | stackable = no | ||
| tradeable | | tradeable = yes | ||
| | | equipslot = weapon | ||
| weapon_speed = 5 | |||
| weapon_speed = 5 | | req_skill = accuracy | ||
| req_skill | | req_level = 10 | ||
| req_level | |||
| bonus_accuracy = 14 | | bonus_accuracy = 14 | ||
| bonus_strength = 13 | | bonus_strength = 13 | ||
| skill_xp | | skill_xp = Smithing | ||
| xp_amount | | xp_amount = 70 | ||
| recipe | | recipe = 2x [[iron bar]] | ||
}} | }} | ||
</pre> | </pre> | ||
See also: [[Template:Item/preload]] | See also: [[Template:Item/preload]] | ||
| Line 89: | Line 36: | ||
{{{image|}}} | {{{image|}}} | ||
|- | |- | ||
! colspan="2" style="background:#3a3a3a; color:#c8a96e; text-align:center; padding:4px;" | | ! colspan="2" style="background:#3a3a3a; color:#c8a96e; text-align:center; padding:4px;" | General | ||
|- | |- | ||
! style="width:45%; padding:4px 8px; background:#f8f9fa;" | Description | ! style="width:45%; padding:4px 8px; background:#f8f9fa;" | Description | ||
| style="padding:4px 8px;" | ''{{{description|}}}'' | | style="padding:4px 8px;" | ''{{{description|—}}}'' | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Value | ! style="padding:4px 8px; background:#f8f9fa;" | Value | ||
| Line 106: | Line 53: | ||
| style="padding:4px 8px;" | {{{tradeable|—}}} | | style="padding:4px 8px;" | {{{tradeable|—}}} | ||
|- | |- | ||
! colspan="2" style="background:#3a3a3a; color:#c8a96e; text-align:center; padding:4px;" | Equipment | ! colspan="2" style="background:#3a3a3a; color:#c8a96e; text-align:center; padding:4px;" | Equipment | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Slot | ! style="padding:4px 8px; background:#f8f9fa;" | Slot | ||
| style="padding:4px 8px;" | {{{equipslot}}} | | style="padding:4px 8px;" | {{{equipslot|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Attack speed | ! style="padding:4px 8px; background:#f8f9fa;" | Attack speed | ||
| style="padding:4px 8px;" | {{{weapon_speed}}} | | style="padding:4px 8px;" | {{{weapon_speed|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Requires | ! style="padding:4px 8px; background:#f8f9fa;" | Requires | ||
| style="padding:4px 8px;" | {{{req_level}}} | | style="padding:4px 8px;" | {{{req_level|—}}} {{{req_skill|}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Accuracy bonus | ! style="padding:4px 8px; background:#f8f9fa;" | Accuracy bonus | ||
| style="padding:4px 8px;" | {{{bonus_accuracy}}} | | style="padding:4px 8px;" | {{{bonus_accuracy|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Strength bonus | ! style="padding:4px 8px; background:#f8f9fa;" | Strength bonus | ||
| style="padding:4px 8px;" | {{{bonus_strength}}} | | style="padding:4px 8px;" | {{{bonus_strength|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Defense bonus | ! style="padding:4px 8px; background:#f8f9fa;" | Defense bonus | ||
| style="padding:4px 8px;" | {{{bonus_defense}}} | | style="padding:4px 8px;" | {{{bonus_defense|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Magic bonus | ! style="padding:4px 8px; background:#f8f9fa;" | Magic bonus | ||
| style="padding:4px 8px;" | {{{bonus_magic}}} | | style="padding:4px 8px;" | {{{bonus_magic|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Range bonus | ! style="padding:4px 8px; background:#f8f9fa;" | Range bonus | ||
| style="padding:4px 8px;" | {{{bonus_range}}} | | style="padding:4px 8px;" | {{{bonus_range|—}}} | ||
|- | |- | ||
! colspan="2" style="background:#3a3a3a; color:#c8a96e; text-align:center; padding:4px;" | Food | ! colspan="2" style="background:#3a3a3a; color:#c8a96e; text-align:center; padding:4px;" | Food | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Heals | ! style="padding:4px 8px; background:#f8f9fa;" | Heals | ||
| style="padding:4px 8px;" | {{{heals}}} | | style="padding:4px 8px;" | {{{heals|—}}} | ||
|- | |- | ||
! colspan="2" style="background:#3a3a3a; color:#c8a96e; text-align:center; padding:4px;" | Skilling | ! colspan="2" style="background:#3a3a3a; color:#c8a96e; text-align:center; padding:4px;" | Skilling | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | XP on obtain | ! style="padding:4px 8px; background:#f8f9fa;" | XP on obtain | ||
| style="padding:4px 8px;" | {{{xp_amount}}} | | style="padding:4px 8px;" | {{{xp_amount|—}}} {{{skill_xp|}}} xp | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Recipe | |||
| style="padding:4px 8px;" | {{{recipe|—}}} | |||
! | |||
| | |||
}} | |||
|} | |} | ||
</includeonly> | </includeonly> | ||
Latest revision as of 14:17, 28 February 2026
Usage
[edit]Place at the top of any item article. Leave irrelevant parameters empty — they will show as —.
{{Infobox Item
| name = iron longsword
| image = [[File:Iron_longsword.png|150px]]
| description = A sharp sword crafted from iron
| cost = 200
| weight = 2
| stackable = no
| tradeable = yes
| equipslot = weapon
| weapon_speed = 5
| req_skill = accuracy
| req_level = 10
| bonus_accuracy = 14
| bonus_strength = 13
| skill_xp = Smithing
| xp_amount = 70
| recipe = 2x [[iron bar]]
}}
See also: Template:Item/preload