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
Fix image
Undo revision 1153 by Max (talk)
Tag: Undo
 
(4 intermediate revisions by 2 users not shown)
Line 4: Line 4:


== Example ==
== Example ==
{{Infobox Base
{{Infobox Shop
| shopname        = Diamond Emporium
| shopname        = Diamond Emporium
| image          = Steve's_Shop.jpg
| image          = Steve's_Shop.jpg
Line 18: Line 18:
| description    = “Finest gemstones at rock-bottom prices.”
| description    = “Finest gemstones at rock-bottom prices.”
}}
}}
</noinclude>
{{#cargo_declare:
<includeonly>{{#cargo_declare:
   _table=shop_data
   _table=shop_data
   | basename=String
   | shopname=String
   | image=File
   | image=File
   | owner=Page
   | shopowner=Page
   | basetype=String
   | shoptype=String
   | status=String
   | status=String
   | season=Page
   | season=Page
   | location=String
   | location=String
   | coordinates=String
   | coordinates=String
   | dateestablished=Date
   | dateopened=Date
   | dateabandoned=Date
   | dateclosed=Date
   | members=Text
   | items=Text
   | notablefeatures=Text
   | currency=Text
   | description=Text
   | description=Text
}}</noinclude>
}}</noinclude>
Line 38: Line 37:
{{#cargo_store:
{{#cargo_store:
   _table=shop_data
   _table=shop_data
   | basename={{{basename|}}}
   | shopname={{{shopname|}}}
   | image={{{image|}}}
   | image={{{image|}}}
   | owner={{{owner|}}}
   | shopowner={{{shopowner|}}}
   | basetype={{{basetype|}}}
   | shoptype={{{shoptype|}}}
   | status={{{status|}}}
   | status={{{status|}}}
   | season={{{season|}}}
   | season={{{season|}}}
   | location={{{location|}}}
   | location={{{location|}}}
   | coordinates={{{coordinates|}}}
   | coordinates={{{coordinates|}}}
   | dateestablished={{{dateestablished|}}}
   | dateopened={{{dateopened|}}}
   | dateabandoned={{{dateabandoned|}}}
   | dateclosed={{{dateclosed|}}}
   | members={{{members|}}}
   | items={{{items|}}}
   | notablefeatures={{{notablefeatures|}}}
   | currency={{{currency|}}}
   | description={{{description|}}}
   | description={{{description|}}}
}}<templatestyles src="Template:Infobox Shop/styles.css" />
}}<templatestyles src="Template:Infobox Shop/styles.css" />
Line 131: 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.

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