Template:Grinding

From Modded Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [refresh]
This template uses Module:Grinding, a script written in Lua.

Using this template, you can create tables like those commonly used in the “Repairing” section of articles about items. It can be used similarly to {{Grindstone}}, except it creates the table for you.

By default, the table generates with 3 columns: Name, Ingredients, and the main column containing {{Grindstone}}. 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 grinding templates into one table, you also need to set {{{head=1}}} in the first template of the table, and {{{foot=1}}} in the last.

Example usage:

{{Grinding
  |head=1
  |showdescription=1
  |ingredients=2x Damaged [[Wooden Sword]] or<br>2x Damaged [[Stone Sword]] or<br>2x Damaged [[Iron Sword]] or<br>2x Damaged [[Golden Sword]] or<br>2x Damaged [[Diamond Sword]]
  |Damaged Wooden Sword; Damaged Stone Sword; Damaged Iron Sword; Damaged Golden Sword; Damaged Diamond Sword
  |Damaged Wooden Sword; Damaged Stone Sword; Damaged Iron Sword; Damaged Golden Sword; Damaged Diamond Sword
  |Wooden Sword; Stone Sword; Iron Sword; Golden Sword; Diamond Sword
  |description=The durability of the two swords is added together, plus an extra 5% durability.
}}
{{Grinding
  |ingredients=2x Damaged [[Elytra]]
  |Damaged Elytra
  |Damaged Elytra
  |Elytra
  |description=The durability of the two elytra pairs are added together, plus an extra 5% durability.
  |foot=1
}}

produces:

Name Ingredients Grinding recipe Description
Wooden Sword or
Stone Sword or
Iron Sword or
Golden Sword or
Diamond Sword
2x Damaged Wooden Sword or
2x Damaged Stone Sword or
2x Damaged Iron Sword or
2x Damaged Golden Sword or
2x Damaged Diamond Sword
Invicon Damaged Wooden Sword.png: Inventory sprite for Damaged Wooden Sword in Minecraft as shown in-game linking to Minecraft:Damaged Wooden Sword with description: Wooden Sword When in Main Hand:  4 Attack Damage  1.6 Attack SpeedInvicon Damaged Stone Sword.png: Inventory sprite for Damaged Stone Sword in Minecraft as shown in-game linking to Minecraft:Damaged Stone Sword with description: Stone Sword When in Main Hand:  5 Attack Damage  1.6 Attack SpeedInvicon Damaged Iron Sword.png: Inventory sprite for Damaged Iron Sword in Minecraft as shown in-game linking to Minecraft:Damaged Iron Sword with description: Iron Sword When in Main Hand:  6 Attack Damage  1.6 Attack SpeedInvicon Damaged Golden Sword.png: Inventory sprite for Damaged Golden Sword in Minecraft as shown in-game linking to Minecraft:Damaged Golden Sword with description: Golden Sword When in Main Hand:  4 Attack Damage  1.6 Attack SpeedInvicon Damaged Diamond Sword.png: Inventory sprite for Damaged Diamond Sword in Minecraft as shown in-game linking to Minecraft:Damaged Diamond Sword with description: Diamond Sword When in Main Hand:  7 Attack Damage  1.6 Attack SpeedInvicon Damaged Wooden Sword.png: Inventory sprite for Damaged Wooden Sword in Minecraft as shown in-game linking to Minecraft:Damaged Wooden Sword with description: Wooden Sword When in Main Hand:  4 Attack Damage  1.6 Attack SpeedInvicon Damaged Stone Sword.png: Inventory sprite for Damaged Stone Sword in Minecraft as shown in-game linking to Minecraft:Damaged Stone Sword with description: Stone Sword When in Main Hand:  5 Attack Damage  1.6 Attack SpeedInvicon Damaged Iron Sword.png: Inventory sprite for Damaged Iron Sword in Minecraft as shown in-game linking to Minecraft:Damaged Iron Sword with description: Iron Sword When in Main Hand:  6 Attack Damage  1.6 Attack SpeedInvicon Damaged Golden Sword.png: Inventory sprite for Damaged Golden Sword in Minecraft as shown in-game linking to Minecraft:Damaged Golden Sword with description: Golden Sword When in Main Hand:  4 Attack Damage  1.6 Attack SpeedInvicon Damaged Diamond Sword.png: Inventory sprite for Damaged Diamond Sword in Minecraft as shown in-game linking to Minecraft:Damaged Diamond Sword with description: Diamond Sword When in Main Hand:  7 Attack Damage  1.6 Attack SpeedInvicon Wooden Sword.png: Inventory sprite for Wooden Sword in Minecraft as shown in-game linking to Minecraft:Wooden Sword with description: Wooden Sword When in Main Hand:  4 Attack Damage  1.6 Attack SpeedInvicon Stone Sword.png: Inventory sprite for Stone Sword in Minecraft as shown in-game linking to Minecraft:Stone Sword with description: Stone Sword When in Main Hand:  5 Attack Damage  1.6 Attack SpeedInvicon Iron Sword.png: Inventory sprite for Iron Sword in Minecraft as shown in-game linking to Minecraft:Iron Sword with description: Iron Sword When in Main Hand:  6 Attack Damage  1.6 Attack SpeedInvicon Golden Sword.png: Inventory sprite for Golden Sword in Minecraft as shown in-game linking to Minecraft:Golden Sword with description: Golden Sword When in Main Hand:  4 Attack Damage  1.6 Attack SpeedInvicon Diamond Sword.png: Inventory sprite for Diamond Sword in Minecraft as shown in-game linking to Minecraft:Diamond Sword with description: Diamond Sword When in Main Hand:  7 Attack Damage  1.6 Attack Speed
The durability of the two swords is added together, plus an extra 5% durability.
Elytra 2x Damaged Elytra
Invicon Damaged Elytra.png: Inventory sprite for Damaged Elytra in Minecraft as shown in-game linking to Minecraft:Damaged Elytra with description: ElytraInvicon Damaged Elytra.png: Inventory sprite for Damaged Elytra in Minecraft as shown in-game linking to Minecraft:Damaged Elytra with description: ElytraInvicon Elytra.png: Inventory sprite for Elytra in Minecraft as shown in-game linking to Minecraft:Elytra with description:
The durability of the two elytra pairs are added together, plus an extra 5% durability.

See also

de:Vorlage:Schleifsteinrezept es:Plantilla:Afiladora fr:Modèle:Meulage it:Template:Macinazione ja:テンプレート:Grinding ko:틀:Grinding lzh:模板:Grinding pt:Predefinição:Esmerilhamento th:แม่แบบ:Grinding uk:Шаблон:Точення zh:Template:Grinding

[view] [edit] [history] [refresh]The above documentation is transcluded from Template:Grinding/doc.