Template:Item/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| 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>}} | |||
| ⇒ | |||
| {{Item|Icon=Beginner's Arrow|Archery{{pipe}}Learn Archery}} | |||
|} | |} | ||
== | == Notes == | ||
* 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 19: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 ⇒ 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
- Uses the new Template:Item icon template.
- WHY? To support enhancements in Template:Tlc template.