Difference between revisions of "Template:Item/doc"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Syntax)
m (Notes)
Line 39: Line 39:
 
* Uses the new [[Template:Item icon]] template.
 
* Uses the new [[Template:Item icon]] template.
 
* WHY? To support enhancements in {{tlc|Vendor item row}} template.
 
* WHY? To support enhancements in {{tlc|Vendor item row}} template.
 +
* This will break slightly when used on many flower arrangements and flower arrangement-related items, due to the # sign in the URL.  See the example above for the workaround.
 
<includeonly>
 
<includeonly>
 
<!-- Categories/interwikis for the template itself -->
 
<!-- Categories/interwikis for the template itself -->

Revision as of 12:41, 1 September 2020

Description

Use this template whenever you want the item icon and link (to the item's Wiki page) to display.
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 {{|Item|Item name}} or {{|Item|Item name|Icon}} 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.

Sample output

Basic usage
Code = Output
Template:Tlc
Complex example
Use alternate icon and link with alternate text. Note usage of Template:Tlc to distinguish from normal template arguments:
Code = Output
Template:Tlc

Notes

  • Uses the new Template:Item icon template.
  • WHY? To support enhancements in Template:Tlc template.
  • This will break slightly when used on many flower arrangements and flower arrangement-related items, due to the # sign in the URL. See the example above for the workaround.