Difference between revisions of "Template:SideInfoBox Object"
(I give up, If it works it works...) |
(Added template info and Exmaple.) |
||
| Line 143: | Line 143: | ||
| footer = {{{notes|}}} | | footer = {{{notes|}}} | ||
}}</includeonly> | }}</includeonly> | ||
| + | <noinclude> | ||
| + | ==Template Data== | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "title": { | ||
| + | "label": "Title", | ||
| + | "description": "The name given to the Infobox. Defaults to Page name.", | ||
| + | "example": "Sand", | ||
| + | "type": "string", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "largeimage1": { | ||
| + | "label": "Large Display Image Slot 1", | ||
| + | "description": "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.", | ||
| + | "type": "wiki-template-name", | ||
| + | "required": true | ||
| + | }, | ||
| + | "largeimage2": { | ||
| + | "label": "Large Display Image Slot 2", | ||
| + | "description": "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.", | ||
| + | "type": "wiki-template-name" | ||
| + | }, | ||
| + | "largeimage3": { | ||
| + | "label": "Large Display Image Slot 3", | ||
| + | "description": "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.", | ||
| + | "type": "wiki-template-name" | ||
| + | }, | ||
| + | "invimage1": { | ||
| + | "label": "Inventory Image 1", | ||
| + | "description": "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.", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | }, | ||
| + | "invimage2": { | ||
| + | "label": "Inventory Image 2", | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage3": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage4": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage5": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage6": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage7": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage8": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage9": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage10": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage11": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage12": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage13": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage14": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage15": { | ||
| + | "description": "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.", | ||
| + | "example": "Rocksalt Sand", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage16": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage17": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage18": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage19": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage20": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage21": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage22": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage23": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage24": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage25": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage26": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage27": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage28": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage29": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "invimage30": { | ||
| + | "description": "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.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "tool": { | ||
| + | "label": "Tool", | ||
| + | "description": "The effective tool for this block or the tool this item acts as.", | ||
| + | "example": "shovel", | ||
| + | "type": "string", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "tool2": { | ||
| + | "label": "Tool 2", | ||
| + | "description": "The effective tool for this block or the tool this item acts as.", | ||
| + | "example": "axe", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "tool3": { | ||
| + | "label": "Tool 3", | ||
| + | "description": "The effective tool for this block or the tool this item acts as.", | ||
| + | "example": "scythe", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "stacksize": { | ||
| + | "label": "Stack Size", | ||
| + | "description": "The maximum size this stack can be.", | ||
| + | "example": "32", | ||
| + | "type": "number", | ||
| + | "required": true | ||
| + | }, | ||
| + | "size": { | ||
| + | "label": "Item Size", | ||
| + | "description": "Size of the Item", | ||
| + | "example": "Large", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | }, | ||
| + | "weight": { | ||
| + | "label": "Item Weight", | ||
| + | "description": "Weight of the Item", | ||
| + | "example": "Heavy", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | }, | ||
| + | "renewable": { | ||
| + | "label": "Renewable", | ||
| + | "description": "Is this item Renewable?", | ||
| + | "example": "Yes", | ||
| + | "type": "boolean", | ||
| + | "required": true | ||
| + | }, | ||
| + | "oredict": { | ||
| + | "label": "Ore Dictionary entries.", | ||
| + | "description": "A list of all valid general oredict entries for this item. Use a Data table for specifics like wool colors.", | ||
| + | "example": "ore:wool", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | }, | ||
| + | "gravity": { | ||
| + | "label": "Gravity Affected", | ||
| + | "description": "Does this block have gravity?", | ||
| + | "type": "boolean", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "drops": { | ||
| + | "label": "Block Drops", | ||
| + | "description": "What does this block drop?", | ||
| + | "type": "unknown", | ||
| + | "required": true | ||
| + | }, | ||
| + | "flammable": { | ||
| + | "label": "Flammability ", | ||
| + | "description": "Does this block burn?", | ||
| + | "type": "boolean", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "luminance": { | ||
| + | "label": "Luminance", | ||
| + | "description": "Does this block emit light?", | ||
| + | "type": "number", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "blastresistance": { | ||
| + | "label": "Blast Resistance", | ||
| + | "description": "How blast resistant is this block?", | ||
| + | "type": "number", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "notes": { | ||
| + | "label": "Extra Notes", | ||
| + | "description": "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.", | ||
| + | "type": "content" | ||
| + | } | ||
| + | }, | ||
| + | "description": "This is the template for adding the item/block overview with pictures on the side of every item/block page.", | ||
| + | "format": "block" | ||
| + | } | ||
| + | </templatedata> | ||
| + | ==Example== | ||
| + | <code><nowiki> | ||
| + | {{ItemInfoBox | ||
| + | |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 | ||
| + | }} | ||
| + | </nowiki></code> | ||
| + | {{ItemInfoBox | ||
| + | |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 | ||
| + | }} | ||
| + | </noinclude> | ||
Revision as of 05:12, 31 January 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
{{ItemInfoBox
|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
}}
Template:ItemInfoBox