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:Plant table row"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(improved how product and product values are put in, abbreviated some parameters to reduce clutter)
 
(11 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
|-
 
|-
 
|style="background:black;text-align:center;"|{{tile|{{{tile|?}}}|{{{color|7:0:1}}}}}
 
|style="background:black;text-align:center;"|{{tile|{{{tile|?}}}|{{{color|7:0:1}}}}}
|[[{{{name|}}}|{{{alt|{{{name|}}}}}}]]<sup>{{{super|}}}</sup>
+
|style="text-align:center;"|{{{graphic|}}}
|{{{seasons|{{seasons3|1|1|1|1}}}}}
+
|style="font-size:85%;"|[[{{{name|}}}|{{{alt|{{{name|}}}}}}]]<sup>{{{super|}}}</sup>
 
|
 
|
 
{|align="center" width="100%"
 
{|align="center" width="100%"
|{{BiomeColor|{{{biome|}}}}}{{#if:{{{biome2|}}}|<br />{{BiomeColor|{{{biome2|}}}}}}}{{#if:{{{biome3|}}}|<br />{{BiomeColor|{{{biome3|}}}}}}}{{#if:{{{biome4|}}}|<br />{{BiomeColor|{{{biome4|}}}}}}}{{#if:{{{biome5|}}}|<br />{{BiomeColor|{{{biome5|}}}}}}}{{#if:{{{biome6|}}}|<br />{{BiomeColor|{{{biome6|}}}}}}}{{#if:{{{biome7|}}}|<br />{{BiomeColor|{{{biome7|}}}}}}}{{#if:{{{biome8|}}}|<br />{{BiomeColor|{{{biome8|}}}}}}}{{#if:{{{biome9|}}}|<br />{{BiomeColor|{{{biome9|}}}}}}}
+
|style="font-size:85%;"|{{BiomeColor|{{{biome|}}}}}{{#if:{{{biome2|}}}|<br />{{BiomeColor|{{{biome2|}}}}}{{#if:{{{biome3|}}}|<br />{{BiomeColor|{{{biome3|}}}}}{{#if:{{{biome4|}}}|<br />{{BiomeColor|{{{biome4|}}}}}{{#if:{{{biome5|}}}|<br />{{BiomeColor|{{{biome5|}}}}}{{#if:{{{biome6|}}}|<br />{{BiomeColor|{{{biome6|}}}}}{{#if:{{{biome7|}}}|<br />{{BiomeColor|{{{biome7|}}}}}{{#if:{{{biome8|}}}|<br />{{BiomeColor|{{{biome8|}}}}}{{#if:{{{biome9|}}}|<br />{{BiomeColor|{{{biome9|}}}}}}}}}}}}}}}}}}}}}
 
|-
 
|-
 
|{{#switch:{{{dry}}}|yes|y={{wetdry||dry}}|no|n={{wetdry|wet|}}|both|b={{wetdry|wet|dry}}|{{wetdry||}}}}
 
|{{#switch:{{{dry}}}|yes|y={{wetdry||dry}}|no|n={{wetdry|wet|}}|both|b={{wetdry|wet|dry}}|{{wetdry||}}}}
 +
|-
 +
|
 +
{{{seasons|{{seasons|1|1|1|1}}}}}
 
|}
 
|}
|{{aligncolor|{{{align|All}}}}}
+
|style="font-size:85%;"|{{aligncolor|{{{align|All}}}}}
|{{{v|2}}}☼
+
|{{{value|2}}}☼
|{{#if:{{{d|}}}||data-sort-value="—"}}|{{{d|''None''}}}
+
|style="font-size:85%;background:{{#if:{{{drink|}}}|rgb(144, 255, 144)|rgb(255, 144, 144)}}" {{#if:{{{drink|}}}||data-sort-value="—"}}|{{{drink|''None''}}}
|{{#if:{{{d|}}}|{{{dv|10}}}☼|—}}
+
|style="font-size:85%;"|{{#if:{{{drink|}}}|{{{drinkv|10}}}☼|—}}
|style="background:{{#switch:{{{eat|n}}}|y=rgb(144, 255, 144)|n=rgb(255, 144, 144)|#default=rgb(238, 220, 130)}}"|{{#switch:{{{eat|n}}}|y=Yes|n=No|p=Pr<sup>3</sup>|#default={{{eat|}}}}}
+
|style="font-size:85%;background:{{#switch:{{{eat|n}}}|y=rgb(144, 255, 144)|n=rgb(255, 144, 144)|#default=rgb(238, 220, 130)}}"|{{#switch:{{{eat|n}}}|y=Yes|n=No|p=Pr<sup>3</sup>|#default={{{eat|}}}}}
|style="background:{{#switch:{{{cook|n}}}|y=rgb(144, 255, 144)|n=rgb(255, 144, 144)|#default=rgb(238, 220, 130)}};"|{{#switch:{{{cook|n}}}|y=Yes|n=No|p=Pr<sup>3</sup>|{{{cook|}}}}}
+
|style="font-size:85%;background:{{#switch:{{{cook|n}}}|y=rgb(144, 255, 144)|n=rgb(255, 144, 144)|#default=rgb(238, 220, 130)}};"|{{#switch:{{{cook|n}}}|y=Yes|n=No|p=Pr<sup>3</sup>|{{{cook|}}}}}
|{{{p1|''None''}}}{{#if:{{{p2|}}}|<br />{{{p2|}}}|}}{{#if:{{{p3|}}}|<br />{{{p3|}}}|}}{{#if:{{{p4|}}}|<br />{{{p4|}}}|}}{{#if:{{{p5|}}}|<br />{{{p5|}}}|}}{{#if:{{{p6|}}}|<br />{{{p6|}}}|}}{{#if:{{{p7|}}}|<br />{{{p7|}}}|}}{{#if:{{{p8|}}}|<br />{{{p8|}}}|}}{{#if:{{{p9|}}}|<br />{{{p9|}}}|}}
+
|
|{{#if:{{{pv1|}}}|{{{pv1|}}}☼|—}}{{#if:{{{pv2|}}}|<br />{{#if:{{{pv2|}}}|{{{pv2|}}}☼|—}}|}}{{#if:{{{pv3|}}}|<br />{{#if:{{{pv3|}}}|{{{pv3|}}}☼|—}}|}}{{#if:{{{pv4|}}}|<br />{{#if:{{{pv4|}}}|{{{pv4|}}}☼|—}}|}}{{#if:{{{pv5|}}}|<br />{{#if:{{{pv5|}}}|{{{pv5|}}}☼|—}}|}}{{#if:{{{pv6|}}}|<br />{{#if:{{{pv6|}}}|{{{pv6|}}}☼|—}}|}}{{#if:{{{pv7|}}}|<br />{{#if:{{{pv7|}}}|{{{pv7|}}}☼|—}}|}}{{#if:{{{pv8|}}}|<br />{{#if:{{{pv8|}}}|{{{pv8|}}}☼|—}}|}}{{#if:{{{pv9|}}}|<br />{{#if:{{{pv9|}}}|{{{pv9|}}}☼|—}}|}}{{#if:{{{pv10|}}}|<br />{{#if:{{{pv10|}}}|{{{pv10|}}}☼|—}}|}}{{#if:{{{pv11|}}}|<br />{{#if:{{{pv11|}}}|{{{pv11|}}}☼|—}}|}}{{#if:{{{pv12|}}}|<br />{{#if:{{{pv12|}}}|{{{pv12|}}}☼|—}}|}}{{#if:{{{pv13|}}}|<br />{{#if:{{{pv13|}}}|{{{pv13|}}}☼|—}}|}}{{#if:{{{pv14|}}}|<br />{{#if:{{{pv14|}}}|{{{pv14|}}}☼|—}}|}}{{#if:{{{pv15|}}}|<br />{{#if:{{{pv15|}}}|{{{pv15|}}}☼|—}}|}}{{#if:{{{pv16|}}}|<br />{{#if:{{{pv16|}}}|{{{pv16|}}}☼|—}}|}}{{#if:{{{pv17|}}}|<br />{{#if:{{{pv17|}}}|{{{pv17|}}}☼|—}}|}}{{#if:{{{pv18|}}}|<br />{{#if:{{{pv18|}}}|{{{pv18|}}}☼|—}}|}}{{#if:{{{pv19|}}}|<br />{{#if:{{{pv19|}}}|{{{pv19|}}}☼|}}|}}{{#if:{{{pv20|}}}|<br />{{#if:{{{pv20|}}}|{{{pv20|}}}|}}|}}<noinclude>
+
{|style="width:100%;font-size:85%;"
 +
|{{#if:{{{p1|}}}|{{{p1|}}}
 +
{{!}}style="padding-left:1em;text-align:right;"{{!}}{{#if:{{{pv1|}}}|{{{pv1|}}}|}}
 +
{{#if:{{{p2|}}}|{{!}}-
 +
{{!}}{{{p2|}}}
 +
{{!}}style="padding-left:1em;text-align:right;"{{!}}{{#if:{{{pv2|}}}|{{{pv2|}}}|}}
 +
{{#if:{{{p3|}}}|{{!}}-
 +
{{!}}{{{p3|}}}
 +
{{!}}style="padding-left:1em;text-align:right;"{{!}}{{#if:{{{pv3|}}}|{{{pv3|}}}☼|—}}
 +
{{#if:{{{p4|}}}|{{!}}-
 +
{{!}}{{{p4|}}}
 +
{{!}}style="padding-left:1em;text-align:right;"{{!}}{{#if:{{{pv4|}}}|{{{pv4|}}}☼|—}}
 +
{{#if:{{{p5|}}}|{{!}}-
 +
{{!}}{{{p5|}}}
 +
{{!}}style="padding-left:1em;text-align:right;"{{!}}{{#if:{{{pv5|}}}|{{{pv5|}}}☼|—}}
 +
{{#if:{{{p6|}}}|{{!}}-
 +
{{!}}{{{p6|}}}
 +
{{!}}style="padding-left:1em;text-align:right;"{{!}}{{#if:{{{pv6|}}}|{{{pv6|}}}☼|—}}
 +
{{#if:{{{p7|}}}|{{!}}-
 +
{{!}}{{{p7|}}}
 +
{{!}}style="padding-left:1em;text-align:right;"{{!}}{{#if:{{{pv7|}}}|{{{pv7|}}}☼|—}}
 +
{{#if:{{{p8|}}}|{{!}}-
 +
{{!}}{{{p8|}}}
 +
{{!}}style="padding-left:1em;text-align:right;"{{!}}{{#if:{{{pv8|}}}|{{{pv8|}}}☼|—}}
 +
{{#if:{{{p9|}}}|{{!}}-
 +
{{!}}{{{p9|}}}
 +
{{!}}style="padding-left:1em;text-align:right;"{{!}}{{#if:{{{pv9|}}}|{{{pv9|}}}☼|—}}|}}|}}|}}|}}|}}|}}|}}|}}|''None''}}
 +
|}<noinclude>
 
|}
 
|}
  
Line 25: Line 55:
 
<pre>
 
<pre>
 
name=Plant article link
 
name=Plant article link
 +
graphic=Sprite (v50 only)
 
alt=Alternate label of link
 
alt=Alternate label of link
 
super=superscript next to name (optional)
 
super=superscript next to name (optional)
 
tile=plant tile
 
tile=plant tile
 
color=tile color
 
color=tile color
seasons={{seasons3|1|1|1|1}} ({{seasons3|spring|summer|autmn|winter}}, 1=active season; optional if plant is all-season)
+
seasons={{seasons|1|1|1|1}} ({{seasons|spring|summer|autmn|winter}}, 1=active season; optional if plant is all-season)
 
biome=Biome Name (see Biome tokens)
 
biome=Biome Name (see Biome tokens)
 
biome2=,biome3=,biome4=,...,biome9= (for multiple biomes)
 
biome2=,biome3=,biome4=,...,biome9= (for multiple biomes)
 
dry=wet/dry (y=dry, n=wet, b=both, not included=none)
 
dry=wet/dry (y=dry, n=wet, b=both, not included=none)
 
align=Good/Evil/Savage (not included if All)
 
align=Good/Evil/Savage (not included if All)
v=plant value
+
value=plant value
d=Plant alcohol (optional)
+
drink=Plant alcohol (optional)
dv=drink value×5 (optional)
+
drinkv=drink value×5 (optional)
 
eat=eat raw (y=yes, not included=no)
 
eat=eat raw (y=yes, not included=no)
 
cook=eat cooked (y=yes, p=processed, not included=no)
 
cook=eat cooked (y=yes, p=processed, not included=no)
 
p1={{tile||0:0:0}} product 1
 
p1={{tile||0:0:0}} product 1
p2=,p3=,p4=,...,p20= (for multiple products)
+
p2=,p3=,p4=,...,p9= (for multiple products)
 
pv1=product 1's value (if none, leave empty)
 
pv1=product 1's value (if none, leave empty)
pv2=,pv3=,pv4=,...,pv20=
+
pv2=,pv3=,pv4=,...,pv9=
  
 
Example:
 
Example:
  
 
{{plant table head}}
 
{{plant table head}}
{{plant table row|name=Plump helmet|tile=♠|color=5:0|biome=Wet Cavern|dry=b|v=4
+
{{plant table row|name=Plump helmet|tile=♠|color=5:0|biome=Wet Cavern|dry=b|value=4
   |d=Dwarven wine|dv=10|eat=y|cook=y
+
   |drink=Dwarven wine|drinkv=10|eat=y|cook=y
 
   |p1={{tile|·|4:0:1}} plump helmet spawn|pv1=1
 
   |p1={{tile|·|4:0:1}} plump helmet spawn|pv1=1
 
   }}
 
   }}
{{plant table row|name=Rope reed|super=11|tile=ƒ|color=2:0|biome=Not Freezing|dry=n|v=4
+
{{plant table row|name=Rope reed|super=11|tile=ƒ|color=2:0|biome=Not Freezing|dry=n|value=4
   |d=River spirits
+
   |drink=River spirits
 
   |p1={{tile|·|6:0:0}} rope reed seed|pv1=1
 
   |p1={{tile|·|6:0:0}} rope reed seed|pv1=1
 
   |p2={{tile|φ|7:0:0}} rope reed thread (p)|pv2=12
 
   |p2={{tile|φ|7:0:0}} rope reed thread (p)|pv2=12
 
   |p3={{tile|≈|7:0:0}} rope reed slurry (h)|pv3=2
 
   |p3={{tile|≈|7:0:0}} rope reed slurry (h)|pv3=2
 
   }}
 
   }}
{{plant table row|name=Whip vine|tile=§|color=3:1|biome=Not Freezing|dry=y|align=Savage|v=1
+
{{plant table row|name=Whip vine|tile=§|color=3:1|biome=Not Freezing|dry=y|align=Savage|value=1
   |d=Whip wine|dv=15|cook=p
+
   |drink=Whip wine|drinkv=15|cook=p
 
   |p1={{tile|·|0:0:1}} whip vine seed|pv1=1
 
   |p1={{tile|·|0:0:1}} whip vine seed|pv1=1
 
   |p2={{tile|·|3:0:1}} whip vine flour (m)|pv2=25
 
   |p2={{tile|·|3:0:1}} whip vine flour (m)|pv2=25
 
   }}
 
   }}
{{plant table row|name=Blueberry|alt=Blueberries|tile=:|color=2:0:1|biome=Any Temperate|biome2=Tundra|biome3=Taiga|dry=y|v=2
+
{{plant table row|name=Blueberry|alt=Blueberries|tile=:|color=2:0:1|biome=Any Temperate|biome2=Tundra|biome3=Taiga|dry=y|value=2
   |d=Blueberry wine|dv=10|eat=y|cook=y
+
   |drink=Blueberry wine|drinkv=10|eat=y|cook=y
 
   |p1={{tile|♠|2:0:0}} leaf|pv1=
 
   |p1={{tile|♠|2:0:0}} leaf|pv1=
 
   |p2={{tile|%|1:0:1}} fruit|pv2=2
 
   |p2={{tile|%|1:0:1}} fruit|pv2=2
Line 73: Line 104:
 
↓</pre>
 
↓</pre>
 
{{plant table head}}
 
{{plant table head}}
{{plant table row|name=Plump helmet|tile=♠|color=5:0|biome=Wet Cavern|dry=b|v=4
+
{{plant table row|name=Plump helmet|tile=♠|color=5:0|biome=Subterranean Water|dry=b|value=4
   |d=Dwarven wine|dv=10|eat=y|cook=y
+
   |drink=Dwarven wine|drinkv=10|eat=y|cook=y
 
   |p1={{tile|·|4:0:1}} plump helmet spawn|pv1=1
 
   |p1={{tile|·|4:0:1}} plump helmet spawn|pv1=1
 
   }}
 
   }}
{{plant table row|name=Rope reed|super=11|tile=ƒ|color=2:0|biome=Not Freezing|dry=n|v=4
+
{{plant table row|name=Rope reed|super=11|tile=ƒ|color=2:0|biome=Not Freezing|dry=n|value=4
   |d=River spirits
+
   |drink=River spirits
 
   |p1={{tile|·|6:0:0}} rope reed seed|pv1=1
 
   |p1={{tile|·|6:0:0}} rope reed seed|pv1=1
 
   |p2={{tile|φ|7:0:0}} rope reed thread (p)|pv2=12
 
   |p2={{tile|φ|7:0:0}} rope reed thread (p)|pv2=12
 
   |p3={{tile|≈|7:0:0}} rope reed slurry (h)|pv3=2
 
   |p3={{tile|≈|7:0:0}} rope reed slurry (h)|pv3=2
 
   }}
 
   }}
{{plant table row|name=Whip vine|tile=§|color=3:1|biome=Not Freezing|dry=y|align=Savage|v=1
+
{{plant table row|name=Whip vine|tile=§|color=3:1|biome=Not Freezing|dry=y|align=Savage|value=1
   |d=Whip wine|dv=15|cook=p
+
   |drink=Whip wine|drinkv=15|cook=p
 
   |p1={{tile|·|0:0:1}} whip vine seed|pv1=1
 
   |p1={{tile|·|0:0:1}} whip vine seed|pv1=1
 
   |p2={{tile|·|3:0:1}} whip vine flour (m)|pv2=25
 
   |p2={{tile|·|3:0:1}} whip vine flour (m)|pv2=25
 
   }}
 
   }}
{{plant table row|name=Blueberry|alt=Blueberries|tile=:|color=2:0:1|biome=Any Temperate|biome2=Tundra|biome3=Taiga|dry=y|v=2
+
{{plant table row|name=Blueberry|alt=Blueberries|tile=:|color=2:0:1|biome=Any Temperate|biome2=Tundra|biome3=Taiga|dry=y|value=2
   |d=Blueberry wine|dv=10|eat=y|cook=y
+
   |drink=Blueberry wine|drinkv=10|eat=y|cook=y
 
   |p1={{tile|♠|2:0:0}} leaf|pv1=
 
   |p1={{tile|♠|2:0:0}} leaf|pv1=
   |p2={{tile|%|1:0:1}} fruit|p2=2
+
   |p2={{tile|%|1:0:1}} fruit|pv2=2
 
   |p3={{tile|♣|7:0:1}} flower|pv3=
 
   |p3={{tile|♣|7:0:1}} flower|pv3=
 
   |p4={{tile|·|0:0:1}} seed|pv4=1
 
   |p4={{tile|·|0:0:1}} seed|pv4=1

Latest revision as of 01:54, 16 February 2023

Tile Graphic Name Biome
& seasons
Align Value Drink Drink
value1
Eat Cook2 Product(s)5
& value
? [[|]]

None

Wet Dry
Spring Summer Autumn Winter
All 2☼ None No No
None

Use[edit]

name=Plant article link
graphic=Sprite (v50 only)
alt=Alternate label of link
super=superscript next to name (optional)
tile=plant tile
color=tile color
seasons={{seasons|1|1|1|1}} ({{seasons|spring|summer|autmn|winter}}, 1=active season; optional if plant is all-season)
biome=Biome Name (see Biome tokens)
biome2=,biome3=,biome4=,...,biome9= (for multiple biomes)
dry=wet/dry (y=dry, n=wet, b=both, not included=none)
align=Good/Evil/Savage (not included if All)
value=plant value
drink=Plant alcohol (optional)
drinkv=drink value×5 (optional)
eat=eat raw (y=yes, not included=no)
cook=eat cooked (y=yes, p=processed, not included=no)
p1={{tile||0:0:0}} product 1
p2=,p3=,p4=,...,p9= (for multiple products)
pv1=product 1's value (if none, leave empty)
pv2=,pv3=,pv4=,...,pv9=

Example:

{{plant table head}}
{{plant table row|name=Plump helmet|tile=♠|color=5:0|biome=Wet Cavern|dry=b|value=4
  |drink=Dwarven wine|drinkv=10|eat=y|cook=y
  |p1={{tile|·|4:0:1}} plump helmet spawn|pv1=1
  }}
{{plant table row|name=Rope reed|super=11|tile=ƒ|color=2:0|biome=Not Freezing|dry=n|value=4
  |drink=River spirits
  |p1={{tile|·|6:0:0}} rope reed seed|pv1=1
  |p2={{tile|φ|7:0:0}} rope reed thread (p)|pv2=12
  |p3={{tile|≈|7:0:0}} rope reed slurry (h)|pv3=2
  }}
{{plant table row|name=Whip vine|tile=§|color=3:1|biome=Not Freezing|dry=y|align=Savage|value=1
  |drink=Whip wine|drinkv=15|cook=p
  |p1={{tile|·|0:0:1}} whip vine seed|pv1=1
  |p2={{tile|·|3:0:1}} whip vine flour (m)|pv2=25
  }}
{{plant table row|name=Blueberry|alt=Blueberries|tile=:|color=2:0:1|biome=Any Temperate|biome2=Tundra|biome3=Taiga|dry=y|value=2
  |drink=Blueberry wine|drinkv=10|eat=y|cook=y
  |p1={{tile|♠|2:0:0}} leaf|pv1=
  |p2={{tile|%|1:0:1}} fruit|pv2=2
  |p3={{tile|♣|7:0:1}} flower|pv3=
  |p4={{tile|·|0:0:1}} seed|pv4=1
  }}
|}

↓
Tile Graphic Name Biome
& seasons
Align Value Drink Drink
value1
Eat Cook2 Product(s)5
& value
Plump helmet

Subterranean Water

Wet Dry
Spring Summer Autumn Winter
All 4☼ Dwarven wine 10☼ Yes Yes
· plump helmet spawn 1☼
ƒ Rope reed11

Not Freezing

Wet Dry
Spring Summer Autumn Winter
All 4☼ River spirits 10☼ No No
· rope reed seed 1☼
φ rope reed thread (p) 12☼
rope reed slurry (h) 2☼
§ Whip vine

Not Freezing

Wet Dry
Spring Summer Autumn Winter
Savage 1☼ Whip wine 15☼ No Pr3
· whip vine seed 1☼
· whip vine flour (m) 25☼
: Blueberries

Any Temperate
Tundra
Taiga

Wet Dry
Spring Summer Autumn Winter
All 2☼ Blueberry wine 10☼ Yes Yes
leaf
% fruit 2☼
flower
· seed 1☼

See also[edit]