Difference between revisions of "Template:Food"

From Salem Wiki
Jump to: navigation, search
m (changed 2 incorrect " to :)
(now modular.)
Line 1: Line 1:
<!-- Start Template -->
+
<includeonly>
{|style="vertical-align:top; float:left; margin-right:15px"
 
|
 
<!-- 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="color:white; font-size:1.4em" | '''Healing/Gluttony:'''
 
|-
 
|-
Line 35: Line 18:
 
| [[Heals Black::{{#explode: {{{Heals}}} |,| 3 }}]]
 
| [[Heals Black::{{#explode: {{{Heals}}} |,| 3 }}]]
 
<!-- Salt Row-->
 
<!-- Salt Row-->
|- style="background:darkred; color:#FFFFFF"
+
|- style="background:darkred; color:#ffffff"
 
| style="background:#efebe5; text-align:right" | '''[[Salt|Salt:]]'''
 
| style="background:#efebe5; text-align:right" | '''[[Salt|Salt:]]'''
 
| [[Salt Blood::{{#explode: {{{Salt}}} |,| 0 }}]]
 
| [[Salt Blood::{{#explode: {{{Salt}}} |,| 0 }}]]
Line 42: Line 25:
 
| [[Salt Black::{{#explode: {{{Salt}}} |,| 3 }}]]
 
| [[Salt Black::{{#explode: {{{Salt}}} |,| 3 }}]]
 
<!-- Mercury Row-->
 
<!-- Mercury Row-->
|- style="background:darkgreen; color:#FFFFFF"
+
|- style="background:darkgreen; color:#ffffff"
 
| style="background:#efebe5; text-align:right" | '''[[Mercury|Mercury:]]'''
 
| style="background:#efebe5; text-align:right" | '''[[Mercury|Mercury:]]'''
 
| [[Mercury Blood::{{#explode: {{{Mercury}}} |,| 0 }}]]
 
| [[Mercury Blood::{{#explode: {{{Mercury}}} |,| 0 }}]]
Line 49: Line 32:
 
| [[Mercury Black::{{#explode: {{{Mercury}}} |,| 3 }}]]
 
| [[Mercury Black::{{#explode: {{{Mercury}}} |,| 3 }}]]
 
<!-- Sulphur Row-->
 
<!-- Sulphur Row-->
|- style="background:darkblue; color:#FFFFFF"
+
|- style="background:darkblue; color:#ffffff"
 
| style="background:#efebe5; text-align:right" | '''[[Sulphur|Sulphur:]]'''
 
| style="background:#efebe5; text-align:right" | '''[[Sulphur|Sulphur:]]'''
 
| [[Sulphur Blood::{{#explode: {{{Sulphur}}} |,| 0 }}]]
 
| [[Sulphur Blood::{{#explode: {{{Sulphur}}} |,| 0 }}]]
Line 64: Line 47:
 
|}
 
|}
 
|}
 
|}
<!--End Alchemy -->
+
[[Category:Food]]</includeonly>
|}
+
<noinclude>'''NOTE:''' This is a MODULAR template. It MUST be used after one the the following templates:
<!--End Template -->
+
*[[Template:Foraged]] if the food item is foraged.
<noinclude>
+
*[[Template:Crafted]] if the food item is crafted.
{|
+
 
| style="max-width:640px" |
+
See [[Help:Contributing]] for instructions and examples for adding a new page to the wiki.
==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)
 
:{{Template List}}
 
  
==How to use this template:==
+
{| style="float:left; width:320px; padding:0.2em; border:black 2px solid; border-radius:0.4em; background:#71583b; font-family:Calibri; margin-right:25px"
===Breakdown of parameters:===
+
{{Food | Heals= | Salt= | Mercury= | Sulphur= | Lead= }}</noinclude>
;Objects required
 
: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.
 
:'''''For example:''''' Objects required=Kiln;1, Bread Oven;1, Stone Hedge;1
 
;Heals
 
: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).
 
:'''''For example:''''' Heals=1.5,2,3.5,4
 
;Salt
 
: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).
 
:'''''For example:''''' Salt=2.5,4,6,8
 
;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>
 
|}</noinclude>
 

Revision as of 00:16, 17 August 2012

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/Gluttony:
Blood Phlegm Yellow Black
Heal:
Salt:
Mercury:
Sulphur:
Lead: