Template:Shop
Jump to navigation
Jump to search
This template adds rows to the table "Shop_inventory", which is declared by the template Shop/Cargo declare. View table.
Description
Create a merchant table for shops. This template creates hidden categories on pages, to allow the DPL to create queries and pull together shop information for various pages.
{{Shop}} is to be used in conjunction with {{Shop/header}} and {{Shop/footer}}.
Syntax
{{Shop/header |shop = Name of the shop. }} {{Shop | item name | cost | currency |sale = Adds a sale price to the item. (optional) |note = Any specific notes about the item. (optional) |link = Changes the link used for the displayed text and the image. (optional |img = Changes the image that is displayed for this item or character. (optional) |ext = Changes the extension of the displayed image. Used when there is no png file available. (optional) }} {{Shop/footer |note = Any specific notes about the shop. (optional) }}
Examples
Bakery
{{Shop/header|type=Food|shop=Bakery}} {{Shop|Flour|100|coins}} {{Shop|Sugar|130|coins}} {{Shop|Noodles|110|coins}} {{Shop|Milk|375|coins}} {{Shop|Egg|275|coins}} {{Shop|Cheese|750|coins}} {{Shop|Pizza|1400|coins}} {{Shop|Beginner's Apple Pie|400|coins}} {{Shop|Cinnamon Apple Pie|750|coins}} {{Shop|Cookies|115|coins}} {{Shop|Bread|220|coins}} {{Shop|Pizza Box|4500|coins}} {{Shop|Pot Pie|900|coins}} {{Shop/footer}}