Template:Item List: Difference between revisions
From Vintage Story Wiki
ZulfBracket (talk | contribs) mNo edit summary |
ZulfBracket (talk | contribs) m (Separating icon from item name) |
||
Line 1: | Line 1: | ||
<includeonly>[[File:{{{ | <includeonly>[[File:{{{icon}}}.png|link=|25px]] [[{{{page}}} | {{{item}}}]]</includeonly> | ||
<noinclude> | |||
==Description== | ==Description== | ||
The purpose of this template is to link an item, complete with icon, to a page. | The purpose of this template is to link an item, complete with icon, to a page. | ||
Line 6: | Line 7: | ||
====Usage==== | ====Usage==== | ||
<nowiki> | |||
{{Item List |item=</nowiki> | {| class="wikitable" | ||
! Example !! Output | |||
|- | |||
| <nowiki>{{Item List | item=Flint | icon=Flint | page=Metal}}</nowiki> || {{Item List | item=Flint | icon=Flint | page=Metal}} | |||
|- | |||
| <nowiki>{{Item List | item=Gold Ingot | icon=Ingot-gold | page=Metal}}</nowiki> || {{Item List | item=Gold Ingot | icon=Ingot-gold | page=Metal}} | |||
|} | |||
====Fields==== | |||
{| class="wikitable" style="text-align: left" | |||
| item || Name of the item.. | |||
|- | |||
| icon || File name for the icon to be shown. Most items in the wiki have a size of 100px, so the template enforces it to 25px. | |||
|- | |||
| page || Article that the item will link. | |||
|} | |||
</noinclude> | </noinclude> |
Revision as of 23:04, 14 April 2021
Description
The purpose of this template is to link an item, complete with icon, to a page.
Note: The correct capitalization is Item List. Do not forget the second capitalized letter!
Usage
Example | Output |
---|---|
{{Item List | item=Flint | icon=Flint | page=Metal}} | Flint |
{{Item List | item=Gold Ingot | icon=Ingot-gold | page=Metal}} | Gold Ingot |
Fields
item | Name of the item.. |
icon | File name for the icon to be shown. Most items in the wiki have a size of 100px, so the template enforces it to 25px. |
page | Article that the item will link. |