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 shop infobox
 
Adds shop image
Line 24: Line 24:
<templatedata>
<templatedata>
{
{
  "description": "An infobox displaying key attributes of an SMP player-run shop.",
"description": "An infobox displaying key attributes of an SMP player-run shop.",
  "params": {
"params": {
    "shopname": {
"shopname": {
      "label": "Shop Name",
"label": "Shop Name",
      "type": "string",
"type": "string",
      "required": true,
"required": true,
      "description": "The name of the shop."
"description": "The name of the shop."
    },
},
    "shopowner": {
"shopowner": {
      "label": "Shop Owner",
"label": "Shop Owner",
      "type": "string",
"type": "string",
      "required": true,
"required": true,
      "description": "Minecraft username of the shop owner."
"description": "Minecraft username of the shop owner."
    },
},
    "shoptype": {
"shoptype": {
      "label": "Shop Type",
"label": "Shop Type",
      "type": "string",
"type": "string",
      "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’)."
    },
},
    "status": {
"status": {
      "label": "Shop Status",
"label": "Shop Status",
      "type": "string",
"type": "string",
      "suggestedvalues": [
"suggestedvalues": [
        "Active",
"Active",
        "Closed",
"Closed",
        "Under Renovation",
"Under Renovation",
        "Seasonal"
"Seasonal"
      ],
],
      "description": "Current operational status."
"description": "Current operational status."
    },
},
    "location": {
"location": {
      "label": "Location",
"label": "Location",
      "type": "string",
"type": "string",
      "description": "In-game location (e.g. town)."
"description": "In-game location (e.g. town)."
    },
},
    "coordinates": {
"coordinates": {
      "label": "Coordinates",
"label": "Coordinates",
      "type": "string",
"type": "string",
      "description": "Exact in-game X,Y,Z coordinates."
"description": "Exact in-game X,Y,Z coordinates."
    },
},
    "dateopened": {
"dateopened": {
      "label": "Date Opened",
"label": "Date Opened",
      "type": "date",
"type": "date",
      "description": "The date the shop first opened."
"description": "The date the shop first opened."
    },
},
    "dateclosed": {
"dateclosed": {
      "label": "Date Closed",
"label": "Date Closed",
      "type": "date",
"type": "date",
      "description": "The date the shop closed (if applicable)."
"description": "The date the shop closed (if applicable)."
    },
},
    "items": {
"items": {
      "label": "Items Sold",
"label": "Items Sold",
      "type": "string",
"type": "string",
      "suggested": true,
"suggested": true,
      "description": "Key items or categories sold."
"description": "Key items or categories sold."
    },
},
    "currency": {
"currency": {
      "label": "Currency Accepted",
"label": "Currency Accepted",
      "type": "string",
"type": "string",
      "suggested": true,
"suggested": true,
      "description": "Types of currency used (e.g. Emeralds, Diamonds)."
"description": "Types of currency used (e.g. Emeralds, Diamonds)."
    },
},
    "description": {
"description": {
      "label": "Description",
"label": "Description",
      "type": "string",
"type": "string",
      "suggested": true,
"suggested": true,
      "description": "Short tagline or description."
"description": "Short tagline or description."
    }
},
  },
"image": {
  "paramOrder": [
"label": "Image",
    "shopname",
"description": "An image of the shop ingame",
    "shopowner",
"type": "wiki-file-name",
    "shoptype",
"suggested": true
    "status",
}
    "location",
},
    "coordinates",
"paramOrder": [
    "dateopened",
"shopname",
    "dateclosed",
"image",
    "items",
"shopowner",
    "currency",
"shoptype",
    "description"
"status",
  ]
"location",
"coordinates",
"dateopened",
"dateclosed",
"items",
"currency",
"description"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 15:44, 23 June 2025

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
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.”



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
Shop Statusstatus

Current operational status.

Suggested values
Active Closed Under Renovation Seasonal
Stringoptional
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