Module:Infobox/doc

From Official Factorio Wiki
< Module:Infobox
Revision as of 17:17, 1 October 2024 by Bilka (talk | contribs) (Created page with "Lua methods used for the infobox template == Functions == === item_parsing === Takes one argument in the form of a string. The string is expected to have the following format: <pre>Iron plate, 2 + Iron ore, 45 + Electronic circuit, 5</pre> This string is split so that each entry between a <code>+</code> is forwarded to Template:Icon/special so that it displays the item and has the number as the caption. <noinclude>Category:Template documentation</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Infobox

Lua methods used for the infobox template

Functions

item_parsing

Takes one argument in the form of a string. The string is expected to have the following format:

Iron plate, 2 + Iron ore, 45 + Electronic circuit, 5

This string is split so that each entry between a + is forwarded to Template:Icon/special so that it displays the item and has the number as the caption.