Difference between revisions of "Template:Loot/doc"

From Project: Gorgon Wiki
Jump to: navigation, search
(Added documentation for new template.)
 
(thanks to includeonly on the template you can now put examples here)
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 [[Template: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 [[Template: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 the [[Template:Item_icon|Item icon]] template.
Line 6: Line 6:
  
 
== 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 -->

Revision as of 13:59, 24 March 2026

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. (See 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, 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

{{Loot|Potato}}
icon_5022.png
 
{{Loot|Alchemy: Weak Poison For Knives}}
icon_4003.png