Template:Infobox Shop: Difference between revisions
fixed error where it was using the wrong infobox |
Tag: Undo |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 20: | Line 20: | ||
{{#cargo_declare: | {{#cargo_declare: | ||
_table=shop_data | _table=shop_data | ||
| | | shopname=String | ||
| image=File | | image=File | ||
| | | shopowner=Page | ||
| | | shoptype=String | ||
| status=String | | status=String | ||
| season=Page | | season=Page | ||
| location=String | | location=String | ||
| coordinates=String | | coordinates=String | ||
| | | dateopened=Date | ||
| | | dateclosed=Date | ||
| | | items=Text | ||
| | | currency=Text | ||
| description=Text | | description=Text | ||
}}</noinclude> | }}</noinclude> | ||
| Line 37: | Line 37: | ||
{{#cargo_store: | {{#cargo_store: | ||
_table=shop_data | _table=shop_data | ||
| | | shopname={{{shopname|}}} | ||
| image={{{image|}}} | | image={{{image|}}} | ||
| | | shopowner={{{shopowner|}}} | ||
| | | shoptype={{{shoptype|}}} | ||
| status={{{status|}}} | | status={{{status|}}} | ||
| season={{{season|}}} | | season={{{season|}}} | ||
| location={{{location|}}} | | location={{{location|}}} | ||
| coordinates={{{coordinates|}}} | | coordinates={{{coordinates|}}} | ||
| | | dateopened={{{dateopened|}}} | ||
| | | dateclosed={{{dateclosed|}}} | ||
| | | items={{{items|}}} | ||
| | | currency={{{currency|}}} | ||
| description={{{description|}}} | | description={{{description|}}} | ||
}}<templatestyles src="Template:Infobox Shop/styles.css" /> | }}<templatestyles src="Template:Infobox Shop/styles.css" /> | ||
| Line 130: | Line 130: | ||
"[[Season 3]]", | "[[Season 3]]", | ||
"[[Season 4]]", | "[[Season 4]]", | ||
"[[Season V]]" | "[[Season V]]", | ||
"[[Season 6]]" | |||
], | ], | ||
"suggested": true | "suggested": true | ||
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 |