Difference between revisions of "Template:VariableFoodIngredients"

From Salem Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>|-
+
<includeonly>
 +
|-
 
! style="color:white; font-size:1.4em" | '''Healing:'''
 
! style="color:white; font-size:1.4em" | '''Healing:'''
 
|-
 
|-
 
|
 
|
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding=10px; vertical-align:bottom; text-align:center;"
+
{| style="width:100%; border:black 2px solid; background:#efebe5; padding=10px; vertical-align:bottom; text-align:center;"
 
!
 
!
 
! style="width:18%" |[[Blood]]
 
! style="width:18%" |[[Blood]]
Line 10: Line 11:
 
! style="width:18%" |[[Black Bile|Black]]
 
! style="width:18%" |[[Black Bile|Black]]
 
<!-- Heal Row-->
 
<!-- Heal Row-->
|- style="background:#FFFFFF; color:#000000"
+
|- style="background:#FFFFFF"
| style="background:#4c4c4c; text-align:right" | '''Heal:'''
+
| style="background:#efebe5; text-align:right" | '''Heal:'''
 
| [[Heals Blood::{{#explode: {{{Heals}}} |,| 0 }}]]
 
| [[Heals Blood::{{#explode: {{{Heals}}} |,| 0 }}]]
 
| [[Heals Phlegm::{{#explode: {{{Heals}}} |,| 1 }}]]
 
| [[Heals Phlegm::{{#explode: {{{Heals}}} |,| 1 }}]]
Line 17: Line 18:
 
| [[Heals Black::{{#explode: {{{Heals}}} |,| 3 }}]]
 
| [[Heals Black::{{#explode: {{{Heals}}} |,| 3 }}]]
  
|- style="background:#FFFFFF; color:#000000"
+
|- style="background:#FFFFFF"
| style="background:#4c4c4c; text-align:right" | '''Heal Uses:'''
+
| style="background:#efebe5; text-align:right" | '''Heal Uses:'''
 
|[[Heal Uses::{{{Uses}}}]]
 
|[[Heal Uses::{{{Uses}}}]]
 
|}
 
|}
Line 25: Line 26:
 
|-
 
|-
 
|
 
|
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding=10px; vertical-align:bottom; text-align:center;"
+
{| style="width:100%; border:black 2px solid; background:#efebe5; padding=10px; vertical-align:bottom; text-align:center;"
 
!
 
!
 
! style="width:18%" |[[Blood]]
 
! style="width:18%" |[[Blood]]
Line 33: Line 34:
  
 
<!-- Gluttony Values Rows-->
 
<!-- Gluttony Values Rows-->
|- style="background:#FFFFFF; color:#000000"
+
|- style="background:#FFFFFF"
| style="background:#4c4c4c; text-align:right" | '''[[Gluttony]] Min:'''
+
| style="background:#efebe5; text-align:right" | '''[[Gluttony]] Min:'''
 
| [[Gives Min Blood::{{{Min Blood}}}]]
 
| [[Gives Min Blood::{{{Min Blood}}}]]
 
| [[Gives Min Phlegm::{{{Min Phlegm}}}]]
 
| [[Gives Min Phlegm::{{{Min Phlegm}}}]]
 
| [[Gives Min Yellow Bile::{{{Min Yellow Bile}}}]]
 
| [[Gives Min Yellow Bile::{{{Min Yellow Bile}}}]]
 
| [[Gives Min Black Bile::{{{Min Black Bile}}}]]
 
| [[Gives Min Black Bile::{{{Min Black Bile}}}]]
|- style="background:#FFFFFF; color:#000000"
+
|- style="background:#FFFFFF"
| style="background:#4c4c4c; text-align:right" | '''[[Gluttony]] Max:'''
+
| style="background:#efebe5; text-align:right" | '''[[Gluttony]] Max:'''
 
| [[Gives Max Blood::{{{Max Blood}}}]]
 
| [[Gives Max Blood::{{{Max Blood}}}]]
 
| [[Gives Max Phlegm::{{{Max Phlegm}}}]]
 
| [[Gives Max Phlegm::{{{Max Phlegm}}}]]
Line 46: Line 47:
 
| [[Gives Max Black Bile::{{{Max Black Bile}}}]]
 
| [[Gives Max Black Bile::{{{Max Black Bile}}}]]
  
|- style="background:#FFFFFF; color:#000000"
+
|- style="background:#FFFFFF"
| style="background:#4c4c4c; text-align:right" | '''Full and Fed Up for:'''
+
| style="background:#efebe5; text-align:right" | '''Full and Fed Up for:'''
 
|[[Gluttony Time::{{{Gluttony Time}}}]]
 
|[[Gluttony Time::{{{Gluttony Time}}}]]
 
|}
 
|}
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding=10px; vertical-align:bottom; text-align:left;"
+
{| style="width:100%; border:black 2px solid; background:#efebe5; padding=10px; vertical-align:bottom; text-align:left;"
 
<!-- Food Groups Row-->
 
<!-- Food Groups Row-->
 
|-
 
|-
 
| style="vertical-align:top; width:100px"|'''Food Groups:'''  
 
| style="vertical-align:top; width:100px"|'''Food Groups:'''  
| style="text-align:left" | {{#switch: {{{Food Groups|}}} | =None | {{TX|T5|{{{Food Groups}}} }} }}
+
| style="text-align:left" | {{#switch: {{{Food Groups|}}} | =None | {{T5|{{{Food Groups}}} }} }}
 
<!-- Food Group Reduction Rows-->
 
<!-- Food Group Reduction Rows-->
 
|-
 
|-
Line 63: Line 64:
 
|}
 
|}
 
<!-- Variable Values for Variable Food-->
 
<!-- Variable Values for Variable Food-->
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding=10px; vertical-align:bottom; text-align:center;"
+
{| style="width:100%; border:black 2px solid; background:#efebe5; padding=10px; vertical-align:bottom; text-align:center;"
|- style="text-align:left"
 
!colspan=5 | Values when used in [[Variable Food]] :
 
|-
 
 
!
 
!
 
! style="width:18%" |[[Blood]]
 
! style="width:18%" |[[Blood]]
Line 72: Line 70:
 
! style="width:18%" |[[Yellow Bile|Yellow]]
 
! style="width:18%" |[[Yellow Bile|Yellow]]
 
! style="width:18%" |[[Black Bile|Black]]
 
! style="width:18%" |[[Black Bile|Black]]
|- style="background:#FFFFFF; color:#000000"
+
|- style="background:#FFFFFF"
| style="background:#4c4c4c; text-align:right" | '''Variable Food Multiplier:'''
+
| style="background:#efebe5; text-align:right" | '''[[Variable Food]] Value:'''
 
| [[Variable Food Value Blood::{{{Variable Blood}}}]]
 
| [[Variable Food Value Blood::{{{Variable Blood}}}]]
 
| [[Variable Food Value Phlegm::{{{Variable Phlegm}}}]]
 
| [[Variable Food Value Phlegm::{{{Variable Phlegm}}}]]
 
| [[Variable Food Value Yellow Bile::{{{Variable Yellow Bile}}}]]
 
| [[Variable Food Value Yellow Bile::{{{Variable Yellow Bile}}}]]
 
| [[Variable Food Value Black Bile::{{{Variable Black Bile}}}]]
 
| [[Variable Food Value Black Bile::{{{Variable Black Bile}}}]]
|-
 
|{{#if:{{{Variable Food Value Restore}}} |'''Adds Restore value to Food:'''}}
 
|{{#if:{{{Variable Food Value Restore}}} | style="background:#FFFFFF; color:#000000" colspan=4 {{!}}{{TIa|{{{Variable Food Value Restore}}}}}[[Variable Food Value Restore Text::{{{Variable Food Value Restore}}}]] by [[Variable Food Restore Value Percent::{{{%Variable Food Restore}}}]]% with [[Variable Food Restore Value Chance::{{{%ChanceVariable Food Restore}}}]]% chance |}}
 
 
|}
 
|}
|}
+
 
{{#IFEQ: {{PAGENAME}} | Contributing | | [[Category:Special Food]] [[Category:Food]] [[Category:Variable Food Ingredients]]}}</includeonly>
+
{{#IFEQ: {{PAGENAME}} | Contributing | | [[Category:Special Food]] [[Category:Food]] [[Category:Variable Food Ingredients]]}}
 +
</includeonly>
 +
 
 
<noinclude>{{Notice|NOTE:|This is a MODULAR template. It MUST be used after one the the following templates:
 
<noinclude>{{Notice|NOTE:|This is a MODULAR template. It MUST be used after one the the following templates:
 
*[[Template:Foraged]] if the food item is foraged.
 
*[[Template:Foraged]] if the food item is foraged.
Line 102: Line 99:
 
| Food Groups= Game Meat
 
| Food Groups= Game Meat
 
| FoodReduce1= Nuts and Seeds | %Reduce1=95 | %ChanceReduce1=10  
 
| FoodReduce1= Nuts and Seeds | %Reduce1=95 | %ChanceReduce1=10  
| FoodRestore1= Mushrooms |%Restore1=5 |%ChanceRestore1=30
+
| FoodRestore1= Mushrooms |%Restore1=5 |%ChanceRestore1=30}}
| Variable Blood=0.5
+
| Variable Blood=
| Variable Phlegm=0.5
+
| Variable Phlegm=
| Variable Yellow Bile=1.1
+
| Variable Yellow Bile=
| Variable Black Bile=0.5
+
| Variable Black Bile=
 
| Variable Food Value Restore= Berries
 
| Variable Food Value Restore= Berries
 
| %Variable Food Restore=5
 
| %Variable Food Restore=5
Line 136: Line 133:
 
| Variable Food Value Restore=
 
| Variable Food Value Restore=
 
| %Variable Food Restore=
 
| %Variable Food Restore=
| %ChanceVariable Food Restore=
+
| %ChanceVariable Food Restore=}}
 
}}</pre>
 
}}</pre>
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 22:09, 12 November 2018


NOTE: This is a MODULAR template. It MUST be used after one the the following templates:


See Help:Contributing for instructions and examples for adding a new page to the wiki.

Healing:
Blood Phlegm Yellow Black
Heal: 1 2 3 4
Heal Uses: 42
Gluttony:
Blood Phlegm Yellow Black
Gluttony Min: 5 7 0 1
Gluttony Max: 6 8 9 2
Full and Fed Up for: 1:50
Food Groups: Template:T5
ReducesNuts and Seeds icon.pngNuts and Seeds by 95% with 10% chance
RestoresMushrooms icon.pngMushrooms by 5% with 30% chance
Blood Phlegm Yellow Black
Variable Food Value: {{{Variable Blood}}} {{{Variable Phlegm}}} {{{Variable Yellow Bile}}} {{{Variable Black Bile}}}


Variable Blood= Variable Phlegm= Variable Yellow Bile= Variable Black Bile= Variable Food Value Restore= Berries %Variable Food Restore=5 %ChanceVariable Food Restore=15

}}


Code:
{{VariableFoodIngredients
| Heals=,,,
| Uses=
| Min Blood= | Max Blood=
| Min Phlegm= | Max Phlegm=
| Min Yellow Bile= | Max Yellow Bile=
| Min Black Bile= | Max Black Bile=
| Gluttony Time=
| Food Groups=
| FoodReduce1= | %Reduce1= | %ChanceReduce1=
| FoodReduce2= | %Reduce2= | %ChanceReduce2=
| FoodReduce3= | %Reduce3= | %ChanceReduce3=
| FoodRestore1= |%Restore1= |%ChanceRestore1=
| Variable Blood=
| Variable Phlegm=
| Variable Yellow Bile=
| Variable Black Bile=
| Variable Food Value Restore=
| %Variable Food Restore=
| %ChanceVariable Food Restore=}}
}}