Difference between revisions of "Template:ItemIcon"

From TFC:TNG
Jump to navigation Jump to search
(Undo revision 1847 by Claycorp (talk))
Tag: Undo
(Added template data.)
 
Line 1: Line 1:
 
[[File:{{{1|}}}.png|32px|{{{1|}}}.png|link={{{2|}}}]]<noinclude>
 
[[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 160px images when embedding into content.  
+
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!
+
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.

Template parameters

ParameterDescriptionTypeStatus
File Name1 fileName

Name of file to be used. .png is automatically applied.

Example
Copper
Filerequired
PageLink2 link

Link used for this image.

Example
ingot
Pagerequired