Template:Item/doc: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Arindor (talk | contribs)
No edit summary
m Description: Improved description.
Line 1: Line 1:
== Description ==
== Description ==
:Use this template whenever you want the item icon and link to display.
: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 [[Template:Item_icon|Item icon]] template.
:If you need the icon for an ability, use the template for [[Template:Ability_icon|Ability icon]].


== Syntax ==
== Syntax ==

Revision as of 16:03, 26 August 2017

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}} 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 http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }}
 
[[Expression error: Unrecognized punctuation character "{".]]
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 http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }}
 
[[Expression error: Unrecognized punctuation character "{".]]

Notes