Template:Recipe Table: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
# Use {{#ifeq:{{{Ingredient 1|}}}|||{{#ifeq:{{{Ingredient 1| }}}| ||{{{ | # Use {{#ifeq:{{{Ingredient 1|}}}|||{{#ifeq:{{{Ingredient 1| }}}| ||[[{{{Ingredient 1}}}]] on {{#ifeq:{{{Ingredient 2|}}}|||{{#ifeq:{{{Ingredient 2| }}}| ||[[{{{Ingredient 2}}}]] to create {{#ifeq:{{{Result|}}}|||{{#ifeq:{{{Result| }}}| ||[[{{{Result}}}]] | ||
#* {{#ifeq:{{{Ingredient 1|}}}|||{{#ifeq:{{{Ingredient 1| }}}| ||{{{[[Image:Ingredient 1 Icon.png]]}}} + {{#ifeq:{{{Ingredient 2|}}}|||{{#ifeq:{{{Ingredient 2| }}}| ||{{{[[Image:Ingredient 2 Icon.png]]}}} = {{#ifeq:{{{Result|}}}|||{{#ifeq:{{{Result| }}}| ||{{{[[Image:Result Icon.png]]}}} | #* {{#ifeq:{{{Ingredient 1|}}}|||{{#ifeq:{{{Ingredient 1| }}}| ||{{{[[Image:Ingredient 1 Icon.png]]}}} + {{#ifeq:{{{Ingredient 2|}}}|||{{#ifeq:{{{Ingredient 2| }}}| ||{{{[[Image:Ingredient 2 Icon.png]]}}} = {{#ifeq:{{{Result|}}}|||{{#ifeq:{{{Result| }}}| ||{{{[[Image:Result Icon.png]]}}} | ||
Line 14: | Line 14: | ||
}} | }} | ||
</pre> | </pre> | ||
== Usage == | == Usage == |
Revision as of 21:02, 16 April 2009
Related topics: Wiki Templates, Crafting Template, Template:Food, Template:Ingredient, Template:Recipe
Syntax
{{Recipe Table | Ingredient 1 = | Ingredient 2 = | Result = }}
Usage
- Naming Conventions are enforced and icon images must follow the format
Name Icon.png
(case sensitive). - Use the first two "Names" for the Ingredients, the last one for the result
For example:
- Use {{#ifeq:Flour|||{{#ifeq:Flour| ||Flour on {{#ifeq:Water|||{{#ifeq:Water| ||Water to create {{#ifeq:Dough|||{{#ifeq:Dough| ||Dough
- {{#ifeq:Flour|||{{#ifeq:Flour| ||{{{File:Ingredient 1 Icon.png}}} + {{#ifeq:Water|||{{#ifeq:Water| ||{{{File:Ingredient 2 Icon.png}}} = {{#ifeq:Dough|||{{#ifeq:Dough| ||{{{File:Result Icon.png}}}