Template:Item: Difference between revisions

From Paw Borough Wiki
No edit summary
(Template data and structuring.)
 
(4 intermediate revisions by one other user not shown)
Line 55: Line 55:
|-{{#if: {{{rating|}}}||style="display: none"}}
|-{{#if: {{{rating|}}}||style="display: none"}}
! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"| Rarity
! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"| Rarity
| ! colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px;"| {{{stars|}}} {{#ifeq: {{{rating|}}}|1|[[File:Pb wiki rarity - 1 star.png]]|}}{{#ifeq: {{{rating|}}}|2|[[File:Pb wiki rarity - 2 stars.png]]|}}{{#ifeq: {{{rating|}}}|3|[[File:Pb wiki rarity - 3 stars.png]]|}}{{#ifeq: {{{rating|}}}|4|[[File:Pb wiki rarity - 4 stars.png]]|}}{{#ifeq: {{{rating|}}}|5|[[File:Pb wiki rarity - 5 stars.png]]|}}{{#ifeq: {{{rating|}}}|6|[[File:Pb wiki rarity - 6 stars.png]]|}}
| ! colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px;"| {{{stars|}}} {{#ifeq: {{{rating|}}}|1|[[File:Pb wiki rarity - 1 star.png|25px]]|}}{{#ifeq: {{{rating|}}}|2|[[File:Pb wiki rarity - 2 stars.png|50px]]|}}{{#ifeq: {{{rating|}}}|3|[[File:Pb wiki rarity - 3 stars.png|75px]]|}}{{#ifeq: {{{rating|}}}|4|[[File:Pb wiki rarity - 4 stars.png|100px]]|}}{{#ifeq: {{{rating|}}}|5|[[File:Pb wiki rarity - 5 stars.png|125px]]|}}{{#ifeq: {{{rating|}}}|6|[[File:Pb wiki rarity - 6 stars.png|150px]]|}}
|-{{#if: {{{debut|}}}||style="display: none"}}
|-{{#if: {{{debut|}}}||style="display: none"}}
! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"|  Debut Date
! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"|  Debut Date
| colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px; "| {{{debut|}}}
| colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px; "| {{{debut|}}}
|}</includeonly>
|}</includeonly><noinclude>
<noinclude>
== Syntax ==
 
<pre>
<pre>
{{Item
{{Item
Line 79: Line 80:
}}
}}
</pre>
</pre>
</noinclude>
 
== Example ==
{{Item
|name=Scraps
|img=Scraps.png
|capt1= Scraps
|rating=1
|stars=1
|gets=[[Composting]], [[Farming]], [[Husbandry]]
|price=N/A
|nature=Cranky, Assertive
|sell=1
|debut=
|flavor_text=Common food items can be composted into Scraps. Scraps help control Soil Quality and Grass Density in the farmland.
}}
<pre>
{{Item
|name=Scraps
|img=Scraps.png
|capt1= Scraps
|rating=1
|stars=1
|gets=[[Composting]], [[Farming]], [[Husbandry]]
|price=N/A
|nature=Cranky, Assertive
|sell=1
|debut=
|flavor_text=Common food items can be composted into Scraps. Scraps help control Soil Quality and Grass Density in the farmland.
}}
</pre>
 
{{-}}
== Template Parameters ==
<templatedata>
{
"params": {
"flavor_text": {
"description": "The associated flavor text/description as seen in the database or item card.",
"suggested": true
},
"gets": {
"description": "How the item is obtained.",
"suggested": true
},
"curr": {
"description": "Currency of the item's price.",
"suggestedvalues": [
"Copper",
"Silver"
]
},
"rating": {
"description": "The rarity of the item, accepts only numerical values. Inserts associated star icon.",
"suggestedvalues": [
"1",
"2",
"3",
"4",
"5",
"6",
"7"
],
"suggested": true
},
"price": {
"description": "Price of the item if obtained through an NPC store."
},
"sell": {
"description": "The selling price of the item when sold to an NPC.",
"suggested": true
},
"flavor": {
"description": "The flavor of a food item as seen in the database or item card.",
"suggestedvalues": [
"sweet",
"sour",
"spiced",
"salty",
"savory",
"bitter"
]
},
"nature": {
"description": "The associated nature of an item as seen in the database or item card.",
"suggestedvalues": [
"lonely",
"protective",
"hardy",
"gentle",
"heroic",
"mischievous",
"jolly",
"cranky",
"relaxed",
"nervous",
"timid",
"assertive",
"careful",
"headstrong"
]
},
"stars": {
"description": "The numerical value of the item's rarity. Adds the number before the rarity icon.",
"example": "7"
},
"name": {
"default": "{{PAGENAME}}",
"description": "Name of the item, defaults to page name.",
"suggested": true
},
"img": {
"description": "Full resolution image of item.",
"suggested": true
},
"capt1": {
"description": "Caption for large image."
},
"smallimg": {},
"capt2": {},
"debut": {
"description": "When the item was released."
}
},
"paramOrder": [
"name",
"img",
"flavor_text",
"capt1",
"smallimg",
"capt2",
"gets",
"price",
"curr",
"sell",
"flavor",
"nature",
"rating",
"stars",
"debut"
]
}
</templatedata></noinclude>

Latest revision as of 16:38, 14 April 2026

This template defines the table "Items". View table.


Syntax

{{Item
|img=
|smallimg=
|capt1= Item
|capt2=Icon for 
|curr=
|rating=
|gets=
|price=
|flavor=
|nature=
|sell=
|stars=
|debut=
|flavor_text=
}}

Example

Scraps
Common food items can be composted into Scraps. Scraps help control Soil Quality and Grass Density in the farmland.
Scraps
[[File:]]
Acquired Via Composting, Farming, Husbandry
Cost N/A Worth 1
Flavor File:.png
Nature Cranky, Assertive
Rarity 1
Debut Date
{{Item
|name=Scraps
|img=Scraps.png
|capt1= Scraps
|rating=1
|stars=1
|gets=[[Composting]], [[Farming]], [[Husbandry]]
|price=N/A
|nature=Cranky, Assertive
|sell=1
|debut=
|flavor_text=Common food items can be composted into Scraps. Scraps help control Soil Quality and Grass Density in the farmland.
}}

Template Parameters

No description.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
namename

Name of the item, defaults to page name.

Default
{{PAGENAME}}
Unknownsuggested
imgimg

Full resolution image of item.

Unknownsuggested
flavor_textflavor_text

The associated flavor text/description as seen in the database or item card.

Unknownsuggested
capt1capt1

Caption for large image.

Unknownoptional
smallimgsmallimg

no description

Unknownoptional
capt2capt2

no description

Unknownoptional
getsgets

How the item is obtained.

Unknownsuggested
priceprice

Price of the item if obtained through an NPC store.

Unknownoptional
currcurr

Currency of the item's price.

Suggested values
Copper Silver
Unknownoptional
sellsell

The selling price of the item when sold to an NPC.

Unknownsuggested
flavorflavor

The flavor of a food item as seen in the database or item card.

Suggested values
sweet sour spiced salty savory bitter
Unknownoptional
naturenature

The associated nature of an item as seen in the database or item card.

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

The rarity of the item, accepts only numerical values. Inserts associated star icon.

Suggested values
1 2 3 4 5 6 7
Unknownsuggested
starsstars

The numerical value of the item's rarity. Adds the number before the rarity icon.

Example
7
Unknownoptional
debutdebut

When the item was released.

Unknownoptional