Difference between revisions of "Template:Food"

From Salem Wiki
Jump to: navigation, search
m (changed 2 incorrect " to :)
 
(100 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<!-- Start Template -->
+
<includeonly>|-
{|style="vertical-align:top; float:left; margin-right:15px"
+
! style="color:white; font-size:1.4em" | '''Healing:'''
|
 
<!-- Infobox -->
 
{| style="min-width:300px; padding:.1em; border:black 2px solid; border-radius:.8em; background:#71583b; font-family:Calibri"
 
! style="color:white; font-size:1.4em"|{{i|{{PAGENAME}}}}
 
|-
 
|
 
{| style="width:100%; border:black 2px solid; background:#efebe5"
 
| style="width:120px" |'''Skill(s) required:'''
 
| {{#ask: [[Category:Skills]] [[Unlocks::{{PAGENAME}}]] | ?Skills | format = list  | default=None }}
 
|-
 
| style="vertical-align:top" | '''Object(s) required:''' || {{#switch: {{{Objects required|}}} | =None | {{T4|{{{Objects required}}} }} }}
 
|-
 
| style="vertical-align:top" | '''Required by:'''
 
| {{#ask: [[Category:Objects]] [[Requires::{{PAGENAME}}]] | ?Objects | format = ul | template=''{{i}}'' | default=None }}
 
|}
 
|-
 
<!-- Start Alchemy Values-->
 
! style="color:white; font-size:1.4em" | '''Healing/Gluttony:'''
 
 
|-
 
|-
 
|
 
|
{| style="width:100%; border:black 2px solid; background:#efebe5; padding=10px; vertical-align:bottom; text-align:center;"
+
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding=10px; vertical-align:bottom; text-align:center;"
 
!
 
!
! style="width:20%" |[[Blood]]
+
! style="width:18%" |[[Blood]]
! style="width:20%" |[[Phlegm]]
+
! style="width:18%" |[[Phlegm]]
! style="width:20%" |[[Yellow Bile|Yellow]]
+
! style="width:18%" |[[Yellow Bile|Yellow]]
! style="width:20%" |[[Black Bile|Black]]
+
! style="width:18%" |[[Black Bile|Black]]
 
<!-- Heal Row-->
 
<!-- Heal Row-->
 
|- style="background:#FFFFFF; color:#000000"
 
|- style="background:#FFFFFF; color:#000000"
| style="background:#efebe5; text-align:right" | '''Heal:'''
+
| style="background:#4c4c4c; text-align:right" | '''Heal:'''
 
| [[Heals Blood::{{#explode: {{{Heals}}} |,| 0 }}]]
 
| [[Heals Blood::{{#explode: {{{Heals}}} |,| 0 }}]]
 
| [[Heals Phlegm::{{#explode: {{{Heals}}} |,| 1 }}]]
 
| [[Heals Phlegm::{{#explode: {{{Heals}}} |,| 1 }}]]
 
| [[Heals Yellow::{{#explode: {{{Heals}}} |,| 2 }}]]
 
| [[Heals Yellow::{{#explode: {{{Heals}}} |,| 2 }}]]
 
| [[Heals Black::{{#explode: {{{Heals}}} |,| 3 }}]]
 
| [[Heals Black::{{#explode: {{{Heals}}} |,| 3 }}]]
<!-- Salt Row-->
+
 
|- style="background:darkred; color:#FFFFFF"
+
|- style="background:#FFFFFF; color:#000000"
| style="background:#efebe5; text-align:right" | '''[[Salt|Salt:]]'''
+
| style="background:#4c4c4c; text-align:right" | '''Heal Uses:'''
| [[Salt Blood::{{#explode: {{{Salt}}} |,| 0 }}]]
+
|[[Heal Uses::{{{Uses}}}]]
| [[Salt Phlegm::{{#explode: {{{Salt}}} |,| 1 }}]]
 
| [[Salt Yellow::{{#explode: {{{Salt}}} |,| 2 }}]]
 
| [[Salt Black::{{#explode: {{{Salt}}} |,| 3 }}]]
 
<!-- Mercury Row-->
 
|- style="background:darkgreen; color:#FFFFFF"
 
| style="background:#efebe5; text-align:right" | '''[[Mercury|Mercury:]]'''
 
| [[Mercury Blood::{{#explode: {{{Mercury}}} |,| 0 }}]]
 
| [[Mercury Phlegm::{{#explode: {{{Mercury}}} |,| 1 }}]]
 
| [[Mercury Yellow::{{#explode: {{{Mercury}}} |,| 2 }}]]
 
| [[Mercury Black::{{#explode: {{{Mercury}}} |,| 3 }}]]
 
<!-- Sulphur Row-->
 
|- style="background:darkblue; color:#FFFFFF"
 
| style="background:#efebe5; text-align:right" | '''[[Sulphur|Sulphur:]]'''
 
| [[Sulphur Blood::{{#explode: {{{Sulphur}}} |,| 0 }}]]
 
| [[Sulphur Phlegm::{{#explode: {{{Sulphur}}} |,| 1 }}]]
 
| [[Sulphur Yellow::{{#explode: {{{Sulphur}}} |,| 2 }}]]
 
| [[Sulphur Black::{{#explode: {{{Sulphur}}} |,| 3 }}]]
 
<!-- Lead Row-->
 
|- style="background:darkgoldenrod; color:#ffffff"
 
| style="background:#efebe5; text-align:right" | '''[[Lead|Lead:]]'''
 
| [[Lead Blood::{{#explode: {{{Lead}}} |,| 0 }}]]
 
| [[Lead Phlegm::{{#explode: {{{Lead}}} |,| 1 }}]]
 
| [[Lead Yellow::{{#explode: {{{Lead}}} |,| 2 }}]]
 
| [[Lead Black::{{#explode: {{{Lead}}} |,| 3 }}]]
 
 
|}
 
|}
 +
|-
 +
! style="color:white; font-size:1.4em" | '''Gluttony:'''
 +
|-
 +
|
 +
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding=10px; vertical-align:bottom; text-align:center;"
 +
!
 +
! style="width:18%" |[[Blood]]
 +
! style="width:18%" |[[Phlegm]]
 +
! style="width:18%" |[[Yellow Bile|Yellow]]
 +
! style="width:18%" |[[Black Bile|Black]]
 +
 +
<!-- Gluttony Values Rows-->
 +
|- style="background:#FFFFFF; color:#000000"
 +
| style="background:#4c4c4c; text-align:right" | '''[[Gluttony]] Min:'''
 +
| [[Gives Min Blood::{{{Min Blood}}}]]
 +
| [[Gives Min Phlegm::{{{Min Phlegm}}}]]
 +
| [[Gives Min Yellow Bile::{{{Min Yellow Bile}}}]]
 +
| [[Gives Min Black Bile::{{{Min Black Bile}}}]]
 +
|- style="background:#FFFFFF; color:#000000"
 +
| style="background:#4c4c4c; text-align:right" | '''[[Gluttony]] Max:'''
 +
| [[Gives Max Blood::{{{Max Blood}}}]]
 +
| [[Gives Max Phlegm::{{{Max Phlegm}}}]]
 +
| [[Gives Max Yellow Bile::{{{Max Yellow Bile}}}]]
 +
| [[Gives Max Black Bile::{{{Max Black Bile}}}]]
 +
 +
|- style="background:#FFFFFF; color:#000000"
 +
| style="background:#4c4c4c; text-align:right" | '''Full and Fed Up for:'''
 +
|[[Gluttony Time::{{{Gluttony Time}}}]]
 +
|}
 +
{| style="width:100%; border:black 2px solid; background:#4c4c4c; padding=10px; vertical-align:bottom; text-align:left; padding-left:0.2em;"
 +
<!-- Food Groups Row-->
 +
|-
 +
| style="vertical-align:top; width:100px"|'''Food Groups:'''  {{#switch: {{{Food Groups|}}} | =None | {{TX|T5|{{{Food Groups}}} }} }}
 +
<!-- Food Group Reduction Rows-->
 +
|-
 +
|{{#if:{{{FoodReduce1}}} | {{!}}'''Reduces:'''{{TIa|{{{FoodReduce1}}}}}[[Food Reduce1 Text::{{{FoodReduce1}}}]] by [[Food Reduce1 Percent::{{{%Reduce1}}}]]% with [[Food Reduce1 Chance::{{{%ChanceReduce1}}}]]% chance |}}
 +
|-
 +
|{{#if:{{{FoodReduce2}}} | {{!}}'''Reduces:'''{{TIa|{{{FoodReduce2}}}}}[[Food Reduce2 Text::{{{FoodReduce2}}}]] by [[Food Reduce2 Percent::{{{%Reduce2}}}]]% with [[Food Reduce2 Chance::{{{%ChanceReduce2}}}]]% chance |}}
 +
|-
 +
|{{#if:{{{FoodReduce3}}} | {{!}}'''Reduces:'''{{TIa|{{{FoodReduce3}}}}}[[Food Reduce3 Text::{{{FoodReduce3}}}]] by [[Food Reduce3 Percent::{{{%Reduce3}}}]]% with [[Food Reduce3 Chance::{{{%ChanceReduce3}}}]]% chance |}}
 +
<!-- Food Group Restore Rows-->
 +
|-
 +
|{{#if:{{{FoodRestore1}}} | {{!}}'''Restores:'''{{TIa|{{{FoodRestore1}}}}}[[Food Restore1 Text::{{{FoodRestore1}}}]] by [[Food Restore1 Percent::{{{%Restore1}}}]]% with [[Food Restore1 Chance::{{{%ChanceRestore1}}}]]% chance [[Category:Food That Restores Gluttony]] |}}
 
|}
 
|}
<!--End Alchemy -->
 
 
|}
 
|}
<!--End Template -->
+
{{#IFEQ: {{PAGENAME}} | Contributing | | [[Category:Snack Food]] [[Category:Food]]}}</includeonly>
<noinclude>
+
<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:Crafted]] if the food item is crafted.}}
 +
 
 +
See [[Help:Contributing]] for instructions and examples for adding a new page to the wiki.
 +
 
 +
 
 +
{| style="float:left; width:320px; padding:0.2em; border:black 2px solid; border-radius:0.4em; background:#71583b; font-family:Calibri; margin-right:25px"
 +
{{Food
 +
| Heals=1,2,3,4 
 +
| Uses=42
 +
| Min Blood=5 | Max Blood=6
 +
| Min Phlegm=7 | Max Phlegm=8
 +
| Min Yellow Bile=0 | Max Yellow Bile=9
 +
| Min Black Bile=1 | Max Black Bile=2
 +
| Gluttony Time=1:50
 +
| Food Groups= Game Meat
 +
| FoodReduce1= Nuts and Seeds | %Reduce1=95 | %ChanceReduce1=10
 +
| FoodReduce2= Maize | %Reduce2=65 | %ChanceReduce2=20
 +
| FoodReduce3=  | %Reduce3= | %ChanceReduce3=
 +
| FoodRestore1= Mushrooms |%Restore1=5 |%ChanceRestore1=30
 +
}}
 
{|
 
{|
| style="max-width:640px" |
+
| style="vertical-align:top" |'''Code:'''
==When to use this template:==
+
----
:To add a new food to the wiki. (or to update an old design to the new one by replacing it)
+
<pre>
:{{Template List}}
+
{{Food
 
+
| Heals=,,,
==How to use this template:==
+
| Uses=
===Breakdown of parameters:===
+
| Min Blood= | Max Blood=
;Objects required
+
| Min Phlegm= | Max Phlegm=
:List any objects required such as ingredients and structures. Each object must be entered with an amount and each separate item should be separated with a comma.
+
| Min Yellow Bile= | Max Yellow Bile=
:'''''For example:''''' Objects required=Kiln;1, Bread Oven;1, Stone Hedge;1
+
| Min Black Bile= | Max Black Bile=
;Heals
+
| Gluttony Time=
:Enter the healing values in order separated by commas. Decimal places are allowed. The order is Blood, Phlegm, Yellow Bile, Black Bile (the same as displayed in-game).
+
| Food Groups=
:'''''For example:''''' Heals=1.5,2,3.5,4
+
| FoodReduce1= | %Reduce1= | %ChanceReduce1=
;Salt
+
| FoodReduce2= | %Reduce2= | %ChanceReduce2=
:Enter the salt event values in order separated by commas. Decimal places are allowed. The order is Blood, Phlegm, Yellow Bile, Black Bile (the same as displayed in-game).
+
| FoodReduce3= | %Reduce3= | %ChanceReduce3=
:'''''For example:''''' Salt=2.5,4,6,8
+
| FoodRestore1= |%Restore1= |%ChanceRestore1=
;Mercury
 
:Enter the mercury event values in order separated by commas. Decimal places are allowed. The order is Blood, Phlegm, Yellow Bile, Black Bile (the same as displayed in-game).
 
:'''''For example:''''' Mercury=1,2.5,3,4
 
;Sulphur
 
:Enter the sulphur event values in order separated by commas. Decimal places are allowed. The order is Blood, Phlegm, Yellow Bile, Black Bile (the same as displayed in-game).
 
:'''''For example:''''' Sulphur=2,4,6.5,8
 
;Lead
 
:Enter the lead event values in order separated by commas. Decimal places are allowed. The order is Blood, Phlegm, Yellow Bile, Black Bile (the same as displayed in-game).
 
:'''''For example:''''' Lead=1,2,3,4.5
 
===Blank code to copy+paste:===
 
|-
 
|
 
<pre>{{Food
 
| Objects required=
 
| Heals=
 
| Salt=
 
| Mercury=
 
| Sulphur=
 
| Lead=
 
 
}}</pre>
 
}}</pre>
|}</noinclude>
+
|}
 +
</noinclude>

Latest revision as of 13:34, 28 October 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: Game Meat icon.pngGame Meat
Reduces:Nuts and Seeds icon.pngNuts and Seeds by 95% with 10% chance
Reduces:Maize icon.pngMaize by 65% with 20% chance
Restores:Mushrooms icon.pngMushrooms by 5% with 30% chance
Code:
{{Food
| 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=
}}