More actions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
| bodyclass= mw-collapsible floatright <!-- Standard class from your example --> | | bodyclass= mw-collapsible floatright <!-- Standard class from your example --> | ||
<!-- Header/Title Row FIRST --> | |||
| header1 = {{#if:{{{name|}}}|{{Infobox title icon|{{{name|{{PAGENAME}}}}}|icon={{{icon|}}} }} }} <!-- Display name. Pass 'icon' parameter directly. Removed default "Item". --> | |||
| rowclass1 = infobox-title <!-- Assign class to title row --> | |||
<!-- Image Row SECOND --> | |||
| image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{imagesize|200px}}}]]|[[File:Placeholderv2.png|200px]]}} <!-- Use provided image or placeholder, default size 200px --> | | image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{imagesize|200px}}}]]|[[File:Placeholderv2.png|200px]]}} <!-- Use provided image or placeholder, default size 200px --> | ||
| imagerowclass1 = infobox-image <!-- Assign class to image row --> | | imagerowclass1 = infobox-image <!-- Assign class to image row --> | ||
<!-- Data Rows STARTING FROM label2/data2 --> | |||
| label2 = Introduced | |||
| data2 = {{{introduced|}}} | |||
| label2 = Introduced | | rowclass2 = data-introduced infobox-data infobox-col1 | ||
| data2 = {{{introduced|}}} | |||
| rowclass2 = data-introduced infobox-data infobox-col1 | |||
| label3 = Type | | label3 = Type | ||
| data3 = {{{type|}}} | | data3 = {{{type|}}} | ||
| rowclass3 = data-type infobox-data infobox-col2 | | rowclass3 = data-type infobox-data infobox-col2 | ||
| label4 = Category | | label4 = Category | ||
| data4 = {{{category|}}} | | data4 = {{{category|}}} | ||
| rowclass4 = data-category infobox-data infobox-col1 | | rowclass4 = data-category infobox-data infobox-col1 | ||
| label5 = Vendor | | label5 = Vendor | ||
| data5 = {{{vendor|}}} | | data5 = {{{vendor|}}} | ||
| rowclass5 = data-vendor infobox-data infobox-col2 | | rowclass5 = data-vendor infobox-data infobox-col2 | ||
| label6 = Dyeable | | label6 = Dyeable | ||
| data6 = {{{dyeable|}}} | | data6 = {{{dyeable|}}} | ||
| rowclass6 = data-dyeable infobox-data infobox-col1 | | rowclass6 = data-dyeable infobox-data infobox-col1 | ||
| label7 = Access | | label7 = Access | ||
| data7 = {{{access|}}} | | data7 = {{{access|}}} | ||
| rowclass7 = data-access infobox-data infobox-col2 | | rowclass7 = data-access infobox-data infobox-col2 | ||
| label8 = Use Location | | label8 = Use Location | ||
| data8 = {{{use_location|}}} | | data8 = {{{use_location|}}} | ||
| rowclass8 = data-uselocation infobox-data infobox-col1 | | rowclass8 = data-uselocation infobox-data infobox-col1 | ||
<!-- Add more rows if needed | <!-- Add more rows if needed --> | ||
}}</includeonly><!-- | }}</includeonly><!-- | ||
Optional Short description | Optional Short description | ||
--><includeonly>{{Short description|Game item in Outlands}}</includeonly><!-- | --><includeonly>{{Short description|Game item in Outlands}}</includeonly><!-- | ||
Line 52: | Line 51: | ||
--><noinclude> | --><noinclude> | ||
[[Category:Infobox Templates]] | [[Category:Infobox Templates]] | ||
[[Category:Item Templates]] | [[Category:Item Templates]] | ||
== Usage == | == Usage == | ||
Line 62: | Line 61: | ||
| image = ItemImage.png (defaults to Placeholderv2.png if omitted) | | image = ItemImage.png (defaults to Placeholderv2.png if omitted) | ||
| imagesize = 250px <!-- Optional, defaults to 200px --> | | imagesize = 250px <!-- Optional, defaults to 200px --> | ||
| icon = | | icon = OptionalIconFileName <!-- Optional: Name of the icon file (e.g., TrophyHutchIcon.png) WITHOUT "File:" prefix --> | ||
| introduced = [[Patch Name]] or Date | | introduced = [[Patch Name]] or Date | ||
| type = Item Type (e.g., Container, Weapon) | | type = Item Type (e.g., Container, Weapon) |
Revision as of 06:14, 4 April 2025
Usage
This template creates an infobox for game items by using the generic Template:Infobox.
{{Item Infobox | name = Item Name (defaults to page name if omitted) | image = ItemImage.png (defaults to Placeholderv2.png if omitted) | imagesize = 250px <!-- Optional, defaults to 200px --> | icon = OptionalIconFileName <!-- Optional: Name of the icon file (e.g., TrophyHutchIcon.png) WITHOUT "File:" prefix --> | introduced = [[Patch Name]] or Date | type = Item Type (e.g., Container, Weapon) | category = Vendor Category (e.g., Misc) | vendor = [[Vendor Name]] | dyeable = Yes / No / [[Dye Type]] | access = Access restrictions (e.g., House Co-Owners Only) | use_location = Required location (e.g., Secured in House) <!-- Add any other parameters you define here --> }}