Difference between revisions of "Template:SideInfoBox Object"
(Use the same size character as TFC itself) |
(Renewable, Gravity, and Flammable are declared as boolean parameters, so handle boolean values properly: render 1 as Yes and 0 as No) |
||
Line 133: | Line 133: | ||
{{infobox row|label=[[Size]] <font face="Segoe UI Symbol">⇲</font>|field={{ #if: {{{size|}}} | {{{size}}} | ?[[Category:MissingData]] }} }} | {{infobox row|label=[[Size]] <font face="Segoe UI Symbol">⇲</font>|field={{ #if: {{{size|}}} | {{{size}}} | ?[[Category:MissingData]] }} }} | ||
{{infobox row|label=[[Weight]] <font face="Segoe UI Symbol">⚖</font>|field={{ #if: {{{weight|}}} | {{{weight}}} | ?[[Category:MissingData]] }} }} | {{infobox row|label=[[Weight]] <font face="Segoe UI Symbol">⚖</font>|field={{ #if: {{{weight|}}} | {{{weight}}} | ?[[Category:MissingData]] }} }} | ||
− | {{infobox row|label=Renewable |field={{ # | + | {{infobox row|label=Renewable |field={{ #switch: {{{renewable|}}} | = ?[[Category:MissingData]] | 0 = No | 1 = Yes | {{{renewable}}} }} }} |
{{infobox row|label=Ore Dictionary|field={{ #if: {{{oredict|}}} | {{{oredict}}} | ?[[Category:MissingData]] }} }} | {{infobox row|label=Ore Dictionary|field={{ #if: {{{oredict|}}} | {{{oredict}}} | ?[[Category:MissingData]] }} }} | ||
− | {{#if: {{{gravity|}}} | {{infobox row|label=Gravity|field={{ # | + | {{#if: {{{gravity|}}} | {{infobox row|label=Gravity|field={{ #switch: {{{gravity|}}} | 0 = No | 1 = Yes | {{{gravity}}} }} }} }} |
{{#if: {{{drops|}}} | {{infobox row|label=Drops|field={{ #if: {{{drops|}}} | {{{drops}}} | ?[[Category:MissingData]] }} }} }} | {{#if: {{{drops|}}} | {{infobox row|label=Drops|field={{ #if: {{{drops|}}} | {{{drops}}} | ?[[Category:MissingData]] }} }} }} | ||
− | {{#if: {{{flammable|}}} | {{infobox row|label=Flammable|field={{ # | + | {{#if: {{{flammable|}}} | {{infobox row|label=Flammable|field={{#switch: {{{flammable|}}} | 0 = No | 1 = Yes | {{{flammable}}}}}}}}} |
− | |||
{{#if: {{{blastresistance|}}} | {{infobox row|label=Blast Resistance|field={{ #if: {{{blastresistance|}}} | {{{blastresistance}}} | ?[[Category:MissingData]] }} }} }} | {{#if: {{{blastresistance|}}} | {{infobox row|label=Blast Resistance|field={{ #if: {{{blastresistance|}}} | {{{blastresistance}}} | ?[[Category:MissingData]] }} }} }} | ||
{{infobox row|label=Extra Item Data|field=See [[{{BASEPAGENAME}}#Data|Data]] }} | {{infobox row|label=Extra Item Data|field=See [[{{BASEPAGENAME}}#Data|Data]] }} |
Latest revision as of 23:20, 28 November 2020
Template Data
This is the template for adding the item/block overview with pictures on the side of every item/block page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The name given to the Infobox. Defaults to Page name.
| String | suggested |
Large Display Image Slot 1 | largeimage1 | This is the large item/block image that is displayed blown up at the top of the infobox. Must be a BlockImage Template to get the correct size. Use multiple in the same element for a slideshow. Missing Textures will show for missing picture files. | Template | required |
Large Display Image Slot 2 | largeimage2 | This is the large item/block image that is displayed blown up at the top of the infobox. Must be a BlockImage Template to get the correct size. Use multiple in the same element for a slideshow. Missing Textures will show for missing picture files. | Template | optional |
Large Display Image Slot 3 | largeimage3 | This is the large item/block image that is displayed blown up at the top of the infobox. Must be a BlockImage Template to get the correct size. Use multiple in the same element for a slideshow. Missing Textures will show for missing picture files. | Template | optional |
Inventory Image 1 | invimage1 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | required |
Inventory Image 2 | invimage2 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage3 | invimage3 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage4 | invimage4 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage5 | invimage5 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage6 | invimage6 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage7 | invimage7 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage8 | invimage8 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage9 | invimage9 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage10 | invimage10 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage11 | invimage11 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage12 | invimage12 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage13 | invimage13 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage14 | invimage14 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage15 | invimage15 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found.
| String | optional |
Invimage16 | invimage16 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage17 | invimage17 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage18 | invimage18 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage19 | invimage19 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage20 | invimage20 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage21 | invimage21 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage22 | invimage22 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage23 | invimage23 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage24 | invimage24 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage25 | invimage25 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage26 | invimage26 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage27 | invimage27 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage28 | invimage28 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage29 | invimage29 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Invimage30 | invimage30 | This shows the item as if it was inside of an inventory slot with a background. Will show missing texture for files that can't be found. | String | optional |
Tool | tool | The effective tool for this block or the tool this item acts as.
| String | suggested |
Tool 2 | tool2 | The effective tool for this block or the tool this item acts as.
| String | optional |
Tool 3 | tool3 | The effective tool for this block or the tool this item acts as.
| String | optional |
Stack Size | stacksize | The maximum size this stack can be.
| Number | required |
Item Size | size | Size of the Item
| String | required |
Item Weight | weight | Weight of the Item
| String | required |
Renewable | renewable | Is this item Renewable?
| Boolean | required |
Ore Dictionary entries. | oredict | A list of all valid general oredict entries for this item. Use a Data table for specifics like wool colors.
| String | required |
Gravity Affected | gravity | Does this block have gravity? | Boolean | suggested |
Block Drops | drops | What does this block drop? | Unknown | required |
Flammability | flammable | Does this block burn? | Boolean | suggested |
Luminance | luminance | Does this block emit light? | Number | suggested |
Blast Resistance | blastresistance | How blast resistant is this block? | Number | suggested |
Extra Notes | notes | An extra spot for anything that doesn't fit in above or just to add a bit of extra info when Data isn't required. | Content | optional |
Example
{{SideInfoBox Object
|title=Sand
|largeimage1={{BlockImage|Rhyolite Sand}} {{BlockImage|Phyllite Sand}} {{BlockImage|Diorite Sand}} {{BlockImage|Quartzite Sand}} {{BlockImage|Dolomite Sand}} {{BlockImage|Marble Sand}} {{BlockImage|Dacite Sand}} {{BlockImage|Granite Sand}} {{BlockImage|Shale Sand}} {{BlockImage|Conglomerate Sand}} {{BlockImage|Gneiss Sand}} {{BlockImage|Slate Sand}} {{BlockImage|Gabbro Sand}} {{BlockImage|Limestone Sand}} {{BlockImage|Schist Sand}} {{BlockImage|Andesite Sand}} {{BlockImage|Chert Sand}} {{BlockImage|Chalk Sand}} {{BlockImage|Basalt Sand}} {{BlockImage|Claystone Sand}} {{BlockImage|Rocksalt Sand}}
|invimage=Rhyolite Sand
|invimage2=Phyllite Sand
|invimage3=Diorite Sand
|invimage4=Quartzite Sand
|invimage5=Dolomite Sand
|invimage6=Marble Sand
|invimage7=Dacite Sand
|invimage8=Granite Sand
|invimage9=Shale Sand
|invimage10=Conglomerate Sand
|invimage11=Gneiss Sand
|invimage12=Slate Sand
|invimage13=Gabbro Sand
|invimage14=Limestone Sand
|invimage15=Schist Sand
|invimage16=Andesite Sand
|invimage17=Chert Sand
|invimage18=Chalk Sand
|invimage19=Basalt Sand
|invimage20=Claystone Sand
|invimage21=Rocksalt Sand
|stacksize= 32
|size=
|tool=shovel
}}