Difference between revisions of "Template:ItemIcon"
Jump to navigation
Jump to search
(Changed the system to use the) |
(Added template data.) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[File:{{{1|}}}.png|32px|{{{1|}}}.png|link={{{2|}}}]]<noinclude> | |
− | This template is mainly used for embedded images of items and blocks. Only use this with | + | This template is mainly used for embedded images of items and blocks. Only use this with 512px images when embedding into content. |
+ | |||
+ | DO NOT REMOVE THE SECOND <code><nowiki>{{{1|}}}.png</nowiki></code> as it is required for the link text to be correct if the file is missing!<templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "1": { | ||
+ | "aliases": [ | ||
+ | "fileName" | ||
+ | ], | ||
+ | "label": "File Name", | ||
+ | "description": "Name of file to be used. .png is automatically applied.", | ||
+ | "example": "Copper", | ||
+ | "type": "wiki-file-name", | ||
+ | "required": true | ||
+ | }, | ||
+ | "2": { | ||
+ | "aliases": [ | ||
+ | "link" | ||
+ | ], | ||
+ | "label": "PageLink", | ||
+ | "description": "Link used for this image.", | ||
+ | "example": "ingot", | ||
+ | "type": "wiki-page-name", | ||
+ | "required": true | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 07:11, 12 June 2020
.png This template is mainly used for embedded images of items and blocks. Only use this with 512px images when embedding into content.
DO NOT REMOVE THE SECOND {{{1|}}}.png
as it is required for the link text to be correct if the file is missing!
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
File Name | 1 fileName | Name of file to be used. .png is automatically applied.
| File | required |
PageLink | 2 link | Link used for this image.
| Page | required |