v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:PlantInfo/DF2014"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(hide missing seeds)
 
(41 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
{{#if:{{{pref|}}}|{{infopref|{{{pref}}}}}}}
 
{{#if:{{{pref|}}}|{{infopref|{{{pref}}}}}}}
 
{{#if:{{{seed|}}}|{{infoheader|Seed}}
 
{{#if:{{{seed|}}}|{{infoheader|Seed}}
{{infocell|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}}} {{{seed|{{{name}}} seed}}}}}}}
+
{{infocell|{{Raw Tile|·|{{{seed_color|{{{color}}}}}}}} {{#if:{{{seedimage|}}}| / [[File:{{{seedimage}}}]]|}} {{{seed|{{{name}}} seed}}}}}}}
 +
{{infoheader|Graphic}}
 +
{{infocell|{{#if:{{{graphic|}}}|[[File:{{{graphic}}}|center]]|No graphic}}}}
 
{{infoheader|Seasons}}
 
{{infoheader|Seasons}}
 
{{infocell|{{seasons|{{{spring|}}}|{{{summer|}}}|{{{autumn|}}}|{{{winter|}}}}}}}
 
{{infocell|{{seasons|{{{spring|}}}|{{{summer|}}}|{{{autumn|}}}|{{{winter|}}}}}}}
Line 12: Line 14:
 
{{infocell|{{{alignment}}}|style=text-align:center}}}}}}
 
{{infocell|{{{alignment}}}|style=text-align:center}}}}}}
 
{{infoheader|Products}}
 
{{infoheader|Products}}
 +
{{#if:{{{alcohol|}}}|{{inforow|[[Alcohol]]|{{{alcohol}}}{{Category|Brewable}}|}}|{{!-}}}}
 +
{{#if:{{{bud|}}}|{{inforow|[[Flower|Bud]]|{{{bud}}}}}{{Category|Flowers}}|{{!-}}}}
 +
{{#if:{{{bulb|}}}|{{inforow|[[Bulb]]|{{{bulb}}}}}{{Category|Bulbs}}|{{!-}}}}
 +
{{#if:{{{extract|}}}|{{inforow|[[Extract]]|[[{{{extract}}}]]}}{{Category|Extractable}}|{{!-}}}}
 +
{{#if:{{{flower|}}}|{{inforow|[[Flower]]|{{{flower}}}}}{{Category|Flowers}}|{{!-}}}}
 
{{#if:{{{fruit|}}}|{{inforow|[[Fruit]]|{{{fruit}}}}}{{Category|Fruit}}|{{!-}}}}
 
{{#if:{{{fruit|}}}|{{inforow|[[Fruit]]|{{{fruit}}}}}{{Category|Fruit}}|{{!-}}}}
 +
{{#if:{{{heart|}}}|{{inforow|[[Flower|Heart]]|{{{heart}}}}}{{Category|Flowers}}|{{!-}}}}
 
{{#if:{{{leaf|}}}|{{inforow|[[Leaf]]|{{{leaf}}}}}{{Category|Leaves}}|{{!-}}}}
 
{{#if:{{{leaf|}}}|{{inforow|[[Leaf]]|{{{leaf}}}}}{{Category|Leaves}}|{{!-}}}}
{{#if:{{{flower|}}}|{{inforow|[[Flower]]|{{{flower}}}}}{{Category|Flowers}}|{{!-}}}}
+
{{#if:{{{oil|}}}|{{inforow|[[Oil]]|{{{oil}}}}}{{Category|Pressable}}|{{!-}}}}
 +
{{#if:{{{paper|}}}|{{inforow|[[Paper]]|{{{paper}}}}}{{Category|Papers}}|{{!-}}}}
 
{{#if:{{{pod|}}}|{{inforow|[[Pod]]|{{{pod}}}}}{{Category|Pods}}|{{!-}}}}
 
{{#if:{{{pod|}}}|{{inforow|[[Pod]]|{{{pod}}}}}{{Category|Pods}}|{{!-}}}}
{{#if:{{{alcohol|}}}|{{inforow|[[Alcohol]]|{{{alcohol}}}{{Category|Brewable}}|}}|{{!-}}}}
 
 
{{#if:{{{mill|}}}|{{inforow|[[Powder]]|{{{mill}}}|}}{{Category|Millable}}|{{!-}}}}
 
{{#if:{{{mill|}}}|{{inforow|[[Powder]]|{{{mill}}}|}}{{Category|Millable}}|{{!-}}}}
{{#if:{{{oil|}}}|{{inforow|[[Oil]]|{{{oil}}}}}{{Category|Pressable}}|{{!-}}}}
 
 
{{#if:{{{process|}}}|{{inforow|[[Thresher|Processed to]]|[[{{{process}}}]]|}}{{Category|Processable}}|{{!-}}}}
 
{{#if:{{{process|}}}|{{inforow|[[Thresher|Processed to]]|[[{{{process}}}]]|}}{{Category|Processable}}|{{!-}}}}
 
{{#if:{{{other_products|}}}|{{infocell|{{{other_products}}}}}{{Category|Other products}}|{{!-}}}}
 
{{#if:{{{other_products|}}}|{{infocell|{{{other_products}}}}}{{Category|Other products}}|{{!-}}}}
Line 31: Line 38:
 
{{#if:{{{flower_edible|}}}|{{inforow|[[Food|Edible]]|{{{flower_edible}}}}}}}
 
{{#if:{{{flower_edible|}}}|{{inforow|[[Food|Edible]]|{{{flower_edible}}}}}}}
 
{{#if:{{{flower_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{flower_cookable}}}}}}}|{{!-}}}}
 
{{#if:{{{flower_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{flower_cookable}}}}}}}|{{!-}}}}
 +
{{#if:{{{bud|}}}|{{infoheader|Bud Properties}}
 +
{{#if:{{{bud_edible|}}}|{{inforow|[[Food|Edible]]|{{{bud_edible}}}}}}}
 +
{{#if:{{{bud_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{bud_cookable}}}}}}}|{{!-}}}}
 +
{{#if:{{{bulb|}}}|{{infoheader|Bulb Properties}}
 +
{{#if:{{{bulb_edible|}}}|{{inforow|[[Food|Edible]]|{{{bulb_edible}}}}}}}
 +
{{#if:{{{bulb_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{bulb_cookable}}}}}}}|{{!-}}}}
 
{{#if:{{{fruit|}}}|{{infoheader|Fruit Properties}}
 
{{#if:{{{fruit|}}}|{{infoheader|Fruit Properties}}
 
{{#if:{{{fruit_edible|}}}|{{inforow|[[Food|Edible]]|{{{fruit_edible}}}}}}}
 
{{#if:{{{fruit_edible|}}}|{{inforow|[[Food|Edible]]|{{{fruit_edible}}}}}}}
 
{{#if:{{{fruit_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{fruit_cookable}}}}}}}|{{!-}}}}
 
{{#if:{{{fruit_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{fruit_cookable}}}}}}}|{{!-}}}}
{{#if:{{{seed|}}}|{{infoheader|Seed Properties}}{{Category|Crops}}
+
{{#if:{{{heart|}}}|{{infoheader|Heart Properties}}
 +
{{#if:{{{heart_edible|}}}|{{inforow|[[Food|Edible]]|{{{heart_edible}}}}}}}
 +
{{#if:{{{heart_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{heart_cookable}}}}}}}|{{!-}}}}
 +
{{#if:{{{seed|}}}|{{infoheader|Seed Properties}}
 
{{#if:{{{seed_edible|}}}|{{inforow|[[Food|Edible]]|{{{seed_edible}}}}}}}
 
{{#if:{{{seed_edible|}}}|{{inforow|[[Food|Edible]]|{{{seed_edible}}}}}}}
{{#if:{{{seed_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{seed_cookable}}}}}}}|{{!-}}{{Category|Shrubs}}}}
+
{{#if:{{{seed_cookable|}}}|{{inforow|[[Kitchen|Cookable]]|{{{seed_cookable}}}}}}}|{{!-}}}}
 
{{#if:{{{uses|}}}|{{infoheader|Uses}}
 
{{#if:{{{uses|}}}|{{infoheader|Uses}}
 
{{infocell|{{{uses}}}}}}}
 
{{infocell|{{{uses}}}}}}}
{{#ifexpr:{{#if:{{{wiki|}}}|1|0}} and {{#ifeq:{{{wiki|}}}|no|0|1}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1=[[wikipedia:{{#ifeq:{{{wiki|}}}|yes|{{{name}}}|{{{wiki|}}}}}|Wikipedia article]]}}|{{!-}}}}
+
{{#ifeq:{{{wiki|}}}|no|{{!-}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1=[[wikipedia:{{#if:{{{wiki|}}}|{{{wiki|}}}|{{{name}}}}}|Wikipedia article]]}}|{{!-}}}}
 
{{infoend}}
 
{{infoend}}
 +
{{#if:{{{seed|}}}|{{Category|Crops}}|{{Category|Shrubs}}}}
 
{{#if:{{{spring|}}}|{{Category|Spring plants}}}}
 
{{#if:{{{spring|}}}|{{Category|Spring plants}}}}
 
{{#if:{{{summer|}}}|{{Category|Summer plants}}}}
 
{{#if:{{{summer|}}}|{{Category|Summer plants}}}}
 
{{#if:{{{autumn|}}}|{{Category|Autumn plants}}}}
 
{{#if:{{{autumn|}}}|{{Category|Autumn plants}}}}
 
{{#if:{{{winter|}}}|{{Category|Winter plants}}}}
 
{{#if:{{{winter|}}}|{{Category|Winter plants}}}}
{{#ifeq:{{{habitat|}}}|Subterranean|{{Category|Subterranean plants}}|{{Category|Surface plants}}}}
+
{{#if:{{{underground|}}}|{{Category|Subterranean plants}}|{{Category|Surface plants}}}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 10:28, 28 April 2024