Template:Infobox Shop: Difference between revisions
Adds image |
Tag: Undo |
||
| (11 intermediate revisions by 3 users not shown) | |||
| Line 6: | Line 6: | ||
{{Infobox Shop | {{Infobox Shop | ||
| shopname = Diamond Emporium | | shopname = Diamond Emporium | ||
| image = | | image = Steve's_Shop.jpg | ||
| shopowner = BlockKnight32 | | shopowner = BlockKnight32 | ||
| shoptype = General Goods | | shoptype = General Goods | ||
| | | season = [[Season 3]] | ||
| location = Town | | location = Town | ||
| coordinates = X: 1024, Y: 64, Z: -512 | | coordinates = X: 1024, Y: 64, Z: -512 | ||
| Line 18: | Line 18: | ||
| description = “Finest gemstones at rock-bottom prices.” | | description = “Finest gemstones at rock-bottom prices.” | ||
}} | }} | ||
</noinclude> | {{#cargo_declare: | ||
_table=shop_data | |||
| shopname=String | |||
| image=File | |||
| shopowner=Page | |||
| shoptype=String | |||
| status=String | |||
| season=Page | |||
| location=String | |||
| coordinates=String | |||
| dateopened=Date | |||
| dateclosed=Date | |||
| items=Text | |||
| currency=Text | |||
| description=Text | |||
}}</noinclude> | |||
<includeonly> | <includeonly> | ||
{{#cargo_store: | |||
_table=shop_data | |||
| shopname={{{shopname|}}} | |||
| image={{{image|}}} | |||
| shopowner={{{shopowner|}}} | |||
| shoptype={{{shoptype|}}} | |||
| status={{{status|}}} | |||
| season={{{season|}}} | |||
| location={{{location|}}} | |||
| coordinates={{{coordinates|}}} | |||
| dateopened={{{dateopened|}}} | |||
| dateclosed={{{dateclosed|}}} | |||
| items={{{items|}}} | |||
| currency={{{currency|}}} | |||
| description={{{description|}}} | |||
}}<templatestyles src="Template:Infobox Shop/styles.css" /> | |||
{{#invoke:Infobox Shop|infobox}} | {{#invoke:Infobox Shop|infobox}} | ||
</includeonly> | </includeonly> | ||
| Line 44: | Line 75: | ||
"suggested": true, | "suggested": true, | ||
"description": "Category of goods or service (e.g. ‘General Goods’, ‘Food’, ‘Tools’)." | "description": "Category of goods or service (e.g. ‘General Goods’, ‘Food’, ‘Tools’)." | ||
}, | }, | ||
"location": { | "location": { | ||
| Line 98: | Line 118: | ||
"description": "An image of the shop ingame", | "description": "An image of the shop ingame", | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"suggested": true | |||
}, | |||
"season": { | |||
"label": "Season", | |||
"description": "The season the shop was active", | |||
"example": "Season 4", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"[[Season 1]]", | |||
"[[Season 2]]", | |||
"[[Season 3]]", | |||
"[[Season 4]]", | |||
"[[Season V]]", | |||
"[[Season 6]]" | |||
], | |||
"suggested": true | "suggested": true | ||
} | } | ||
| Line 106: | Line 141: | ||
"shopowner", | "shopowner", | ||
"shoptype", | "shoptype", | ||
" | "season", | ||
"location", | "location", | ||
"coordinates", | "coordinates", | ||
Latest revision as of 23:17, 27 February 2026
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 |
| Season | Season 3 |
| 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.” |
This template defines the table "shop_data". View table.
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 |
| Season | season | The season the shop was active
| String | suggested |
| 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 |