Template:Infobox item: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
m (Protected "Template:Infobox item": High traffic page: Used in a lot of pages. Changes should be drafted and approved first. ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
No edit summary
Line 284: Line 284:


Examples
Examples
--><noinclude>{{Documentation|content=
--><noinclude>{{Documentation|Type=Infobox}}</noinclude>
==Example 1==
{{T|Infobox item
|p1 =mastery      = Diving;7
|p2 =type        = Animal product
|p3 =item_group  = Milk; Eggs
|p4 =journal      = Produce
|p5 =season      = Winter; Spring
|p6 =seed        = Apple sapling
|p7 =seed_price  = 20
|p8 =growth      = 9
|p9 =regrowth    = 3
|p10=giant_crop  = yes
|p11=wild_seed    = yes
|p12=rank        = B
|p13=year        = 2
|p14=building    = Coop;2
|p15=sell        = 100
|p16=health      = 40
|p17=energy      = 20
|p18=effect      = Drunk
|p19=source      = Foraging;Diving;Farming
|_Y_=1|block=1}}
{{clr}}
==Example 2==
{{T|Infobox item
|p1 =type        = Animal product
|p2 =item_group  = Milk; Eggs
|p3 =journal      = Produce
|p4 =season      = Winter; Spring
|p5 =seed        = Apple sapling
|p6 =seed_price  = 20
|p7 =growth      = 9
|p8 =regrowth    = 3
|p9 =giant_crop  = yes
|p10=wild_seed    = yes
|p11=rank        = B
|p12=year        = 2
|p13=building    = Coop;2
|p14=sell        = 100
|p15=health      = 40
|p16=energy      = 20
|p17=effect      = Drunk
|p18=diff_quality = 1
|_Y_=1|block=1}}
}}</noinclude>

Revision as of 13:33, 6 February 2024

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

Example 1

Example 2

Example 3

Infobox for items

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Item Descriptiondescription

In-game description. Displayed as the caption of the item's image, so will not be visible if there isn't an image file with the same name as the item.

Unknownoptional
Typetype

Type shown in in-game details

Suggested values
Vegetable Fruit Flower Herb Grain Seed Seedling Cooked dish Loot Bomb Decoy Resource Resource equipment Artisan equipment Artisan product Animal product Scavengeable Mushroom Bug Ocean critter Artifact Fossil Geode Gem Letter Torn page Tool Weapon Consumable Bait Trap Fish Misc Farming Ranch Decor Cooking utensil
Example
Vegetable
Stringsuggested
Item groupitem_group

Semicolon-separated list of gifting, and ingredient categories all in one

Stringoptional
Journal categoryjournal

Journal side nav

Stringoptional
Farm conditionsfarm

Which farm can this be planted/used in

Suggested values
Land Ocean
Example
Land
Stringoptional
Sizesize

Footprint when placed on farm

Example
3x3
Stringoptional
Season(s)season

Semicolon-separated list of seasons a crop can be grown in, or "All"

Suggested values
All
Example
Spring;Summer
Stringoptional
Seedseed

Seed that, when planted, produces this item.

Page nameoptional
Seed priceseed_price

How much this item's seed costs. Only displayed if "Seed" is set.

Example
20
Numberoptional
Growth rategrowth

Number of days needed for this crop to grow to maturity

Example
5
Numberoptional
Growth notegrowth_note

Additional notes on growth. Only displayed if "Growth rate" is set.

Stringoptional
Regrowthregrowth

Number of days needed for this crop to regrow. Only displayed if "Growth rate" is set.

Example
2
Numberoptional
Unlock Requirements: Town rankrank

What town rank is required to unlock this item. Adds the page to the corresponding "Town rank X" category.

Suggested values
S A B C D E F
Example
A
Stringoptional
Unlock Requirements: Yearyear

What year this item is unlocked. Only displayed if "Unlock Requirements: Town rank. Adds the page to the corresponding "Year X" category.

Example
2
Numberoptional
Unlock Requirements: Buildingbuilding

What building and upgrade level are required. Only displayed if "Unlock Requirements: Town rank" is set.

Unknownoptional
Unlock Requirements: Mastery levelmastery

Required mastery name, and optionally the required mastery level. Level is separated from the name by a semicolon.

Suggested values
Farming Ranching Foraging Mining Diving Catching Fishing Combat
Example
Farming;6
Unknownoptional
Produced byproduced_by

What animal or equipment produces this item. If a png file exists with this name, it will be used as the image icon. Adds the page to the corresponding "products" category (birds -> "Coop products", barn animals -> "Barn products", others -> "X products"). Case sensitive!

Suggested values
Chicken Duck Peafowl Quail Pig Luwak Goat Cow Llama Sheep Keg Loom Mason jar Dehydrator Aging barrel Bee house Cheese press Mayonnaise machine Mill Oil press
Example
Pig
Stringoptional
Produced by notesproduced_note

Additional details on the production of this item.

Stringoptional
Sourcessource

Semicolon-separated list of sources

Stringoptional
Automatically calculate bronze/silver/gold/osmium values?diff_quality

If set to a non-empty value, automatically calculates missing sell, health and energy values. See "Template:Sell prices".

Example
1
Unknownoptional
Sell Price: Basesell

Item's base sell price. If 0, displayed value will be "Unsellable"

Example
100
Numberoptional
Sell Price: Bronzebronze

If set, indicates the bronze sell price. If "sell" and "diff_quality" are both also set, this will override the auto-calculated value.

Example
1900
Numberoptional
Sell Price: Silversilver

If set, indicates the silver sell price. If "sell" and "diff_quality" are both also set, this will override the auto-calculated value.

Example
1900
Numberoptional
Sell Price: Goldgold

If set, indicates the bronze sell price. If "sell" and "diff_quality" are both also set, this will override the auto-calculated value.

Example
1900
Numberoptional
Sell Price: Osmiumosmium

If set, indicates the bronze sell price. If "sell" and "diff_quality" are both also set, this will override the auto-calculated value.

Example
1900
Numberoptional
Restores Health: Basehealth

Amount of health consuming this item restores when it has no quality.

Example
10
Numberoptional
Restores Health: Bronzehealth_bronze

Amount of health consuming this item restores when it is bronze quality. If "health" and "diff_quality" are both also set, this will override the auto-calculated value.

Example
10
Numberoptional
Restores Health: Silverhealth_silver

Amount of health consuming this item restores when it is silver quality. If "health" and "diff_quality" are both also set, this will override the auto-calculated value.

Example
10
Numberoptional
Restores Health: Goldhealth_gold

Amount of health consuming this item restores when it is gold quality. If "health" and "diff_quality" are both also set, this will override the auto-calculated value.

Example
10
Numberoptional
Restores Health: Osmiumhealth_osmium

Amount of health consuming this item restores when it is osmium quality. If "health" and "diff_quality" are both also set, this will override the auto-calculated value.

Example
10
Numberoptional
Restores Energy: Baseenergy

Amount of energy consuming this item restores when it has no quality. Only shown if the corresponding health value would be shown.

Example
10
Numberoptional
Restores Energy: Bronzeenergy_bronze

Amount of energy consuming this item restores when it is bronze quality. If "energy" and "diff_quality" are both also set, this will override the auto-calculated value. Only shown if the corresponding health value would be shown.

Unknownoptional
Restores Energy: Silverenergy_silver

Amount of energy consuming this item restores when it is silver quality. If "energy" and "diff_quality" are both also set, this will override the auto-calculated value. Only shown if the corresponding health value would be shown.

Example
10
Numberoptional
Restores Energy: Goldenergy_gold

Amount of energy consuming this item restores when it is gold quality. If "energy" and "diff_quality" are both also set, this will override the auto-calculated value. Only shown if the corresponding health value would be shown.

Example
10
Numberoptional
Restores Energy: Osmiumenergy_osmium

Amount of energy consuming this item restores when it is osmium quality. If "energy" and "diff_quality" are both also set, this will override the auto-calculated value. Only shown if the corresponding health value would be shown.

Example
10
Numberoptional
Journal IDjournal_id

Position in the journal that this item appears in. Counting starts from "01" (zero padded) left-right top-bottom.

Example
09
Stringsuggested
Categoriescategory

Semicolon-separated list of additional categories this page will be added to.

Stringoptional
Can be a giant crop?giant_crop

no description

Suggested values
Yes No
Example
Yes
Stringoptional
Can sprout from wild seeds?wild_seed

no description

Suggested values
Yes No
Example
Yes
Stringoptional
Effectseffect

no description

Unknownoptional
Enchanting valueenchanting

How much fuel does this item provide while enchanting?

Example
100
Numberoptional