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
Adds season 6
Create software infobox
Tag: Reverted
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.
Use this template for CrabCraft technical tools and websites.


== Example ==
== Example ==
{{Infobox Shop
{{Infobox Software
| shopname        = Diamond Emporium
| name        = CrabCraft Wrapped
| image           = Steve's_Shop.jpg
| image       = Wrapped_Preview.jpg
| shopowner      = BlockKnight32
| developer    = CrabCraft
| shoptype        = General Goods
| status      = Upcoming
| season          = [[Season 3]]
| seasons      = Season 1 - Season 6
| location        = Town
| release_date = 2026
| coordinates    = X: 1024, Y: 64, Z: -512
| website     = [https://crabcraft.net Link]
| dateopened      = 1st April 2025
| description = A Spotify-style journey through past seasons.
| 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=shop_data
   _table=software_data
   | shopname=String
   | name=String
   | image=File
   | image=File
   | shopowner=Page
   | developer=String
  | shoptype=String
   | status=String
   | status=String
   | season=Page
   | seasons=String
  | location=String
   | release_date=String
   | coordinates=String
   | website=URL
   | dateopened=Date
  | dateclosed=Date
  | items=Text
  | currency=Text
   | description=Text
   | description=Text
}}</noinclude>
}}</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:
{{#cargo_store:
   _table=shop_data
   _table=software_data
   | shopname={{{shopname|}}}
   | name={{{name|}}}
   | image={{{image|}}}
   | image={{{image|}}}
   | shopowner={{{shopowner|}}}
   | developer={{{developer|}}}
  | shoptype={{{shoptype|}}}
   | status={{{status|}}}
   | status={{{status|}}}
   | season={{{season|}}}
   | seasons={{{seasons|}}}
   | location={{{location|}}}
   | release_date={{{release_date|}}}
   | coordinates={{{coordinates|}}}
   | website={{{website|}}}
  | dateopened={{{dateopened|}}}
  | dateclosed={{{dateclosed|}}}
  | items={{{items|}}}
  | currency={{{currency|}}}
   | description={{{description|}}}
   | description={{{description|}}}
}}<templatestyles src="Template:Infobox Shop/styles.css" />
}}
{{#invoke:Infobox Shop|infobox}}
<templatestyles src="Template:Infobox Software/styles.css" />
{{#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>

Revision as of 23:17, 27 February 2026

Usage

Use this template for CrabCraft technical tools and websites.

Example

CrabCraft Wrapped
File:Wrapped Preview.jpg
Development Information
Name CrabCraft Wrapped
Developer CrabCraft
Status Upcoming
Release Date 2026
Scope
Seasons Covered Season 1 - Season 6
Platform Web Browser
External Links
Website Link
About
Description A Spotify-style journey through past seasons.


This template defines the table "software_data". This table has not been created yet.