Template:Item: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Arindor (talk | contribs)
m Remove unnecessary row start.
Arindor (talk | contribs)
No edit summary
Line 1: Line 1:
{| style="display:inline-block; vertical-align:middle"
{| style="display:inline-block; vertical-align:middle"
|-
|<span class="extimage32px">{{Item icon|{{{1|None}}}}}</span>
|<span class="extimage32px">{{Item icon|{{{1|None}}}}}</span>
|[[{{{1|Item name}}}]]
|[[{{{1|Item name}}}]]
|}<noinclude>
|}<noinclude>{{documentation}}</noinclude>
{{documentation}}
</noinclude>

Revision as of 15:24, 19 March 2017

{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} Item name
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Description

Use this template whenever you want the item icon and link (to the item's Wiki page) to display.
If the Item is to be displayed in a loot table for a monster, use Template:Loot instead.
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|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 correctly capitalized name of the item.
Link
The text to display while linking to Item name.

Sample output

Basic usage
Code = Output
{{Item|Saltpeter}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_5183.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} Saltpeter
Code = Output
{{Item|Fisherman's Arrangement #1}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_5616.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} Fisherman's Arrangement #1
Code = Output
{{Item|Fisherman's Arrangement #1|Fisherman's Arrangement 1}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_5616.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} Fisherman's Arrangement #1
Code = Output
{{Item|Icon=Fisherman's Arrangement #1|Fisherman's Arrangement 1}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} Fisherman's Arrangement 1
Code = Output
{{Item|Icon=Fisherman's Arrangement #1|Item name=Fisherman's Arrangement 1}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} Item name
Code = Output
{{Item|Beginner's Arrow|Learn Archery|Archery}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_5238.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} Beginner's Arrow
Code = Output
{{Item|Icon=Beginner's Arrow|Item name=Learn Archery|Archery}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} Archery
Code = Output
{{Item|Icon=Beginner's Arrow|Item name=Learn Archery|Link=Archery}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} Item name
Legacy example
Using an alternate icon and link with alternate text. Note usage of {{pipe}} to distinguish from normal template arguments:
Code = Output
{{Item|Icon=Beginner's Arrow|Archery{{pipe}}Learn Archery}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} Learn Archery

Notes

  • Uses the new Template:Item icon template.
  • WHY? To support enhancements in {{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.
The above text is transcluded from Template:Item/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Item/doc. (View all subpages of this page.)