Difference between revisions of "Template:Loot/doc"
From Project: Gorgon Wiki
(Added documentation for new template.) |
Donni Iris (talk | contribs) (reference other templates with the template template.... template) |
||
| (One intermediate revision by the same user not shown) | |||
| 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 == | ||
| − | :Type <kbd>{{ | + | :Type <kbd><nowiki>{{Loot|Item name}}</nowiki></kbd> or <kbd><nowiki>{{Loot|Icon|Item name}}</nowiki></kbd> where you want the item icon and link to display. |
== Parameters == | == Parameters == | ||
| Line 15: | Line 15: | ||
== Samples == | == Samples == | ||
| − | + | <pre>{{Loot|Potato}}</pre> | |
| + | {{Loot|Potato}} | ||
| + | |||
| + | <pre>{{Loot|Alchemy: Weak Poison For Knives}}</pre> | ||
| + | {{Loot|Alchemy: Weak Poison For Knives}} | ||
| + | |||
<includeonly> | <includeonly> | ||
<!-- Categories/interwikis for the template itself --> | <!-- Categories/interwikis for the template itself --> | ||
Latest revision as of 16:50, 24 March 2026
Contents
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}}
{{Loot|Alchemy: Weak Poison For Knives}}