Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Item Infobox: Difference between revisions

Template page
Undo revision 12264 by Fiend (talk)
Tag: Undo
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
<!-- Uses the generic Template:Infobox to display item information -->
<!-- Uses the generic Template:Infobox to display item information -->
<includeonly>{{Infobox
<includeonly>{{Infobox
| bodyclass= mw-collapsible floatright <!-- Standard class from your example -->
| bodyclass= mw-collapsible floatright <!-- Standard class -->


<!-- Header/Title Row FIRST -->
<!-- Header/Title Row -->
| header1 = {{#if:{{{name|}}}|{{Infobox title icon|{{{name|{{PAGENAME}}}}}|icon={{{icon|}}} }} }} <!-- Display name. Pass 'icon' parameter directly. Removed default "Item". -->
| header1 = {{#if:{{{name|}}}|{{Infobox title icon|{{{name|{{PAGENAME}}}}}|icon={{{icon|}}} }} }}
| rowclass1 = infobox-title <!-- Assign class to title row -->
| rowclass1 = infobox-title <!-- Assign class to title row -->


<!-- Image Row SECOND -->
<!-- Image Row -->
| image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{imagesize|200px}}}]]|[[File:Placeholderv2.png|200px]]}} <!-- Use provided image or placeholder, default size 200px -->
| image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:Placeholderv2.png|400px]]}}
| imagerowclass1 = infobox-image <!-- Assign class to image row -->
| imagerowclass1 = infobox-image <!-- Assign class to image row -->


Line 15: Line 15:
| label2 = Introduced
| label2 = Introduced
| data2 = {{{introduced|}}}
| data2 = {{{introduced|}}}
| rowclass2 = data-introduced infobox-data infobox-col1
| rowclass2 = data-introduced infobox-data infobox-col1 <!-- Keeping col classes for now -->


| label3 = Type
| label3 = Type
Line 54: Line 54:


== Usage ==
== Usage ==
This template creates an infobox for game items by using the generic [[Template:Infobox]].
(Documentation remains the same as previous correct version)
 
<pre>
<pre>
{{Item Infobox
{{Item Infobox
| name = Item Name (defaults to page name if omitted)
| name = Item Name ...
| image = ItemImage.png (defaults to Placeholderv2.png if omitted)
| image = ItemImage.png ...
| 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 -->
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 08:21, 4 April 2025


Usage

(Documentation remains the same as previous correct version)

{{Item Infobox
| name = Item Name ...
| image = ItemImage.png ...
...
}}
Contents