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:Plantlookup/DF2014"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Fixing the alcohol and millable lookups to return "" instead of "None" - this will let the Crop template know it shouldn't show lines for alcohol and powder)
m (revert - the problem is in PlantInfo/DF2014)
 
(36 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly>{{Crop/1|
+
<includeonly>{{PlantInfo/DF2014|
color={{tagvalue|{{{1}}}|PICKED_COLOR}}|
+
color={{tagvalue|{{{1}}}|PICKED_COLOR|notfound=2:0:0}}|
 +
pref={{prefstring|{{{1}}}}}|
 
seed_color={{tagentry|{{{1}}}|SEED|3:5}}|
 
seed_color={{tagentry|{{{1}}}|SEED|3:5}}|
character={{char|{{tagvalue|{{{1}}}|PICKED_TILE}}}}|
+
graphic={{{graphic|}}}|
 +
seedimage={{{seedimage|}}}|
 +
character={{char|{{tagvalue|{{{1}}}|PICKED_TILE|notfound=τ}}}}|
 
name={{ucfirst:{{tagvalue|{{{1}}}|NAME|notfound={{tagvalue|{{{1}}}|ALL_NAMES}}}}}}|
 
name={{ucfirst:{{tagvalue|{{{1}}}|NAME|notfound={{tagvalue|{{{1}}}|ALL_NAMES}}}}}}|
seed={{ucfirst:{{tagentry|{{{1}}}|SEED|2}}}}|
+
seed={{ucfirst:{{tagentry|{{{1}}}|SEED|2|notfound=}}}}|
 
edible={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}|
 
edible={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}|
 
cookable={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE}}|EDIBLE_COOKED}}|Yes|{{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}}}|
 
cookable={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE}}|EDIBLE_COOKED}}|Yes|{{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}}}|
 
