Module:Infobox/doc: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(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>")
 
(Stub of updated doc. Info on parsing methods moved to Module:Infobox/parsing)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Lua methods used for the infobox template
Lua methods used by [[Template:Infobox]]. Uses Lua methods from [[Module:Infobox/parsing]] and [[Module:Util]].


== Functions ==
Edit this documentation on [[Module:Infobox/doc]].


=== item_parsing ===
== Methods ==
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.
=== base_tab ===
 
=== space_age_tab ===


<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 12:38, 25 October 2024

Lua methods used by Template:Infobox. Uses Lua methods from Module:Infobox/parsing and Module:Util.

Edit this documentation on Module:Infobox/doc.

Methods

base_tab

space_age_tab