Difference between revisions of "Template:Loot"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
<div style="display:inline-block; vertical-align:middle"><div style="display:table-row;"><div class="extimage32px" style="display:table-cell; vertical-align:middle;">{{#if: {{{Icon|}}}|{{Item icon|{{{Icon}}}}}|{{Item icon|{{{1|None}}}}}}}</div><div style="display:table-cell">&nbsp;</div><div style="display:table-cell; vertical-align:middle">[[{{{1|Item name}}}]]</div></div></div> {{ #if: {{{Icon}}} | [[Category:Loot/{{{1|Item name}}}]] }}<noinclude>
+
<div style="display:inline-block; vertical-align:middle"><div style="display:table-row;"><div class="extimage32px" style="display:table-cell; vertical-align:middle;">{{#if: {{{Icon|}}}|{{Item icon|{{{Icon}}}}}|{{Item icon|{{{1|None}}}}}}}</div><div style="display:table-cell">&nbsp;</div><div style="display:table-cell; vertical-align:middle">[[{{{1|Item name}}}]]</div></div></div> {{ #if: {{{Icon}}} | [[Category:Loot/{{{1|Item name}}}]] }}{{ #switch: {{FULLPAGENAME}}
 +
| Template:Loot =
 +
| Creature Template =}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:57, 2 June 2022

Error: Item not found
 
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Description

This template is a modified version of Template:Item which displays the item icon, a link to the item, AND adds a Loot category to the page.
If you only want to display an item's icon and name, use Template:Item.
If you only want to display an item's icon, or use a larger image of the icon, use the Item icon template.
If you need the icon for an ability, use the template for Ability icon.

Syntax

Type {{|Loot|Item name}} or {{|Loot|Icon|Item name}} where you want the item icon and link to display.

Parameters

Icon
OPTIONAL name of icon to use if different than item name.
Item name
The correct capitalized name of the item.

Samples

See documentation for Template:Item.
The above text is transcluded from Template:Loot/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Loot/doc. (View all subpages of this page.)