More actions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
-- | <!-- Template:Item Infobox (Custom Table Layout v2 - Image Float Attempt) --> | ||
+ | <includeonly>{| class="infobox" style="float:right; width: 280px; border: 1px solid #aaaaaa; background-color: #f9f9f9; margin-left: 1em; font-size: 90%; padding: 0.3em;" | ||
|+ style="font-size: 1.2em; font-weight: bold; padding-bottom: 0.3em;" | {{{name|{{PAGENAME}}}}} <!-- Title --> | |||
|- <!-- Main row for content --> | |||
| style="vertical-align: top;" | <!-- Single cell for all content --> | |||
<!-- Image floated right INSIDE the cell --> | |||
{{#if:{{{image|}}}| | |||
[[File:{{{image}}}|right|{{{imagesize|150px}}}|link=]] <!-- Use 'right' attribute, smaller default size for floating --> | |||
}} | |||
<!-- Text data follows the image, should wrap --> | |||
{{#if:{{{introduced|}}}|<div style="padding-bottom: 0.2em;">'''Introduced:''' {{{introduced}}}</div>}} | |||
{{#if:{{{type|}}}|<div style="padding-bottom: 0.2em;">'''Type:''' {{{type}}}</div>}} | |||
{{#if:{{{category|}}}|<div style="padding-bottom: 0.2em;">'''Category:''' {{{category}}}</div>}} | |||
{{#if:{{{vendor|}}}|<div style="padding-bottom: 0.2em;">'''Vendor:''' {{{vendor}}}</div>}} | |||
{{#if:{{{dyeable|}}}|<div style="padding-bottom: 0.2em;">'''Dyeable:''' {{{dyeable}}}</div>}} | |||
{{#if:{{{access|}}}|<div style="padding-bottom: 0.2em;">'''Access:''' {{{access}}}</div>}} | |||
{{#if:{{{use_location|}}}|<div style="padding-bottom: 0.2em;">'''Use Location:''' {{{use_location}}}</div>}} | |||
<!-- Add more fields here, wrapped in divs for spacing --> | |||
|} | |||
</includeonly><!-- | |||
Optional Short description | |||
--><includeonly>{{Short description|Game item in Outlands}}</includeonly><!-- | |||
Categorization | |||
--><noinclude> | |||
[[Category:Infobox Templates]] | |||
[[Category:Item Templates]] | |||
== Usage == | |||
This template creates an infobox attempting to float the image right with text wrapping left. | |||
<pre> | |||
{{Item Infobox | |||
| name = Item Name | |||
| image = ItemImage.png | |||
| imagesize = 180px <!-- Optional, defaults to 150px --> | |||
| 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> | |||
</noinclude> |
Revision as of 06:36, 4 April 2025
Usage
This template creates an infobox attempting to float the image right with text wrapping left.
{{Item Infobox | name = Item Name | image = ItemImage.png | imagesize = 180px <!-- Optional, defaults to 150px --> | 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 }}