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
Created page with "{| class="infobox" style="float:right; width:250px; border: 1px solid #aaaaaa; padding: 0.2em; margin-left: 1em; margin-bottom: 0.5em; background-color: #f9f9f9;" |+ style="font-size: 1.2em; font-weight: bold; padding-bottom: 0.3em;" | {{{name|{{PAGENAME}}}}} {{#if: {{{image|}}} | ! colspan="2" style="text-align:center;" | [[File:{{{image|}}}|{{{imagesize|200px}}}]] }} {{#if: {{{introduced|}}} | |- ! scope="row" style="text-align:left; padding-left:0.5em; background-colo..."
 
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" style="float:right; width:250px; border: 1px solid #aaaaaa; padding: 0.2em; margin-left: 1em; margin-bottom: 0.5em; background-color: #f9f9f9;"
<!-- Template:Item Infobox -->
|+ style="font-size: 1.2em; font-weight: bold; padding-bottom: 0.3em;" | {{{name|{{PAGENAME}}}}}
<!-- Uses the generic Template:Infobox to display item information -->
{{#if: {{{image|}}} |
<includeonly>{{Infobox
! colspan="2" style="text-align:center;" | [[File:{{{image|}}}|{{{imagesize|200px}}}]]
| bodyclass= mw-collapsible floatright <!-- Standard class -->
 
<!-- Header/Title Row -->
| header1 = {{#if:{{{name|}}}|{{Infobox title icon|{{{name|{{PAGENAME}}}}}|icon={{{icon|}}} }} }}
| rowclass1 = infobox-title <!-- Assign class to title row -->
 
<!-- Image Row -->
| image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:Placeholderv2.png|400px]]}}
| imagerowclass1 = infobox-image <!-- Assign class to image row -->
 
<!-- Data Rows STARTING FROM label2/data2 -->
| label2 = Introduced
| data2 = {{{introduced|}}}
| rowclass2 = data-introduced infobox-data infobox-col1 <!-- Keeping col classes for now -->
 
| label3 = Type
| data3 = {{{type|}}}
| rowclass3 = data-type infobox-data infobox-col2
 
| label4 = Category
| data4 = {{{category|}}}
| rowclass4 = data-category infobox-data infobox-col1
 
| label5 = Vendor
| data5 = {{{vendor|}}}
| rowclass5 = data-vendor infobox-data infobox-col2
 
| label6 = Dyeable
| data6 = {{{dyeable|}}}
| rowclass6 = data-dyeable infobox-data infobox-col1
 
| label7 = Access
| data7 = {{{access|}}}
| rowclass7 = data-access infobox-data infobox-col2
 
| label8 = Use Location
| data8 = {{{use_location|}}}
| rowclass8 = data-uselocation infobox-data infobox-col1
 
<!-- Add more rows if needed -->
 
}}</includeonly><!--
 
Optional Short description
--><includeonly>{{Short description|Game item in Outlands}}</includeonly><!--
 
Categorization
--><noinclude>
[[Category:Infobox Templates]]
[[Category:Item Templates]]
 
== Usage ==
(Documentation remains the same as previous correct version)
<pre>
{{Item Infobox
| name = Item Name ...
| image = ItemImage.png ...
...
}}
}}
{{#if: {{{introduced|}}} |
</pre>
|-
! scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;" | Introduced
| style="padding-left:0.5em;" | {{{introduced}}}
}}
{{#if: {{{type|}}} |
|-
! scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;" | Type
| style="padding-left:0.5em;" | {{{type}}}
}}
{{#if: {{{category|}}} |
|-
! scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;" | Category
| style="padding-left:0.5em;" | {{{category}}}
}}
{{#if: {{{vendor|}}} |
|-
! scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;" | Vendor
| style="padding-left:0.5em;" | {{{vendor}}}
}}
{{#if: {{{dyeable|}}} |
|-
! scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;" | Dyeable
| style="padding-left:0.5em;" | {{{dyeable}}}
}}
{{#if: {{{access|}}} |
|-
! scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;" | Access
| style="padding-left:0.5em;" | {{{access}}}
}}
{{#if: {{{use_location|}}} |
|-
! scope="row" style="text-align:left; padding-left:0.5em; background-color:#eef;" | Use Location
| style="padding-left:0.5em;" | {{{use_location}}}
}}
<!-- Add more parameters as needed using the same {{#if:}} structure -->
|}
<noinclude>
[[Category:Infobox Templates]]
<!-- Add documentation here -->
</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