|
|
Line 1: |
Line 1: |
| <!-- Template:Item Infobox (Custom Table Layout) -->
| | --- a/Template:Item Infobox (Previous) |
| <includeonly>{| class="infobox" style="float:right; width: 280px; border: 1px solid #aaaaaa; background-color: #f9f9f9; margin-left: 1em; font-size: 90%;"
| | +++ b/Template:Item Infobox (Approach 1 Guess) |
| |+ style="font-size: 1.2em; font-weight: bold; padding: 0.2em 0.4em;" | {{{name|{{PAGENAME}}}}} <!-- Title -->
| | @@ -6,10 +6,8 @@ |
| |- <!-- Main row for text and image -->
| | | header1 = {{#if:{{{name|}}}|{{Infobox title icon|{{{name|{{PAGENAME}}}}}|icon={{{icon|}}} }} }} |
| | style="padding: 0.3em 0.6em; vertical-align: top;" | <!-- Left cell for text data --> | | | rowclass1 = infobox-title <!-- Assign class to title row --> |
| {{#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
| | -<!-- Image Row --> |
| --><includeonly>{{Short description|Game item in Outlands}}</includeonly><!-- | | -| image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{imagesize|200px}}}]]|[[File:Placeholderv2.png|200px]]}} <!-- Image content --> |
| | -| imagerowclass1 = infobox-image <!-- Assign class to image row --> |
| | -| imagerowstyle1 = text-align:center; <!-- ADDED: Attempt to apply centering style to the image row --> |
| | +<!-- Image Parameter --> |
| | +| image = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{imagesize|200px}}}]]|[[File:Placeholderv2.png|200px]]}} <!-- Try 'image' instead of 'image1' --> |
|
| |
|
| Categorization
| | <!-- Data Rows STARTING FROM label2/data2 --> |
| --><noinclude>
| | | label2 = Introduced |
| [[Category:Infobox Templates]]
| |
| [[Category:Item Templates]]
| |
| | |
| == Usage ==
| |
| This template creates an infobox with the image floated right and text to the left.
| |
| | |
| <pre>
| |
| {{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
| |
| }}
| |
| </pre>
| |
| </noinclude>
| |
--- a/Template:Item Infobox (Previous)
+++ b/Template:Item Infobox (Approach 1 Guess)
@@ -6,10 +6,8 @@
| header1 =
| rowclass1 = infobox-title
-
-| image1 = File:Placeholderv2.png
-| imagerowclass1 = infobox-image
-| imagerowstyle1 = text-align:center;
+
+| image = File:Placeholderv2.png
| label2 = Introduced