Template:Infobox Shop: Difference between revisions
Create software infobox Tag: Reverted |
Tag: Undo |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== Usage == | == 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 == | == Example == | ||
{{Infobox | {{Infobox Shop | ||
| | | shopname = Diamond Emporium | ||
| image | | image = Steve's_Shop.jpg | ||
| | | shopowner = BlockKnight32 | ||
| | | shoptype = General Goods | ||
| | | season = [[Season 3]] | ||
| | | location = Town | ||
| | | coordinates = X: 1024, Y: 64, Z: -512 | ||
| description | | dateopened = 1st April 2025 | ||
| dateclosed = <!-- leave blank if still open --> | |||
| items = Diamonds, Emeralds, Enchanted Books | |||
| currency = Emeralds & Diamonds | |||
| description = “Finest gemstones at rock-bottom prices.” | |||
}} | }} | ||
{{#cargo_declare: | {{#cargo_declare: | ||
_table= | _table=shop_data | ||
| | | shopname=String | ||
| image=File | | image=File | ||
| | | shopowner=Page | ||
| shoptype=String | |||
| status=String | | status=String | ||
| | | season=Page | ||
| | | location=String | ||
| | | coordinates=String | ||
| dateopened=Date | |||
| dateclosed=Date | |||
| items=Text | |||
| currency=Text | |||
| description=Text | | description=Text | ||
}}</noinclude> | }}</noinclude> | ||
<includeonly> | <includeonly> | ||
{{#cargo_store: | {{#cargo_store: | ||
_table= | _table=shop_data | ||
| | | shopname={{{shopname|}}} | ||
| image={{{image|}}} | | image={{{image|}}} | ||
| | | shopowner={{{shopowner|}}} | ||
| shoptype={{{shoptype|}}} | |||
| status={{{status|}}} | | status={{{status|}}} | ||
| | | season={{{season|}}} | ||
| | | location={{{location|}}} | ||
| | | 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 | {{#invoke:Infobox Shop|infobox}} | ||
{{#invoke:Infobox | |||
</includeonly> | </includeonly> | ||
<noinclude> | |||
<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’)." | |||
}, | |||
"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 | |||
}, | |||
"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 | |||
} | |||
}, | |||
"paramOrder": [ | |||
"shopname", | |||
"image", | |||
"shopowner", | |||
"shoptype", | |||
"season", | |||
"location", | |||
"coordinates", | |||
"dateopened", | |||
"dateclosed", | |||
"items", | |||
"currency", | |||
"description" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> | |||
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 |