Template:MaterialReactions

From Noita Wiki
Jump to navigation Jump to search

This set of templates provides the building blocks to generate a neat table of material reactions. Do not transclude this template directly except on the /Reactions subpage of a material tag category page.

Usage

{{MaterialReactions/start}}

{{MaterialReactions/row | rate = 50 | reagents = Copper + Flummoxium | products = Levitatium + Levitatium}}

{{MaterialReactions/end}}

Example

Reaction Rate Reagents Products
50 Copper + Flummoxium Levitatium + Levitatium

Setting up a Category Page

Category pages of the form Materials tagged with X can be setup to work with this template as follows:

  1. Move their Reactions table to a /Reactions subpage
  2. Use {{MaterialReactions/row}} in the subpage to define the table rows, omitting the header and footer
  3. Transclude them in the Category page as shown above, using the `/start`, `/tag`, and `/end` sub-templates.
  4. (optional) tidy up the subpage by defining includeonly/noinclude sections, with the noinclude section transcluding this page directly. See Category:Materials tagged with alchemy/Reactions for an example.