Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:CookingRecipe: Difference between revisions

Template page
(Created page with "|- ! style="text-align:center; border: 1px solid black;" | {{#if:{{{image|}}}|[[File:{{{image}}}|64px]]|[[File:{{{name}}}.png|64px]]}} ! style="border: 1px solid black;" | {{anchor|{{{name}}}}}{{{name}}} | style="border: 1px solid black;" | {{#if:{{{microwave|}}}|File:Microwave.png Microwave for {{{microwave}}} seconds:<br>|}}{{#if:{{{mix|}}}|File:Beaker.png Mix in a container:<br>|}}{{#if:{{{heat|}}}|File:HotPlate.png Heat up to {{{heat}}} K:<br>|}}{{{recipe...")
 
No edit summary
Line 2: Line 2:
! style="text-align:center; border: 1px solid black;" | {{#if:{{{image|}}}|[[File:{{{image}}}|64px]]|[[File:{{{name}}}.png|64px]]}}
! style="text-align:center; border: 1px solid black;" | {{#if:{{{image|}}}|[[File:{{{image}}}|64px]]|[[File:{{{name}}}.png|64px]]}}
! style="border: 1px solid black;" | {{anchor|{{{name}}}}}{{{name}}}
! style="border: 1px solid black;" | {{anchor|{{{name}}}}}{{{name}}}
| style="border: 1px solid black;" | {{#if:{{{microwave|}}}|[[File:Microwave.png]] Microwave for {{{microwave}}} seconds:<br>|}}{{#if:{{{mix|}}}|[[File:Beaker.png]] Mix in a container:<br>|}}{{#if:{{{heat|}}}|[[File:HotPlate.png]] Heat up to {{{heat}}} K:<br>|}}{{{recipe}}}<noinclude>
| style="border: 1px solid black;" | {{#if:{{{microwave|}}}|[[File:Microwave.png]] Microwave for {{{microwave}}} seconds:<br>|}}{{#if:{{{mix|}}}|[[File:Beaker.png]] Mix in a container:<br>|}}{{#if:{{{heat|}}}|[[File:HotPlate.png]] Heat up to {{{heat}}} K:<br>|}}
:{{{recipe}}}<noinclude>
== How to use ==
== How to use ==
<pre>
<pre>
<nowiki>{{CookingRecipe|name=Bread|recipe=Test}}</nowiki>
<nowiki>{{CookingRecipe|name=Bread|image=Bread.gif|recipe=Test|microwave=50|heat=375|mix=yes}}</nowiki>
</pre>
</pre>
This cooking recipe template is meant to be entirely only used in the dedicated food/cooking page. It is purely to help editors add new recipes without it being too complicated.
This cooking recipe template is meant to be entirely only used in the dedicated food/cooking page. It is purely to help editors add new recipes without it being too complicated.
Looks better if used alongside the [[Template:Ingredient]] template.


== Meaning ==
== Meaning ==
Self explanatory, with some special arguments.
Self explanatory, with some special arguments.


* '''name''': the name of the recipe. Automatically creates an anchor.
* '''name''': The name of the recipe. Automatically creates an anchor.
* '''image''': the image you want to use, will use the name if not specified. Requires a file extension.
* '''image''': Optional. The image you want to use, will use the name if not specified. Requires a file extension.
* '''microwave''': this recipe needs to be made in a microwave for X seconds
* '''microwave''': This recipe needs to be made in a microwave for X seconds
* '''heat''': this recipe needs to be heated up to a certain degree in Kelvin
* '''heat''': This recipe needs to be heated up to a certain degree in Kelvin
* '''mix''': this recipe needs to be mixed in a beaker or other recipient
* '''mix''': This recipe needs to be mixed in a beaker or other recipient


== Exemple ==
== Exemple ==
Line 39: Line 42:
{{CookingRecipe
{{CookingRecipe
|name=Bread
|name=Bread
|microwave=10
|heat=350
|mix=yes
|recipe=Test
|recipe=Test
|microwave=10
}}
}}


{{CookingRecipe
{{CookingRecipe
|name=Baguette
|name=Baguette
|recipe=5 tablesalt + 5 blackpepper + 1 dough
|microwave=15
|microwave=15
|heat=350
|recipe=5 tablesalt + 5 blackpepper + 1{{Ingredient|Dough}}
|mix=yes
}}
}}



Revision as of 15:57, 25 October 2023

|- ! style="text-align:center; border: 1px solid black;" | [[File:{{{name}}}.png|64px]] ! style="border: 1px solid black;" | {{{name}}} | style="border: 1px solid black;" |

{{{recipe}}}

How to use

{{CookingRecipe|name=Bread|image=Bread.gif|recipe=Test|microwave=50|heat=375|mix=yes}}

This cooking recipe template is meant to be entirely only used in the dedicated food/cooking page. It is purely to help editors add new recipes without it being too complicated.

Looks better if used alongside the Template:Ingredient template.

Meaning

Self explanatory, with some special arguments.

  • name: The name of the recipe. Automatically creates an anchor.
  • image: Optional. The image you want to use, will use the name if not specified. Requires a file extension.
  • microwave: This recipe needs to be made in a microwave for X seconds
  • heat: This recipe needs to be heated up to a certain degree in Kelvin
  • mix: This recipe needs to be mixed in a beaker or other recipient

Exemple

Picture Name Recipe
Dough
Do nothing
Not Bread
Somehow do nothing
Do more nothing
???
Bread
Bread Microwave for 10 seconds:
Mix in a container:
Heat up to 350 K:
Test
Baguette Microwave for 15 seconds:
5 tablesalt + 5 blackpepper + 1Dough