Template:Infobox Shop: Difference between revisions
Create shop infobox |
Adds shop image |
||
| Line 24: | Line 24: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "An infobox displaying key attributes of an SMP player-run shop.", | |||
"params": { | |||
"shopname": { | |||
"label": "Shop Name", | |||
"type": "string", | |||
"required": true, | |||
"description": "The name of the shop." | |||
}, | |||
"shopowner": { | |||
"label": "Shop Owner", | |||
"type": "string", | |||
"required": true, | |||
"description": "Minecraft username of the shop owner." | |||
}, | |||
"shoptype": { | |||
"label": "Shop Type", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Category of goods or service (e.g. ‘General Goods’, ‘Food’, ‘Tools’)." | |||
}, | |||
"status": { | |||
"label": "Shop Status", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Active", | |||
"Closed", | |||
"Under Renovation", | |||
"Seasonal" | |||
], | |||
"description": "Current operational status." | |||
}, | |||
"location": { | |||
"label": "Location", | |||
"type": "string", | |||
"description": "In-game location (e.g. town)." | |||
}, | |||
"coordinates": { | |||
"label": "Coordinates", | |||
"type": "string", | |||
"description": "Exact in-game X,Y,Z coordinates." | |||
}, | |||
"dateopened": { | |||
"label": "Date Opened", | |||
"type": "date", | |||
"description": "The date the shop first opened." | |||
}, | |||
"dateclosed": { | |||
"label": "Date Closed", | |||
"type": "date", | |||
"description": "The date the shop closed (if applicable)." | |||
}, | |||
"items": { | |||
"label": "Items Sold", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Key items or categories sold." | |||
}, | |||
"currency": { | |||
"label": "Currency Accepted", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Types of currency used (e.g. Emeralds, Diamonds)." | |||
}, | |||
"description": { | |||
"label": "Description", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Short tagline or description." | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "An image of the shop ingame", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
} | |||
}, | |||
"paramOrder": [ | |||
"shopname", | |||
"image", | |||
"shopowner", | |||
"shoptype", | |||
"status", | |||
"location", | |||
"coordinates", | |||
"dateopened", | |||
"dateclosed", | |||
"items", | |||
"currency", | |||
"description" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 15:44, 23 June 2025
Usage
Place this on any shop’s page to display the shop infobox. Just replace the example values in the code block below with your own.
Example
| Diamond Emporium | |
|---|---|
| General Information | |
| Shop Name | Diamond Emporium |
| Owner | BlockKnight32 |
| Type | General Goods |
| Location | |
| Location | Town |
| Coordinates | X: 1024, Y: 64, Z: -512 |
| Dates | |
| Date Opened | 1st April 2025 |
| Inventory | |
| Items Sold | Diamonds, Emeralds, Enchanted Books |
| Currency | Emeralds & Diamonds |
| About | |
| Description | “Finest gemstones at rock-bottom prices.” |
An infobox displaying key attributes of an SMP player-run shop.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Shop Name | shopname | The name of the shop. | String | required |
| Image | image | An image of the shop ingame | File | suggested |
| Shop Owner | shopowner | Minecraft username of the shop owner. | String | required |
| Shop Type | shoptype | Category of goods or service (e.g. ‘General Goods’, ‘Food’, ‘Tools’). | String | suggested |
| Shop Status | status | Current operational status.
| String | optional |
| Location | location | In-game location (e.g. town). | String | optional |
| Coordinates | coordinates | Exact in-game X,Y,Z coordinates. | String | optional |
| Date Opened | dateopened | The date the shop first opened. | Date | optional |
| Date Closed | dateclosed | The date the shop closed (if applicable). | Date | optional |
| Items Sold | items | Key items or categories sold. | String | suggested |
| Currency Accepted | currency | Types of currency used (e.g. Emeralds, Diamonds). | String | suggested |
| Description | description | Short tagline or description. | String | suggested |