Difference between revisions of "User:Xenocidic/sandbox"
From PinataIsland.info, the Viva Piñata wiki
m (copy Template:PlantInfobox to test categorization based on values) |
(an example of how we could use the infobox to automagically categorize the plant) |
||
Line 4: | Line 4: | ||
{{#if:{{{produce_plural|}}}|{{!}}- | {{#if:{{{produce_plural|}}}|{{!}}- | ||
{{!}} '''Produces''' {{!}}{{!}} {{{produce_plural}}}}}{{{{#if:{{{produce_plural|}}}|1x|void}}| | {{!}} '''Produces''' {{!}}{{!}} {{{produce_plural}}}}}{{{{#if:{{{produce_plural|}}}|1x|void}}| | ||
+ | }} | ||
+ | |- | ||
+ | | '''Type''' | ||
+ | | {{#switch: {{lc:{{{type|unknown}}}}} | ||
+ | | tree = Tree {{Category-Plants-Tree}} | ||
+ | | bush = Bush {{Category-Plants-Bush}} | ||
+ | | flower = Flower {{Category-Plants-Flower}} | ||
+ | | weed = Weed {{Category-Plants-Weed}} | ||
+ | | vegetable = Vegetable {{Category-Plants-Vegetable}} | ||
+ | | unknown = Unknown {{Category-Plants}} | ||
}} | }} | ||
|- | |- |
Revision as of 09:58, 22 August 2008
[[Image:{{{image}}}|center|thumb|{{{title}}}]] | |
Type | Unknown Template:Category-Plants |
Level | {{{level}}} |
Base value | {{{plant_value}}} |
Seed price | {{{seed_price}}} |