Jump to content

📢 Please make sure to read our Style Guide before editing. For questions, suggestions, or technical issues, please contact Noah.

Template:Infobox Shop: Difference between revisions

From CrabCraft Wiki
Create software infobox
Tag: Reverted
Undo revision 1153 by Max (talk)
Tag: Undo
 
Line 1: Line 1:
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Use this template for CrabCraft technical tools and websites.
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 Software
{{Infobox Shop
| name        = CrabCraft Wrapped
| shopname        = Diamond Emporium
| image       = Wrapped_Preview.jpg
| image           = Steve's_Shop.jpg
| developer    = CrabCraft
| shopowner      = BlockKnight32
| status      = Upcoming
| shoptype        = General Goods
| seasons      = Season 1 - Season 6
| season          = [[Season 3]]
| release_date = 2026
| location        = Town
| website     = [https://crabcraft.net Link]
| coordinates    = X: 1024, Y: 64, Z: -512
| description = A Spotify-style journey through past seasons.
| 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=software_data
   _table=shop_data
   | name=String
   | shopname=String
   | image=File
   | image=File
   | developer=String
   | shopowner=Page
  | shoptype=String
   | status=String
   | status=String
   | seasons=String
   | season=Page
   | release_date=String
  | location=String
   | website=URL
   | coordinates=String
   | dateopened=Date
  | dateclosed=Date
  | items=Text
  | currency=Text
   | description=Text
   | description=Text
}}</noinclude>
}}</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:
{{#cargo_store:
   _table=software_data
   _table=shop_data
   | name={{{name|}}}
   | shopname={{{shopname|}}}
   | image={{{image|}}}
   | image={{{image|}}}
   | developer={{{developer|}}}
   | shopowner={{{shopowner|}}}
  | shoptype={{{shoptype|}}}
   | status={{{status|}}}
   | status={{{status|}}}
   | seasons={{{seasons|}}}
   | season={{{season|}}}
   | release_date={{{release_date|}}}
   | location={{{location|}}}
   | website={{{website|}}}
   | 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 Software/styles.css" />
{{#invoke:Infobox Shop|infobox}}
{{#invoke:Infobox Software|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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Shop Nameshopname

The name of the shop.

Stringrequired
Imageimage

An image of the shop ingame

Filesuggested
Shop Ownershopowner

Minecraft username of the shop owner.

Stringrequired
Shop Typeshoptype

Category of goods or service (e.g. ‘General Goods’, ‘Food’, ‘Tools’).

Stringsuggested
Seasonseason

The season the shop was active

Suggested values
[[Season 1]] [[Season 2]] [[Season 3]] [[Season 4]] [[Season V]] [[Season 6]]
Example
Season 4
Stringsuggested
Locationlocation

In-game location (e.g. town).

Stringoptional
Coordinatescoordinates

Exact in-game X,Y,Z coordinates.

Stringoptional
Date Openeddateopened

The date the shop first opened.

Dateoptional
Date Closeddateclosed

The date the shop closed (if applicable).

Dateoptional
Items Solditems

Key items or categories sold.

Stringsuggested
Currency Acceptedcurrency

Types of currency used (e.g. Emeralds, Diamonds).

Stringsuggested
Descriptiondescription

Short tagline or description.

Stringsuggested