alcohol={{#if:{{tag|{{{1}}}|DRINK}}|{{ucfirst:{{#df_statedesc:{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|{{tagentry|{{{1}}}|DRINK|2}}:PLANT_ALCOHOL_TEMPLATE}}|NAME|LIQUID}}}}|}}|
 
alcohol={{#if:{{tag|{{{1}}}|DRINK}}|{{ucfirst:{{#df_statedesc:{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|{{tagentry|{{{1}}}|DRINK|2}}:PLANT_ALCOHOL_TEMPLATE}}|NAME|LIQUID}}}}|}}|
millable={{#if:{{tag|{{{1}}}|MILL}}|{{ucfirst:{{#df_statedesc:{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|{{tagentry|{{{1}}}|MILL|2}}:PLANT_POWDER_TEMPLATE}}|NAME|POWDER}}}}|}}|
+
mill={{#if:{{tag|{{{1}}}|MILL}}|{{ucfirst:{{#df_statedesc:{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|{{tagentry|{{{1}}}|MILL|2}}:PLANT_POWDER_TEMPLATE}}|NAME|POWDER}}}}|}}|
 +
oil={{ucfirst:{{#df_statedesc:{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|OIL:PLANT_OIL_TEMPLATE}}|NAME|LIQUID}}|}}|
 +
extract={{ucfirst:{{#df_statedesc:{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|EXTRACT:PLANT_EXTRACT_TEMPLATE}}|NAME|LIQUID}}|}}|
 +
process={{#if:{{tag|{{{1}}}|THREAD}}|Thread}}|
 +
paper={{ucfirst:{{#df_statedesc:{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|THREAD:THREAD_PLANT_TEMPLATE}}|NAME|PRESSED}}|}}|
 +
fruit={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|FRUIT:FRUIT_TEMPLATE}}|STOCKPILE_PLANT_GROWTH}}|{{ucfirst:{{tagentry|{{#df_raw:{{{1}}}|GROWTH|FRUIT}}|GROWTH_NAME|1|notfound=}}}}|}}|
 +
fruit_edible={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|FRUIT:FRUIT_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}|
 +
fruit_cookable={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|FRUIT:FRUIT_TEMPLATE}}|EDIBLE_COOKED}}|Yes}}|
 +
leaf={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|LEAF:LEAF_TEMPLATE}}|STOCKPILE_PLANT_GROWTH}}|{{ucfirst:{{tagentry|{{#df_raw:{{{1}}}|GROWTH|LEAVES}}|GROWTH_NAME|1|notfound=}}}}|}}|
 +
leaf_edible={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|LEAF:LEAF_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}|
 +
leaf_cookable={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|LEAF:LEAF_TEMPLATE}}|EDIBLE_COOKED}}|Yes}}|
 +
flower={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|FLOWER:FLOWER_TEMPLATE}}|STOCKPILE_PLANT_GROWTH}}|{{ucfirst:{{tagentry|{{#df_raw:{{{1}}}|GROWTH|FLOWERS}}|GROWTH_NAME|1|notfound=}}}}|}}|
 +
flower_edible={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|FLOWER:FLOWER_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}|
 +
flower_cookable={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|FLOWER:FLOWER_TEMPLATE}}|EDIBLE_COOKED}}|Yes}}|
 +
heart={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|HEART:FRUIT_TEMPLATE}}|STOCKPILE_PLANT_GROWTH}}|{{ucfirst:{{tagentry|{{#df_raw:{{{1}}}|GROWTH|HEART}}|GROWTH_NAME|1|notfound=}}}}|}}|
 +
heart_edible={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|HEART:FRUIT_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}|
 +
heart_cookable={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|HEART:FRUIT_TEMPLATE}}|EDIBLE_COOKED}}|Yes}}|
 +
bulb={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|BULB:FRUIT_TEMPLATE}}|STOCKPILE_PLANT_GROWTH}}|{{ucfirst:{{tagentry|{{#df_raw:{{{1}}}|GROWTH|BULB}}|GROWTH_NAME|1|notfound=}}}}|}}|
 +
bulb_edible={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|BULB:FRUIT_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}|
 +
bulb_cookable={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|BULB:FRUIT_TEMPLATE}}|EDIBLE_COOKED}}|Yes}}|
 +
bud={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|BUD:BUD_TEMPLATE}}|STOCKPILE_PLANT_GROWTH}}|{{ucfirst:{{tagentry|{{#df_raw:{{{1}}}|GROWTH|BUDS}}|GROWTH_NAME|1|notfound=}}}}|}}|
 +
bud_edible={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|BUD:BUD_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}|
 +
bud_cookable={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|BUD:BUD_TEMPLATE}}|EDIBLE_COOKED}}|Yes}}|
 +
pod={{ucfirst:{{tagentry|{{#df_raw:{{{1}}}|GROWTH|POD}}|GROWTH_NAME|1|notfound=}}}}|
 +
seed_edible={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|SEED:SEED_TEMPLATE}}|EDIBLE_RAW}}|Yes|No}}|
 +
seed_cookable={{#if:{{tag|{{#df_raw:{{{1}}}|USE_MATERIAL_TEMPLATE|SEED:SEED_TEMPLATE}}|EDIBLE_COOKED}}|Yes}}|
 
spring={{tag|{{{1}}}|SPRING}}|
 
spring={{tag|{{{1}}}|SPRING}}|
 
summer={{tag|{{{1}}}|SUMMER}}|
 
summer={{tag|{{{1}}}|SUMMER}}|
Line 17: Line 45:
 
wet={{tag|{{{1}}}|WET}}|
 
wet={{tag|{{{1}}}|WET}}|
 
dry={{tag|{{{1}}}|DRY}}|
 
dry={{tag|{{{1}}}|DRY}}|
 +
underground={{tagvalue|{{{1}}}|UNDERGROUND_DEPTH|notfound=}}|
 
uses={{{uses|}}}|
 
uses={{{uses|}}}|
other_products={{{other_products|}}}}}</includeonly><noinclude>[[Category:raw templates]]</noinclude>
+
other_products={{{other_products|}}}|
 +
wiki={{{wiki|}}}}}{{interwiki|{{PAGENAME}}}}
 +
</includeonly><noinclude>[[Category:raw templates]]</noinclude>

Latest revision as of 15:28, 15 June 2024