Difference between revisions of "Template:Item/doc"

From Project: Gorgon Wiki
Jump to: navigation, search
m
Line 6: Line 6:
  
 
== Parameters ==
 
== Parameters ==
 +
; Icon
 +
: OPTIONAL name of icon to use if different than item name.
 
; Item name
 
; Item name
 
: The correct capitalized name of the item.
 
: The correct capitalized name of the item.
  
 
== Sample output ==
 
== Sample output ==
{| class="wikitable"
+
;Basic usage
 +
:{| class="wikitable"
 
| Code
 
| Code
 
| {{=}}
 
| {{=}}
Line 18: Line 21:
 
| ⇒
 
| ⇒
 
| {{Item|Saltpeter}}
 
| {{Item|Saltpeter}}
 +
|}
 +
;Complex example
 +
:Use alternate icon and link with alternate text.  Note usage of {{tlc|pipe}} to distinguish from normal template arguments:
 +
:{| class="wikitable"
 +
| Code
 +
| {{=}}
 +
| Output
 +
|-
 +
| {{tlc|Item|<nowiki>Icon=Beginner's Arrow|Archery{{pipe}}Learn Archery</nowiki>}}
 +
| &rArr;
 +
| {{Item|Icon=Beginner's Arrow|Archery{{pipe}}Learn Archery}}
 
|}
 
|}
  
== Note ==
+
== Notes ==
: Uses the new [[Template:Item icon]] template.
+
* Uses the new [[Template:Item icon]] template.
 +
* WHY? To support enhancements in {{tlc|Vendor item row}} template.
 
<includeonly>
 
<includeonly>
 
<!-- Categories/interwikis for the template itself -->
 
<!-- Categories/interwikis for the template itself -->

Revision as of 15:00, 20 April 2017

Description

Use this template whenever you want the item icon and link to display.

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
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