Difference between revisions of "Template:Loot/doc"

From Project: Gorgon Wiki
Jump to: navigation, search
(Added documentation for new template.)
 
(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 [[Template:Item]] which displays the item icon, a link to the item, '''AND''' adds a Loot category to the page.  
+
: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 [[Template:Item]].
+
: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 the [[Template:Item_icon|Item icon]] template.
+
: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 the template for [[Template:Ability_icon|Ability icon]].
+
:If you need the icon for an ability, use {{T|Ability icon}}.
  
 
== Syntax ==
 
== Syntax ==
:Type <kbd>{{|Loot|Item name}}</kbd> or <kbd>{{|Loot|Icon|Item name}}</kbd> where you want the item icon and link to display.
+
: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 ==
See documentation for [[Template:Item]].
+
<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

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}}
icon_5022.png
 
{{Loot|Alchemy: Weak Poison For Knives}}
icon_4003.png