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
No edit summary
Tag: Reverted
Undo revision 12283 by Fiend (talk)
Tag: Undo
Line 1: Line 1:
<!-- Template:Item Infobox (Custom Table Layout v2 - Image Float Attempt) -->
--- 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%; padding: 0.3em;"
+++ b/Template:Item Infobox (Approach 1 Guess)
|+ style="font-size: 1.2em; font-weight: bold; padding-bottom: 0.3em;" | {{{name|{{PAGENAME}}}}} <!-- Title -->
@@ -6,10 +6,8 @@
|- <!-- Main row for content -->
| header1 = {{#if:{{{name|}}}|{{Infobox title icon|{{{name|{{PAGENAME}}}}}|icon={{{icon|}}} }} }}
| style="vertical-align: top;" | <!-- Single cell for all content -->
| rowclass1 = infobox-title <!-- Assign class to title row -->
  <!-- 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
-<!-- 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 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:37, 4 April 2025

--- 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