Plantilla:Elaboración/doc

De Minecraft Wiki
< Plantilla:Elaboración
Revisión del 02:44 14 nov 2018 de MajrBot (discusión | contribuciones) (Replace long obsolete <tt> with <code>)
(dif) ← Revisión anterior | Revisión actual (dif) | Revisión siguiente → (dif)
Saltar a: navegación, buscar

Esta es la página de documentación, la cual debería ser incluida en la página principal de esta plantilla. Véase Plantilla:Documentación para más información.

Lua logo.svg
Esta plantilla utiliza el Módulo:Elaboración, un script escrito en Lua.

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 {{Grid/Brewing Stand}}, except it creates the table for you.

By default, the table generates with 3 columns: Name, Ingredients, and the main column containing {{Grid/Brewing Stand}}. You can set the parameter {{{showname=1}}} or {{{showname=0}}} in the first template of the table to show or hide the Name column. To group multiple crafting templates into one table, you also need to set {{{head=1}}} in the first template of the table, and {{{foot=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:

{{Brewing
  |head=1
  |Ghast Tear
  |Potion of Regeneration
}}
{{Brewing
  |name=Splash [[Potions]]
  |ingredients=[[Gunpowder]] +<br>Any [[Potion]]
  |Gunpowder
  |Splash Potion of Regeneration;Splash Potion of Fire Resistance;Splash Potion of Strength
}}
{{Brewing
  |name=Increases Duration
  |showbase=1
  |Redstone
  |base=Potion of Regeneration
}}
{{Brewing
  |upcoming=1.7
  |foot=1
  |Redstone
  |Potion of Water Breathing
}}

produces:

Name Ingredients Brewing recipe
Potion of Regeneration Ghast Tear +
Awkward Potion

Ghast Tear

Potion of Regeneration
Splash Potions Gunpowder +
Any Potion

Gunpowder

Splash Potion of RegenerationSplash Potion of Fire ResistanceSplash Potion of Strength
Increases Duration Redstone +
Potion of Regeneration

Redstone

Potion of Regeneration
Potion of Water Breathing
(1.7)
Redstone +
Awkward Potion

Redstone

Potion of Water Breathing