More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<!-- Template:Item Infobox --> | |||
| | <!-- Uses the generic Template:Infobox to display item information --> | ||
<includeonly>{{Infobox | |||
|- <!-- | | bodyclass= mw-collapsible floatright <!-- Standard class from your example --> | ||
| | | 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 --> | |||
|- <!-- | | header1 = {{#if:{{{name|}}}|{{Infobox title icon|{{{name|{{PAGENAME}}}}}|icon={{{icon|Item}}} }} }} <!-- Display name, default icon 'Item' --> | ||
! | | rowclass1 = infobox-title <!-- Assign class to title row --> | ||
| | |||
| label2 = Introduced <!-- Row 2: Label --> | |||
| data2 = {{{introduced|}}} <!-- Row 2: Data from 'introduced' parameter --> | |||
|- | | rowclass2 = data-introduced infobox-data infobox-col1 <!-- Assign classes (adjust col1/col2 as needed for your layout) --> | ||
! | |||
| | | label3 = Type <!-- Row 3: Label --> | ||
| data3 = {{{type|}}} <!-- Row 3: Data from 'type' parameter --> | |||
| rowclass3 = data-type infobox-data infobox-col2 <!-- Assign classes --> | |||
|- | |||
! | | label4 = Category <!-- Row 4: Label --> | ||
| | | data4 = {{{category|}}} <!-- Row 4: Data from 'category' parameter --> | ||
| rowclass4 = data-category infobox-data infobox-col1 <!-- Assign classes --> | |||
|- | | label5 = Vendor <!-- Row 5: Label --> | ||
! | | data5 = {{{vendor|}}} <!-- Row 5: Data from 'vendor' parameter --> | ||
| | | rowclass5 = data-vendor infobox-data infobox-col2 <!-- Assign classes --> | ||
| label6 = Dyeable <!-- Row 6: Label --> | |||
|- | | data6 = {{{dyeable|}}} <!-- Row 6: Data from 'dyeable' parameter --> | ||
! | | rowclass6 = data-dyeable infobox-data infobox-col1 <!-- Assign classes --> | ||
| label7 = Access <!-- Row 7: Label --> | |||
{{#if: {{{ | | data7 = {{{access|}}} <!-- Row 7: Data from 'access' parameter --> | ||
| | | rowclass7 = data-access infobox-data infobox-col2 <!-- Assign classes --> | ||
| | | label8 = Use Location <!-- Row 8: Label --> | ||
}} | | data8 = {{{use_location|}}} <!-- Row 8: Data from 'use_location' parameter --> | ||
| rowclass8 = data-uselocation infobox-data infobox-col1 <!-- Assign classes --> | |||
! | <!-- Add more rows if needed by incrementing numbers: label9, data9, rowclass9, etc. --> | ||
<!-- Optional Button Bar - Adapt if items need specific links --> | |||
<!-- | <!-- | ||
| header21 = {{#if:{{{some_item_link|}}}|{{Infobox buttons|type=item|someurl={{{some_item_link|}}}}}|<span></span>}} | |||
<noinclude> | | rowclass21 = infobox-button-bar | ||
--> | |||
}}</includeonly><!-- | |||
Optional Short description for items | |||
--><includeonly>{{Short description|Game item in Outlands}}</includeonly><!-- | |||
Categorization | |||
--><noinclude> | |||
[[Category:Infobox Templates]] | [[Category:Infobox Templates]] | ||
<!-- | [[Category:Item Templates]] <!-- Or a more specific category --> | ||
== Usage == | |||
This template creates an infobox for game items by using the generic [[Template:Infobox]]. | |||
<pre> | |||
{{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 = OptionalIconName <!-- Optional, for title bar, defaults to 'Item' --> | |||
| 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 --> | |||
}} | |||
</pre> | |||
</noinclude> | </noinclude> |
Revision as of 06:01, 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 = OptionalIconName <!-- Optional, for title bar, defaults to 'Item' --> | 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 --> }}