Difference between revisions of "Template:BlockImage"

From TFC:TNG
Jump to navigation Jump to search
(Does this fix the offset block image?)
(Added template data and category.)
 
Line 1: Line 1:
 
<includeonly><div style="height:160px; text-align:center;">{{#ifexist: File:{{{1|}}}.png| [[File:{{{1}}}.png|160px{{#if:{{{2|}}}|{{!}}link={{{2}}} }}]] | [[File:No_block_image.png|160px|link=File:{{{1}}}.png]] }}</div></includeonly>
 
<includeonly><div style="height:160px; text-align:center;">{{#ifexist: File:{{{1|}}}.png| [[File:{{{1}}}.png|160px{{#if:{{{2|}}}|{{!}}link={{{2}}} }}]] | [[File:No_block_image.png|160px|link=File:{{{1}}}.png]] }}</div></includeonly>
  
<noinclude>THIS MUST HAVE THE DIV TAGS OR IT NO WORKY!</noinclude>
+
<noinclude>THIS MUST HAVE THE DIV TAGS OR IT NO WORKY!
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "File name",
 +
"description": "The name of the file on the wiki to be displayed.",
 +
"example": "Tomato Seeds",
 +
"type": "wiki-file-name",
 +
"required": true
 +
},
 +
"2": {
 +
"label": "Link Page",
 +
"description": "Where this image should link to.",
 +
"example": "Seeds",
 +
"type": "wiki-page-name",
 +
"suggested": true
 +
}
 +
},
 +
"description": "A large 160px image of a block with an optional page link. Will Default to an untextured block if the resource can't be found and will link to the missing page for that texture so it can be easily uploaded."
 +
}
 +
</templatedata>
 +
[[Category:{{PAGENAME}}]]
 +
</noinclude>

Latest revision as of 01:04, 4 October 2020


THIS MUST HAVE THE DIV TAGS OR IT NO WORKY!

A large 160px image of a block with an optional page link. Will Default to an untextured block if the resource can't be found and will link to the missing page for that texture so it can be easily uploaded.

Template parameters

ParameterDescriptionTypeStatus
File name1

The name of the file on the wiki to be displayed.

Example
Tomato Seeds
Filerequired
Link Page2

Where this image should link to.

Example
Seeds
Pagesuggested