Template:Item/Sandbox: Difference between revisions

From Paw Borough Wiki
(Switch function to prevent missing categories appearing on anything but articles.)
(Whoops rarity cats slipped past me)
Line 55: Line 55:
| colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px;"| {{#switch: {{{rarity}}}
| colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px;"| {{#switch: {{{rarity}}}
|0=0[[Category:Rarity 0]]
|0=0[[Category:Rarity 0]]
|1=[[File:Pb wiki rarity - 1 star.png|x30px]][[Category:Rarity 1]]
|1=[[File:Pb wiki rarity - 1 star.png|x30px]]{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Rarity 1]]|#default=}}
|2|3|4|5|6=[[File:Pb wiki rarity - {{{rarity}}} stars.png|x30px]][[Category:Rarity {{{rarity}}}]]
|2|3|4|5|6=[[File:Pb wiki rarity - {{{rarity}}} stars.png|x30px]]{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Rarity {{{rarity}}}]]|#default=}}
|#default={{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Rarity]]|#default=}}
|#default={{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Rarity]]|#default=}}
}}
}}

Revision as of 03:01, 21 April 2026


Syntax

{{Item/Sandbox
|name=
|img=
|capt1=
|smallimg=
|capt2=
|description=
|type=
|gets=
|price=
|curr=
|sell=
|flavor=
|nature=
|position=
|taxonomy=
|stam=
|rarity=
|debut=

Examples

Item/Sandbox
Missing Caption
[[File:]]
Missing Description
Type Missing Type
Obtainment Method Missing Obtainment
Cost N/A 
Sell Price
Flavor
Nature
Position {{{position}}}
Taxonomy Class {{{taxonomy}}}
Stamina +
Rarity
Debut Date
{{Item/Sandbox}}


Northern Lunasagi
The Lunasagi
[[File:]]
Hello world.
Type  Fauna
Obtainment Method Errands
Cost  
Sell Price 1000 
Flavor  Savory
Nature  Nervous
Position Back Legs
Taxonomy Class Mammalian
Stamina +20
Rarity
Debut Date Date Here
{{Item/Sandbox
|name=Northern Lunasagi
|img=Lunasagi.png
|capt1=The Lunasagi
|smallimg=
|capt2=
|description=Hello world.
|type=Fauna
|gets=[[Errands]]
|price=
|curr=
|sell=1000
|flavor={{f|Savory}}
|nature={{f|Nervous}}
|position=Back Legs
|taxonomy=Mammalian
|stam=20
|rarity=6
|debut=Date Here
}}

Template Parameters

Infobox template for item pages.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
namename

Name of the item, defaults to page name.

Default
{{PAGENAME}}
Unknownrequired
imgimg

Full resolution image of item.

Example
Placeholder.png
Unknownrequired
capt1capt1

Caption for large image.

Example
The [NAME] | [NAME] Item
Unknownrequired
smallimgsmallimg

no description

Unknownoptional
capt2capt2

no description

Unknownoptional
descriptiondescription

The item's description/flavor text as seen in the database.

Unknownrequired
typetype

Item category, associated icon and link are added automatically.

Suggested values
Accessory Backdrop Combat Crest Decor Dye Fauna Food Formula Incense Metamorphic Pelt Pouch Supply
Unknownrequired
getsgets

How the item is obtained. Obtainment methods should be linked, if there are multiple obtainment sources separate them with commas and order alphabetically.

Unknownrequired
priceprice

The Copper/Silver/USD price of the item if found in NPC shops or premium bundles. Default is "N/A" if left empty.

Default
N/A
Numberrequired
currcurr

Adds {{c}} or {{s}} to the end of Price. Case sensitive.

Suggested values
Copper Silver
Unknownsuggested
sellsell

Sell price of the item, defaults to 0.

Default
0
Numberrequired
flavorflavor

Flavor of the item, if applicable. Wrap template {{f}} around each flavor.

Suggested values
bitter salty savory sour spiced sweet
Unknownsuggested
naturenature

Nature of the item, if applicable. Wrap template {{f}} around each nature.

Suggested values
assertive careful cranky gentle hardy headstrong heroic jolly lonely mischievous nervous protective relaxed timid
Unknownsuggested
positionposition

For accessory items, the position of the accessory as seen in the Wardrobe. Adds associated category automatically.

Suggested values
Back Back Legs Back Paws Body Crown Ears Face Front Legs Front Paws Full Body Head Legs Lower Torso Neck Shoulders Tail Upper Torso Other
Unknownsuggested
taxonomytaxonomy

For fauna items, the general taxonomy class as seen in the database. Adds associated category automatically.

Suggested values
Aquatic Avian Insectoid Mammilian Quartz Suarian Synthetic
Unknownoptional
stamstam

If a food item, the amount of replenished stamina upon use in Errands. As seen in the database.

Unknownsuggested
rarityrarity

Star rarity of the item. Rarity 1 and above have associated star icons. Each rarity applies a category.

Unknownsuggested
debutdebut

When the item was released.

Unknownsuggested