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| }}}| ||{{{[[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:{{{ | |||
{{ | |||
{{ | |||
}} | |||
|} | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Line 32: | Line 8: | ||
== Syntax == | == Syntax == | ||
<pre> | <pre> | ||
{{Recipe Table| | {{Recipe Table | ||
| Ingredient 1 = | |||
| Ingredient 2 = | |||
| Result = | |||
}} | |||
</pre> | </pre> | ||
Line 41: | Line 21: | ||
For example: | For example: | ||
{{Recipe Table|Flour|Water|Dough}} | {{Recipe Table | ||
| Ingredient 1 = Flour | |||
| Ingredient 2 = Water | |||
| Result = Dough | |||
}} | |||
</noinclude> | </noinclude> |
Revision as of 21:00, 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| ||{{{Ingredient 1}}} on {{#ifeq:Water|||{{#ifeq:Water| ||{{{Ingredient 2}}} to create {{#ifeq:Dough|||{{#ifeq:Dough| ||{{{Result}}}
- {{#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}}}