Voir wp:Lua et mw:Extension:Scribunto pour plus d'informations.
Using this template, you can create tables like those commonly used in the “Brewing ingredient” sections of articles about blocks and items. It can be used similarly to Modèle:Tl, except it creates the table for you.
By default, the table generates with 3 columns: nom, ingrédients, and the main column containing Modèle:Tl. You can set the parameter {{{affichernom=1}}} or {{{affichernom=0}}} in the first template of the table to show or hide the nom column. To group multiple crafting templates into one table, you also need to set {{{haut=1}}} in the first template of the table, and {{{bas=1}}} in the last.
The parameter {{{base=}}} can be set to change the base potion listing. It defaults to Awkward Potion.
The parameter {{{showbase=1}}} can be set to show the base potion in the potion slot instead of the output.
Example usage:
{{Alchimie
|haut=1
|Ghast Tear
|Potion of Regeneration
}}
{{Alchimie
|nom=Splash [[Potions]]
|ingrédients=[[Gunpowder]] +<br>Any [[Potion]]
|Gunpowder
|Splash Potion of Regeneration;Splash Potion of Fire Resistance;Splash Potion of Strength
}}
{{Alchimie
|nom=Increases Duration
|showbase=1
|Redstone
|base=Potion of Regeneration
}}
{{Alchimie
|à venir=1.7
|bas=1
|Redstone
|Potion of Water Breathing
}}
produces:
| Nom | Ingrédients | Alchimie |
|---|---|---|
| Potion of Regeneration | Ghast Tear + Potion étrange |
[[Ghast Tear| [[Potion of Regeneration| |
| Splash Potions | Gunpowder + Any Potion |
[[Gunpowder| [[Splash Potion of Regeneration| [[Splash Potion of Fire Resistance| [[Splash Potion of Strength| |
| Increases Duration | Redstone + Potion of Regeneration |
|
| Potion of Water Breathing (1.7) |
Redstone + Potion étrange |