Template:Loot/doc: Difference between revisions
Jump to navigation
Jump to search
Donni Iris (talk | contribs) thanks to includeonly on the template you can now put examples here |
Donni Iris (talk | contribs) reference other templates with the template template.... template |
||
| Line 1: | Line 1: | ||
== Description == | == Description == | ||
:This template is a modified version of | :This template is a modified version of {{T|Item}} which displays the item icon, a link to the item, '''AND''' adds a Loot category to the page. (See [[:Category:Loot|Loot categories]]) | ||
:If you only want to display an item's icon and name, use | :If you only want to display an item's icon and name, use {{T|Item}}. | ||
:If you only want to display an item's icon, or use a larger image of the icon, use | :If you only want to display an item's icon, or use a larger image of the icon, use {{T|Item_icon}}. | ||
:If you need the icon for an ability, use | :If you need the icon for an ability, use {{T|Ability icon}}. | ||
== Syntax == | == Syntax == | ||
Latest revision as of 20:50, 24 March 2026
Description
- This template is a modified version of {{Item}} which displays the item icon, a link to the item, AND adds a Loot category to the page. (See Loot categories)
- If you only want to display an item's icon and name, use {{Item}}.
- If you only want to display an item's icon, or use a larger image of the icon, use {{Item_icon}}.
- If you need the icon for an ability, use {{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
{{Loot|Potato}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_5022.png
| http://cdn.projectgorgon.com/v456/icons/icon_.png
| Error: Item not found }}{{Loot|Alchemy: Weak Poison For Knives}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_4003.png
| http://cdn.projectgorgon.com/v456/icons/icon_.png
| Error: Item not found }}