<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mirror.maramowicz.dev/index.php?action=history&amp;feed=atom&amp;title=Module%3AGrid</id>
	<title>Module:Grid - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mirror.maramowicz.dev/index.php?action=history&amp;feed=atom&amp;title=Module%3AGrid"/>
	<link rel="alternate" type="text/html" href="https://mirror.maramowicz.dev/index.php?title=Module:Grid&amp;action=history"/>
	<updated>2026-04-23T18:05:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://mirror.maramowicz.dev/index.php?title=Module:Grid&amp;diff=9553&amp;oldid=prev</id>
		<title>imported&gt;JejChainstar: Created page with &quot;--&lt;syntaxhighlight lang=&quot;lua&quot;&gt; local p = {} -- Individual cell function p.grid(item)       if (item == nil) then return { } end       local iLink = nil     local iFill = nil --for fluid_cell implementation     local iNum= math.floor( string.match(item, &#039;,%s*(%d+)&#039; ) or 0 )     local iName = string.sub(string.match(item, &#039;.+,&#039;) or item..&#039; &#039;, 1, -2)     local tooltip = string.match(item, &#039;%[.+%]&#039;)     if tooltip ~= nil then     	iName = string.sub(iName, string.len(too...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mirror.maramowicz.dev/index.php?title=Module:Grid&amp;diff=9553&amp;oldid=prev"/>
		<updated>2021-12-29T11:14:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;--&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; local p = {} -- Individual cell function p.grid(item)       if (item == nil) then return { } end       local iLink = nil     local iFill = nil --&lt;a href=&quot;/index.php?title=For_fluid_cell_implementation&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;For fluid cell implementation (page does not exist)&quot;&gt;for fluid_cell implementation&lt;/a&gt;     local iNum= math.floor( string.match(item, &amp;#039;,%s*(%d+)&amp;#039; ) or 0 )     local iName = string.sub(string.match(item, &amp;#039;.+,&amp;#039;) or item..&amp;#039; &amp;#039;, 1, -2)     local tooltip = string.match(item, &amp;#039;%[.+%]&amp;#039;)     if tooltip ~= nil then     	iName = string.sub(iName, string.len(too...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:14, 29 December 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;JejChainstar</name></author>
	</entry>
	<entry>
		<id>https://mirror.maramowicz.dev/index.php?title=Module:Grid&amp;diff=4630&amp;oldid=prev</id>
		<title>imported&gt;JejChainstar: Created page with &quot;--&lt;syntaxhighlight lang=&quot;lua&quot;&gt; local p = {} -- Individual cell function p.grid(item)       if (item == nil) then return { } end       local iLink = nil     local iFill = nil --for fluid_cell implementation     local iNum= math.floor( string.match(item, &#039;,%s*(%d+)&#039; ) or 0 )     local iName = string.sub(string.match(item, &#039;.+,&#039;) or item..&#039; &#039;, 1, -2)     local tooltip = string.match(item, &#039;%[.+%]&#039;)     if tooltip ~= nil then     	iName = string.sub(iName, string.len(too...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mirror.maramowicz.dev/index.php?title=Module:Grid&amp;diff=4630&amp;oldid=prev"/>
		<updated>2021-12-29T11:14:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;--&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; local p = {} -- Individual cell function p.grid(item)       if (item == nil) then return { } end       local iLink = nil     local iFill = nil --&lt;a href=&quot;/index.php?title=For_fluid_cell_implementation&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;For fluid cell implementation (page does not exist)&quot;&gt;for fluid_cell implementation&lt;/a&gt;     local iNum= math.floor( string.match(item, &amp;#039;,%s*(%d+)&amp;#039; ) or 0 )     local iName = string.sub(string.match(item, &amp;#039;.+,&amp;#039;) or item..&amp;#039; &amp;#039;, 1, -2)     local tooltip = string.match(item, &amp;#039;%[.+%]&amp;#039;)     if tooltip ~= nil then     	iName = string.sub(iName, string.len(too...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:14, 29 December 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;JejChainstar</name></author>
	</entry>
	<entry>
		<id>https://mirror.maramowicz.dev/index.php?title=Module:Grid&amp;diff=412&amp;oldid=prev</id>
		<title>imported&gt;JejChainstar: Created page with &quot;--&lt;syntaxhighlight lang=&quot;lua&quot;&gt; local p = {} -- Individual cell function p.grid(item)       if (item == nil) then return { } end       local iLink = nil     local iFill = nil --for fluid_cell implementation     local iNum= math.floor( string.match(item, &#039;,%s*(%d+)&#039; ) or 0 )     local iName = string.sub(string.match(item, &#039;.+,&#039;) or item..&#039; &#039;, 1, -2)     local tooltip = string.match(item, &#039;%[.+%]&#039;)     if tooltip ~= nil then     	iName = string.sub(iName, string.len(too...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mirror.maramowicz.dev/index.php?title=Module:Grid&amp;diff=412&amp;oldid=prev"/>
		<updated>2021-12-29T11:14:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;--&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; local p = {} -- Individual cell function p.grid(item)       if (item == nil) then return { } end       local iLink = nil     local iFill = nil --&lt;a href=&quot;/index.php?title=For_fluid_cell_implementation&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;For fluid cell implementation (page does not exist)&quot;&gt;for fluid_cell implementation&lt;/a&gt;     local iNum= math.floor( string.match(item, &amp;#039;,%s*(%d+)&amp;#039; ) or 0 )     local iName = string.sub(string.match(item, &amp;#039;.+,&amp;#039;) or item..&amp;#039; &amp;#039;, 1, -2)     local tooltip = string.match(item, &amp;#039;%[.+%]&amp;#039;)     if tooltip ~= nil then     	iName = string.sub(iName, string.len(too...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local p = {}&lt;br /&gt;
-- Individual cell&lt;br /&gt;
function p.grid(item)&lt;br /&gt;
 &lt;br /&gt;
    if (item == nil) then return { } end&lt;br /&gt;
 &lt;br /&gt;
    local iLink = nil&lt;br /&gt;
    local iFill = nil --[[for fluid_cell implementation]]&lt;br /&gt;
    local iNum= math.floor( string.match(item, &amp;#039;,%s*(%d+)&amp;#039; ) or 0 )&lt;br /&gt;
    local iName = string.sub(string.match(item, &amp;#039;.+,&amp;#039;) or item..&amp;#039; &amp;#039;, 1, -2)&lt;br /&gt;
    local tooltip = string.match(item, &amp;#039;%[.+%]&amp;#039;)&lt;br /&gt;
    if tooltip ~= nil then&lt;br /&gt;
    	iName = string.sub(iName, string.len(tooltip)+1)&lt;br /&gt;
    	tooltip = string.sub(tooltip,2,-2)&lt;br /&gt;
    end&lt;br /&gt;
    local hasPercentage = string.match(item, &amp;quot;[%%]&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
	local aliases = mw.loadData(&amp;#039;Module:Grid/Aliases&amp;#039;)&lt;br /&gt;
	if tooltip == nil then&lt;br /&gt;
		if aliases[iName] then&lt;br /&gt;
			tooltip = aliases[iName]&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if aliases[tooltip] then&lt;br /&gt;
			tooltip = aliases[tooltip]&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
    if(iName:find(&amp;quot;~&amp;quot;)) then&lt;br /&gt;
        iLink = string.match(iName, &amp;#039;~(.+)&amp;#039;)&lt;br /&gt;
        iName = string.match(iName, &amp;#039;(.+)~&amp;#039;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if(iName:find(&amp;quot;%^&amp;quot;)) then&lt;br /&gt;
        local fhandler = mw.loadData(&amp;#039;Module:Grid/FluidHandler&amp;#039;)&lt;br /&gt;
        iFill = string.match(iName, &amp;#039;%^(.+)&amp;#039;)&lt;br /&gt;
        iName = string.match(iName, &amp;#039;(.+)%^&amp;#039;)&lt;br /&gt;
        if fhandler[iFill] then&lt;br /&gt;
          iFill = fhandler[iFill]  --[[rename]]&lt;br /&gt;
        else  --[[invalid fluid, so remove it]]&lt;br /&gt;
          iFill = nil&lt;br /&gt;
        end&lt;br /&gt;
        if fhandler[iName] then&lt;br /&gt;
          iName = fhandler[iName]  --[[rename]]&lt;br /&gt;
        else  --[[invalid container, so remove fluid]]&lt;br /&gt;
          iFill = nil&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
 &lt;br /&gt;
    paras = { }&lt;br /&gt;
 &lt;br /&gt;
    paras[&amp;quot;name&amp;quot;] = iName&lt;br /&gt;
 &lt;br /&gt;
    if(iLink ~= nil) then paras[&amp;quot;link&amp;quot;]=iLink end&lt;br /&gt;
    if(iFill ~= nil) then paras[&amp;quot;fill&amp;quot;]=iFill end&lt;br /&gt;
    if(iNum &amp;gt; 1 or hasPercentage) then paras[&amp;quot;number&amp;quot;]=iNum end&lt;br /&gt;
    if(hasPercentage) then paras[&amp;quot;percent&amp;quot;]=&amp;quot;x&amp;quot; end&lt;br /&gt;
    if(tooltip ~= nil) then paras[&amp;quot;tooltip&amp;quot;]=tooltip end&lt;br /&gt;
    &lt;br /&gt;
    return paras&lt;br /&gt;
 &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Gets a cell or animated cell&lt;br /&gt;
function p.cell(f, item) &lt;br /&gt;
 &lt;br /&gt;
    if (item == nil) then return &amp;#039;&amp;#039; end&lt;br /&gt;
 &lt;br /&gt;
    if (item:find(&amp;#039;;&amp;#039;)) then&lt;br /&gt;
        local text = &amp;#039;&amp;lt;div class=\&amp;quot;animated-grids\&amp;quot;&amp;gt;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
        for frame in mw.text.gsplit( item, &amp;#039;%s*;%s*&amp;#039; ) do&lt;br /&gt;
 &lt;br /&gt;
            text = text .. &amp;#039;&amp;lt;span class=\&amp;quot;animated-grid\&amp;quot;&amp;gt;&amp;#039;&lt;br /&gt;
            if frame == &amp;#039;Blank&amp;#039; or frame == &amp;#039;blank&amp;#039; then&lt;br /&gt;
               text = text .. &amp;#039;&amp;#039;&lt;br /&gt;
            else&lt;br /&gt;
               text = text .. f:expandTemplate{ title=&amp;#039;Grid&amp;#039;, args = p.grid(frame) }&lt;br /&gt;
            end&lt;br /&gt;
            text = text .. &amp;#039;&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
        end&lt;br /&gt;
 &lt;br /&gt;
        text = text .. &amp;#039;&amp;lt;/div&amp;gt;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
        return text&lt;br /&gt;
    end&lt;br /&gt;
 &lt;br /&gt;
    return f:expandTemplate{ title=&amp;#039;Grid&amp;#039;, args = p.grid(item) }&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
function p.liquid(f, item) &lt;br /&gt;
 &lt;br /&gt;
    if (item == nil) then return &amp;#039;&amp;#039; end&lt;br /&gt;
 &lt;br /&gt;
    local text = &amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
    for i=1,3,1 do&lt;br /&gt;
        text = text .. f:expandTemplate{ title=&amp;#039;Grid&amp;#039;, args = p.grid(item) }&lt;br /&gt;
    end&lt;br /&gt;
 &lt;br /&gt;
    return text&lt;br /&gt;
end&lt;br /&gt;
--]]&lt;br /&gt;
&lt;br /&gt;
function p.tank(f)&lt;br /&gt;
	local args = f&lt;br /&gt;
	if f == mw.getCurrentFrame() then&lt;br /&gt;
		args = f:getParent().args&lt;br /&gt;
	end&lt;br /&gt;
	local link = args.link or &amp;#039;&amp;#039;&lt;br /&gt;
	local tank = args.tank or &amp;#039;&amp;#039;&lt;br /&gt;
	local left = args.left or &amp;#039;&amp;#039;&lt;br /&gt;
	local width = args.width or &amp;#039;24&amp;#039;&lt;br /&gt;
	local top = tonumber(args.top) or 92&lt;br /&gt;
	local height = tonumber(args.height) or 94&lt;br /&gt;
	local max = tonumber(args.max) or 10000&lt;br /&gt;
	local fill = tonumber(args.fill) or 0&lt;br /&gt;
	if fill &amp;gt; max then&lt;br /&gt;
		top = top - height&lt;br /&gt;
		up = height&lt;br /&gt;
		down = height * 2&lt;br /&gt;
	else&lt;br /&gt;
		top = top - ((height/max)*fill)&lt;br /&gt;
		up = (height/max)*fill&lt;br /&gt;
		down = height + ((height/max)*fill)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local div = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
	div&lt;br /&gt;
		:addClass(&amp;#039;tooltip&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;left&amp;#039;, left .. &amp;#039;px&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;top&amp;#039;, tostring(top) .. &amp;#039;px&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;position&amp;#039;, &amp;#039;absolute&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;width&amp;#039;, width .. &amp;#039;px&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;height&amp;#039;, tostring(height) .. &amp;#039;px&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;clip&amp;#039;, &amp;#039;rect(&amp;#039; .. tostring(up) .. &amp;#039;px,&amp;#039; .. tostring(width) ..&amp;#039;px,&amp;#039; .. tostring(down) .. &amp;#039;px,0px)&amp;#039;)&lt;br /&gt;
		:attr(&amp;#039;title&amp;#039;, tank)&lt;br /&gt;
		:wikitext(&amp;#039;[[File:Tank &amp;#039; .. tank .. &amp;#039;.png|&amp;#039; .. tostring(width) .. &amp;#039;px|link=&amp;#039; .. link .. &amp;#039;|alt=]]&amp;#039;)&lt;br /&gt;
	return tostring( div )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function p.gc ( f )&lt;br /&gt;
&lt;br /&gt;
   local args = f&lt;br /&gt;
&lt;br /&gt;
   if f == mw.getCurrentFrame() then&lt;br /&gt;
      args = f:getParent().args&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   return p.cell(f, (args[1] or args.name))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function p.craftingTable( f )&lt;br /&gt;
 &lt;br /&gt;
    local args = f&lt;br /&gt;
 &lt;br /&gt;
	if f == mw.getCurrentFrame() then&lt;br /&gt;
		args = f:getParent().args&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
    local gridArgs = { &lt;br /&gt;
 &lt;br /&gt;
        A1=p.cell(f, args.A1),&lt;br /&gt;
        A2=p.cell(f, args.A2),&lt;br /&gt;
        A3=p.cell(f, args.A3),&lt;br /&gt;
 &lt;br /&gt;
        B1=p.cell(f, args.B1),&lt;br /&gt;
        B2=p.cell(f, args.B2),&lt;br /&gt;
        B3=p.cell(f, args.B3),&lt;br /&gt;
 &lt;br /&gt;
        C1=p.cell(f, args.C1),&lt;br /&gt;
        C2=p.cell(f, args.C2),&lt;br /&gt;
        C3=p.cell(f, args.C3),&lt;br /&gt;
 &lt;br /&gt;
        Output=p.cell(f, args.Output),&lt;br /&gt;
 &lt;br /&gt;
        Break=args.Break&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
   return f:expandTemplate{ title=&amp;#039;Crafting&amp;#039;, args= gridArgs}&lt;br /&gt;
 &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.furnace( f )&lt;br /&gt;
 &lt;br /&gt;
    local args = f&lt;br /&gt;
 &lt;br /&gt;
    if f == mw.getCurrentFrame() then&lt;br /&gt;
		args = f:getParent().args&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
    local gridArgs = { &lt;br /&gt;
        Input=p.cell(f, (args.Input or args.Top)),&lt;br /&gt;
        Fuel=p.cell(f, (args.Fuel or args.Bottom)),&lt;br /&gt;
        Output=p.cell(f, args.Output),&lt;br /&gt;
        Break=args.Break&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
   return f:expandTemplate{ title=&amp;#039;Crafting/Furnace&amp;#039;, args= gridArgs}&lt;br /&gt;
 &lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
function p.turningNumber(number)&lt;br /&gt;
	if number == &amp;#039;1&amp;#039; then return 22&lt;br /&gt;
	elseif number == &amp;#039;2&amp;#039; then return 44&lt;br /&gt;
	elseif number == &amp;#039;3&amp;#039; then return 66&lt;br /&gt;
	elseif number == &amp;#039;4&amp;#039; then return 88&lt;br /&gt;
	else return 110&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function p.turningBarrel(number,t)&lt;br /&gt;
	if t == nil then&lt;br /&gt;
		if number == &amp;#039;1&amp;#039; then return 38&lt;br /&gt;
		elseif number == &amp;#039;2&amp;#039; then return 46&lt;br /&gt;
		elseif number == &amp;#039;3&amp;#039; then return 52&lt;br /&gt;
		elseif number == &amp;#039;4&amp;#039; then return 58&lt;br /&gt;
		else return 64&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if number == &amp;#039;1&amp;#039; then return 26&lt;br /&gt;
		elseif number == &amp;#039;2&amp;#039; then return 20&lt;br /&gt;
		elseif number == &amp;#039;3&amp;#039; then return 14&lt;br /&gt;
		elseif number == &amp;#039;4&amp;#039; then return 6&lt;br /&gt;
		else return 0&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function p.turning(f)&lt;br /&gt;
	local args = f&lt;br /&gt;
	if f == mw.getCurrentFrame() then&lt;br /&gt;
		args = f:getParent().args&lt;br /&gt;
	end&lt;br /&gt;
	local gridArgs = {Output=p.cell(f, args.Output)}&lt;br /&gt;
	if args.float or args.Float then gridArgs.float = args.float or args.Float end&lt;br /&gt;
	if args.nobreak then gridArgs.nobreak = args.nobreak end&lt;br /&gt;
	&lt;br /&gt;
	if args.Output == nil then return f:expandTemplate{title=&amp;#039;Grid/Turning Table/Return&amp;#039;, args=gridArgs} else gridArgs.Output = args.Output end&lt;br /&gt;
&lt;br /&gt;
	local valid = {Drill=&amp;#039;Iron&amp;#039;, Handle=&amp;#039;Iron&amp;#039;, Axle=&amp;#039;Iron&amp;#039;, Wood=&amp;#039;Wooden&amp;#039;, Wooden=&amp;#039;Wooden&amp;#039;}&lt;br /&gt;
	if valid[args.Output] == nil then&lt;br /&gt;
		return f:expandTemplate{title=&amp;#039;Grid/Turning Table/Return&amp;#039;, args=gridArgs}&lt;br /&gt;
	else&lt;br /&gt;
		gridArgs.Type = valid[args.Output]&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if gridArgs.Type == &amp;#039;Wooden&amp;#039; then&lt;br /&gt;
		bounce = 3&lt;br /&gt;
	else&lt;br /&gt;
		bounce = 5&lt;br /&gt;
	end&lt;br /&gt;
	gridArgs.top = 70&lt;br /&gt;
	if args.Layout ~= nil and args.Layout:find(&amp;#039;,&amp;#039;) then&lt;br /&gt;
		local layout = mw.text.split(args.Layout,&amp;quot;%g*,%g*&amp;quot;)&lt;br /&gt;
		for i = 1, #layout do&lt;br /&gt;
			if tonumber(layout[i]) &amp;gt; bounce then&lt;br /&gt;
				layout[i] = tostring(bounce)&lt;br /&gt;
			elseif tonumber(layout[i]) &amp;lt; 1 then&lt;br /&gt;
				layout[i] = &amp;quot;1&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
			if tonumber(layout[i]) == 5 then&lt;br /&gt;
				gridArgs.top = 71&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		gridArgs.n1 = p.turningNumber(layout[1])&lt;br /&gt;
		gridArgs.b1 = p.turningBarrel(layout[1])&lt;br /&gt;
		gridArgs.b1t = p.turningBarrel(layout[1],1)&lt;br /&gt;
		gridArgs.n2 = p.turningNumber(layout[2])&lt;br /&gt;
		gridArgs.b2 = p.turningBarrel(layout[2])&lt;br /&gt;
		gridArgs.b2t = p.turningBarrel(layout[2],1)&lt;br /&gt;
		gridArgs.n3 = p.turningNumber(layout[3] or bounce)&lt;br /&gt;
		gridArgs.b3 = p.turningBarrel(layout[3] or bounce)&lt;br /&gt;
		gridArgs.b3t = p.turningBarrel((layout[3] or bounce),1)&lt;br /&gt;
		gridArgs.n4 = p.turningNumber(layout[4] or bounce)&lt;br /&gt;
		gridArgs.b4 = p.turningBarrel(layout[4] or bounce)&lt;br /&gt;
		gridArgs.b4t = p.turningBarrel((layout[4] or bounce),1)&lt;br /&gt;
		gridArgs.n5 = p.turningNumber(layout[5] or bounce)&lt;br /&gt;
		gridArgs.b5 = p.turningBarrel(layout[5] or bounce)&lt;br /&gt;
		gridArgs.b5t = p.turningBarrel((layout[5] or bounce),1)&lt;br /&gt;
	else&lt;br /&gt;
		barrelbounce = p.turningBarrel(bounce)&lt;br /&gt;
		barreltbounce = p.turningBarrel(bounce,1)&lt;br /&gt;
		bounce = p.turningNumber(bounce)&lt;br /&gt;
		gridArgs.n1 = bounce&lt;br /&gt;
		gridArgs.b1 = barrelbounce&lt;br /&gt;
		gridArgs.b1t = barreltbounce&lt;br /&gt;
		gridArgs.n2 = bounce&lt;br /&gt;
		gridArgs.b2 = barrelbounce&lt;br /&gt;
		gridArgs.b2t = barreltbounce&lt;br /&gt;
		gridArgs.n3 = bounce&lt;br /&gt;
		gridArgs.b3 = barrelbounce&lt;br /&gt;
		gridArgs.b3t = barreltbounce&lt;br /&gt;
		gridArgs.n4 = bounce&lt;br /&gt;
		gridArgs.b4 = barrelbounce&lt;br /&gt;
		gridArgs.b4t = barreltbounce&lt;br /&gt;
		gridArgs.n5 = bounce&lt;br /&gt;
		gridArgs.b5 = barrelbounce&lt;br /&gt;
		gridArgs.b5t = barreltbounce&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return f:expandTemplate{title=&amp;#039;Grid/Turning Table/Return&amp;#039;, args=gridArgs}&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;br /&gt;
--&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;JejChainstar</name></author>
	</entry>
</feed>