More actions
No edit summary |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
<!-- Template:Item Infobox --> | <!-- Template:Item Infobox (Custom Table Layout) --> | ||
< | <includeonly>{| class="infobox" style="float:right; width: 280px; border: 1px solid #aaaaaa; background-color: #f9f9f9; margin-left: 1em; font-size: 90%;" | ||
< | |+ style="font-size: 1.2em; font-weight: bold; padding: 0.2em 0.4em;" | {{{name|{{PAGENAME}}}}} <!-- Title --> | ||
| | |- <!-- Main row for text and image --> | ||
| style="padding: 0.3em 0.6em; vertical-align: top;" | <!-- Left cell for text data --> | |||
<!-- | {{#if:{{{introduced|}}}|'''Introduced:''' {{{introduced}}}<br />}} | ||
{{#if:{{{type|}}}|'''Type:''' {{{type}}}<br />}} | |||
| | {{#if:{{{category|}}}|'''Category:''' {{{category}}}<br />}} | ||
{{#if:{{{vendor|}}}|'''Vendor:''' {{{vendor}}}<br />}} | |||
< | {{#if:{{{dyeable|}}}|'''Dyeable:''' {{{dyeable}}}<br />}} | ||
{{#if:{{{access|}}}|'''Access:''' {{{access}}}<br />}} | |||
{{#if:{{{use_location|}}}|'''Use Location:''' {{{use_location}}}<br />}} | |||
| | <!-- Add more fields here using the same format --> | ||
| style="padding: 0.3em 0.6em; vertical-align: top; text-align:center;" | <!-- Right cell for image --> | |||
{{#if:{{{image|}}}|[[File:{{{image}}}|center|{{{imagesize|220px}}}]]|[[File:Placeholderv2.png|center|220px]]}} | |||
|} | |||
</includeonly><!-- | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
Optional Short description | Optional Short description | ||
Line 55: | Line 26: | ||
== Usage == | == Usage == | ||
This template creates an infobox with the image floated right and text to the left. | |||
<pre> | <pre> | ||
{{Item Infobox | {{Item Infobox | ||
| name = Item Name | | name = Item Name | ||
| image = ItemImage.png | | image = ItemImage.png | ||
| imagesize = 250px <!-- Optional, defaults to 220px --> | |||
| introduced = [[Patch Name]] or Date | |||
| type = Item Type | |||
| category = Vendor Category | |||
| vendor = [[Vendor Name]] | |||
| dyeable = Yes / No / [[Dye Type]] | |||
| access = Access restrictions | |||
| use_location = Required location | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Revision as of 06:34, 4 April 2025
Usage
This template creates an infobox with the image floated right and text to the left.
{{Item Infobox | name = Item Name | image = ItemImage.png | imagesize = 250px <!-- Optional, defaults to 220px --> | introduced = [[Patch Name]] or Date | type = Item Type | category = Vendor Category | vendor = [[Vendor Name]] | dyeable = Yes / No / [[Dye Type]] | access = Access restrictions | use_location = Required location }}