Difference between revisions of "Template:PlantInfobox"
FeralKitty (talk | contribs) (drop the plant_type field and just go back to Base value.) |
FeralKitty (talk | contribs) (New Infobox style) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>< | + | <includeonly><table style="width:200px; padding:0.3em; float:right; margin-left:15px; margin-bottom:8px; border:1px solid #A3B1BF; background:#f5faff; text-align:left; font-size:95%; line-height:1.5em;"><!-- |
− | + | --><th colspan="2" style="text-align:center; background:#cee0f2; padding:0.3em; font-size:1.1em;">'''{{{title}}}'''</th><!-- | |
− | + | --><tr><td align="center" colspan="2">[[Image:{{{image}}}|center|184px|{{{title}}}]]</td></tr><!-- | |
− | {{#if:{{{produce_plural|}}}| | + | -->{{#if:{{{produce_plural|}}}|<tr><td style="background:#cee0f2">'''Produces:'''</td><td style="background:#dceef9">{{{produce_plural}}}</td></tr>}}<!-- |
− | + | --><tr><td>'''Level:'''</td><td>{{{level}}}</td></tr><!-- | |
− | + | --><tr><td style="background:#cee0f2">'''Base value:'''</td><td style="background:#dceef9">{{{plant_value}}}</td></tr><!-- | |
− | + | --><tr><td>'''[[Fertilizer]]:'''</td><td>{{{fertilizer|N/A}}}</td></tr><!-- | |
− | + | --><tr><td style="background:#cee0f2">'''Seed price:'''</td><td style="background:#dceef9">{{{seed_price}}}</td></tr><!-- | |
− | + | -->{{#if:{{{produce_singular|}}}|<tr><td>'''{{{produce_singular}}} price:'''</td><td>{{{produce_price}}}</td></tr>}}<!-- | |
− | + | --></table></includeonly><noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#if:{{{produce_singular|}}}| | ||
− | |||
− | |||
− | |||
− | </ | ||
{{PlantInfobox/doc}} | {{PlantInfobox/doc}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 08:36, 14 July 2009
- This documentation is transcluded from Template:PlantInfobox/doc
Contents
Usage
This template displays an Infobox for a (Classic, Trouble in Paradise, or Pocket Paradise) plant, such as a flower, bush, tree, or weed.
The Infobox uses the following parameters:
- image
- Image filename for the plant
- title
- Name of the plant (and the heading/caption for the image)
- level
- Level of the plant
- plant_value
- Base value of the plant
- seed_price
- The buy/sell price of the plant's seed
- fertilizer
- Color of fertilizer to use on this plant, if any (optional). Should be supplied for flowers, vegetables, bushes, and trees. Defaults to N/A if omitted.
- produce_singular
- Singular spelling of this plant's produce, if any (optional). Should be supplied for vegetables, bushes, and trees.
- produce_plural
- Plural spelling of this plant's produce, if any (optional). Should be supplied for bushes and trees.
- produce_price
- The buy/sell price of this plant's produce, if any (optional). Should be supplied for vegetables, bushes, and trees.
Notes
- This template takes the place of FlowerInfobox, WaterFlowerInfobox, BushInfobox, TreeInfobox, and WeedInfobox, however, it does not transclude any categories, as each of those did.
- The old templates' value has been clarified to plant_value as the old field was prone to contributors accidentally entering seed or produce values, instead of plant values.
Examples of different uses
A weed
Selling weeds costs money -- Costalot charges you to take them off your hands, instead of paying you to buy them from you.
A weed Infobox shows the level, a (negative) plant value, and the cost/value of a seed:
{{PlantInfobox | title = Poison Ivy | image = Poison_Ivy.jpg | level = 8 | plant_value = -100 coins | seed_price = 22 coins }}
Poison Ivy | |
---|---|
Level: | 8 |
Base value: | -100 coins |
Fertilizer: | N/A |
Seed price: | 22 coins |
A flower
A flower Infobox shows the fertilizer color, in addition to flower level, plant value, and cost/value of a seed.
{{PlantInfobox | title = Daisy | image = Daisy.png | plant_value= 10 coins | level = 1 | fertilizer = Yellow | seed_price = 2 coins }}
Daisy | |
---|---|
Level: | 1 |
Base value: | 10 coins |
Fertilizer: | Yellow |
Seed price: | 2 coins |
A vegetable
A vegetable Infobox shows the cost/value of the produce, in addition to fertilizer color, level, plant value, and cost/value of a seed:
{{PlantInfobox | title = Chili | image = Chili.jpg | produce_singular = Chili | level = 4 | plant_value = 100 coins | fertilizer = Red | seed_price = 22 coins | produce_price = 100 coins }}
Chili | |
---|---|
Level: | 4 |
Base value: | 100 coins |
Fertilizer: | Red |
Seed price: | 22 coins |
Chili price: | 100 coins |
A bush or tree
A bush or tree Infobox shows all possible information. A plural produce name is supplied to display what the bush or tree repeatedly produces:
{{PlantInfobox | title = Gooseberry bush | image = Gooseberry_bush.jpg | produce_plural = Gooseberries | produce_singular = Gooseberry | level = 5 | fertilizer = Green | seed_price = 83 coins | produce_price = 30 coins | plant_value = 330 coins }}
Gooseberry bush | |
---|---|
Produces: | Gooseberries |
Level: | 5 |
Base value: | 330 coins |
Fertilizer: | Green |
Seed price: | 83 coins |
Gooseberry price: | 30 coins |
Blank article template
Copy this code and paste it into a new blank page:
__NOTOC__ __NOEDITSECTION__ =Classic= <div class="pii_plant_content_container"><div class="pii_plant_classic_content"> {{PlantInfobox | title = ??? | image = Unknown.png | produce_plural = ??? | produce_singular = ??? | level = ??? | plant_value = ??? coins | seed_price = ??? coins | fertilizer = ??? | produce_price = ??? coins }} You can purchase ??? seeds or ??? from [[General Store|Costolot's General Store]], or try talking with [[Characters#Seedos|Seedos]] to get a ??? seed. In-game description from Encyclopedia goes here. == Surface terrain requirements == Plant needs to be planted in ???. == How best to grow it == <!-- Include any unique fertilizer method that this flower might have --> Use 3 applications of ??? [[fertilizer]] immediately after planting it, for maximum effect. == Uses == <div class="pii_species_requirements"> === ??? seed uses === * ??? === ??? uses === * ??? === ??? uses === <!-- Transformed item uses --> * ??? === ??? uses === * ??? </div> {{Clear}}</div></div> {{Plants-Classic}} =TiP - Standard= <div class="pii_plant_content_container"><div class="pii_plant_tipStd_content"> {{PlantInfobox | title = ??? | image = Unknown.png | produce_plural = ??? | produce_singular = ??? | level = ??? | plant_value = ??? coins | seed_price = ??? coins | fertilizer = ??? | produce_price = ??? coins }} You can purchase ??? seeds or ??? from [[General Store|Costolot's General Store]], use your [[seed pouch]], or try talking with [[Characters#Seedos|Seedos]] to get a ??? seed. In-game description from Encyclopedia goes here. == Surface terrain requirements == Plant needs to be planted in ???. == How best to grow it == <!-- Include any unique fertilizer method that this flower might have --> Use 3 applications of ??? [[fertilizer]] immediately after planting it, for maximum effect. == Uses == <div class="pii_species_requirements"> === ??? seed uses === * ??? === ??? uses === * ??? === ??? uses === <!-- Transformed item uses --> * ??? === ??? uses === * ??? </div> {{Clear}}</div></div> {{Plants-TroubleInParadise}} =TiP - Just for Fun= <div class="pii_plant_content_container"><div class="pii_plant_tipJff_content"> {{PlantInfobox | title = ??? | image = Unknown.png | produce_plural = ??? | produce_singular = ??? | level = ??? | plant_value = ??? coins | seed_price = ??? coins | fertilizer = ??? | produce_price = ??? coins }} You can purchase ??? seeds or ??? from [[General Store|Costolot's General Store]], use your [[seed pouch]], or try talking with [[Characters#Seedos|Seedos]] to get a ??? seed. In-game description from Encyclopedia goes here. == Surface terrain requirements == Plant needs to be planted in ???. == How best to grow it == <!-- Include any unique fertilizer method that this flower might have --> Use 3 applications of ??? [[fertilizer]] immediately after planting it, for maximum effect. == Uses == <div class="pii_species_requirements"> === ??? seed uses === * ??? === ??? uses === * ??? === ??? uses === <!-- Transformed item uses --> * ??? === ??? uses === * ??? </div> {{Clear}}</div></div> {{Plants-TroubleInParadise}} = Pocket Paradise = <div class="pii_plant_content_container"><div class="pii_plant_pp_content"> {{PlantInfobox | title = ??? | image = Unknown.png | produce_plural = ??? | produce_singular = ??? | level = ??? | plant_value = ??? coins | seed_price = ??? coins | fertilizer = ??? | produce_price = ??? coins }} You can purchase ??? seeds or ??? from [[General Store|Costolot's General Store]], or try talking with [[Characters#Seedos|Seedos]] to get a ??? seed. In-game description from Encyclopedia goes here. == Surface terrain requirements == Plant needs to be planted in ???. == How best to grow it == <!-- Include any unique fertilizer method that this flower might have --> Use 3 applications of ??? [[fertilizer]] immediately after planting it, for maximum effect. == Uses == <div class="pii_species_requirements"> === ??? seed uses === * ??? === ??? uses === * ??? === ??? uses === <!-- Transformed item uses --> * ??? === ??? uses === * ??? </div> {{Clear}}</div></div> {{Plants-PocketParadise}} <headertabs/>