<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.boxofrocks.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ASchematic</id>
	<title>Module:Schematic - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.boxofrocks.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ASchematic"/>
	<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Module:Schematic&amp;action=history"/>
	<updated>2026-05-31T00:07:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.boxofrocks.net/index.php?title=Module:Schematic&amp;diff=895&amp;oldid=prev</id>
		<title>BoxWiki: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Module:Schematic&amp;diff=895&amp;oldid=prev"/>
		<updated>2021-05-13T20:10:01Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:10, 13 May 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>BoxWiki</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.boxofrocks.net/index.php?title=Module:Schematic&amp;diff=894&amp;oldid=prev</id>
		<title>Redstone&gt;Fadyblok240: Undo revision 1836229 by Fadyblok240 (talk)</title>
		<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Module:Schematic&amp;diff=894&amp;oldid=prev"/>
		<updated>2021-02-08T21:38:52Z</updated>

		<summary type="html">&lt;p&gt;Undo revision 1836229 by &lt;a href=&quot;/Special:Contributions/Fadyblok240&quot; title=&quot;Special:Contributions/Fadyblok240&quot;&gt;Fadyblok240&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:Fadyblok240&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Fadyblok240 (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
function p.table( f )&lt;br /&gt;
	local args = f.args&lt;br /&gt;
	if args[1] == nil then&lt;br /&gt;
		args = f:getParent().args&lt;br /&gt;
	end&lt;br /&gt;
	local caption = args.caption or ''&lt;br /&gt;
	local captionstyle = args.captionstyle or ''&lt;br /&gt;
	local clear = args.clear or ''&lt;br /&gt;
	local float = args.float or ''&lt;br /&gt;
	local size = tonumber( args.size ) or 32&lt;br /&gt;
	local style = args.style or ''&lt;br /&gt;
	local tablestyle = args.tablestyle or ''&lt;br /&gt;
	local sprite = require( 'Module:Sprite' ).sprite&lt;br /&gt;
	local ids = mw.loadData( 'Module:Schematic/data' ).ids&lt;br /&gt;
	local titles = mw.loadData( 'Module:Schematic/titles' )&lt;br /&gt;
	local isTable = false&lt;br /&gt;
	if args[2] or '' ~= '' then&lt;br /&gt;
		isTable = true&lt;br /&gt;
	end&lt;br /&gt;
	local categories = {}&lt;br /&gt;
	&lt;br /&gt;
	if size ~= 32 then&lt;br /&gt;
		tablestyle = 'font-size:' .. size .. 'px;' .. tablestyle&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local cols = 0&lt;br /&gt;
	local maxcols = 0&lt;br /&gt;
	local schematic = {}&lt;br /&gt;
	local title = ''&lt;br /&gt;
	for _, cell in ipairs( args ) do&lt;br /&gt;
		cell = mw.text.trim( cell )&lt;br /&gt;
		if isTable and cell ~= '-' then&lt;br /&gt;
			cols = cols + 1&lt;br /&gt;
			if cols &amp;gt; maxcols then&lt;br /&gt;
				maxcols = cols&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if cell == '' or cell == 'air' then&lt;br /&gt;
			if isTable then&lt;br /&gt;
				table.insert( schematic, '|' )&lt;br /&gt;
			else&lt;br /&gt;
				table.insert( schematic, '&amp;lt;br&amp;gt;' )&lt;br /&gt;
			end&lt;br /&gt;
		elseif isTable and cell == '-' then&lt;br /&gt;
			cols = 0&lt;br /&gt;
			&lt;br /&gt;
			table.insert( schematic, '|-' )&lt;br /&gt;
		else&lt;br /&gt;
			local layers = {}&lt;br /&gt;
			title = {}&lt;br /&gt;
			for layer in mw.text.gsplit( cell, '%s*+%s*' ) do&lt;br /&gt;
				local idData = ids[layer]&lt;br /&gt;
				if idData then&lt;br /&gt;
					local image, spriteCat = sprite{&lt;br /&gt;
						data = 'Schematic/data',&lt;br /&gt;
						iddata = idData,&lt;br /&gt;
						scale = size / 16&lt;br /&gt;
					}&lt;br /&gt;
					table.insert( layers, image )&lt;br /&gt;
					table.insert( categories, spriteCat )&lt;br /&gt;
					&lt;br /&gt;
					if titles[layer] then&lt;br /&gt;
						table.insert( title, 1, titles[layer] )&lt;br /&gt;
					end&lt;br /&gt;
				else&lt;br /&gt;
					table.insert( layers, '&amp;lt;span class=&amp;quot;text&amp;quot;&amp;gt;' .. layer .. '&amp;lt;/span&amp;gt;' )&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if args.text then&lt;br /&gt;
				table.insert( layers, '&amp;lt;span class=&amp;quot;text&amp;quot;&amp;gt;' .. args.text .. '&amp;lt;/span&amp;gt;' )&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			title = table.concat( title, ' over ' )&lt;br /&gt;
			layers = table.concat( layers, '' )&lt;br /&gt;
			if isTable then&lt;br /&gt;
				if layers ~= '' then&lt;br /&gt;
					layers = '| title=&amp;quot;' .. title .. '&amp;quot; | &amp;lt;div&amp;gt;' .. layers .. '&amp;lt;/div&amp;gt;'&lt;br /&gt;
				else&lt;br /&gt;
					layers = '|'&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			table.insert( schematic, layers )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local captionwidth = maxcols * ( size + 1 ) + 1&lt;br /&gt;
&lt;br /&gt;
	if isTable then&lt;br /&gt;
		table.insert( schematic, 1, '{|' .. 'class=&amp;quot;schematic&amp;quot; style=&amp;quot;min-width:' .. captionwidth .. 'px;' .. tablestyle .. '&amp;quot;' )&lt;br /&gt;
		table.insert( schematic, '|}' )&lt;br /&gt;
	else&lt;br /&gt;
		if #schematic == 0 then&lt;br /&gt;
			table.insert( schematic, '&amp;lt;br&amp;gt;' )&lt;br /&gt;
		end&lt;br /&gt;
		table.insert( schematic, 1, '&amp;lt;span class=&amp;quot;schematic&amp;quot; style=&amp;quot;' .. tablestyle .. '&amp;quot; title=&amp;quot;' .. title .. '&amp;quot;&amp;gt;' )&lt;br /&gt;
		table.insert( schematic, '&amp;lt;/span&amp;gt;' )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local out&lt;br /&gt;
	if caption ~= '' or float ~= '' then&lt;br /&gt;
		if float == '' then&lt;br /&gt;
			float = 'right'&lt;br /&gt;
		end&lt;br /&gt;
		if clear == '' then&lt;br /&gt;
			clear = 'none'&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if captionwidth &amp;lt; 182 then&lt;br /&gt;
			captionwidth = 182&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if not args.nohelp and mw.title.getCurrentTitle().prefixedText ~= 'Help:Schematic' then&lt;br /&gt;
			caption = '&amp;lt;span style=&amp;quot;float:right;padding-left:0.5em&amp;quot;&amp;gt;' ..&lt;br /&gt;
				f:expandTemplate{&lt;br /&gt;
					title = 'CommentSprite',&lt;br /&gt;
					args = {&lt;br /&gt;
						'1',&lt;br /&gt;
						link = 'Help:Schematic',&lt;br /&gt;
						title = 'Schematic help'&lt;br /&gt;
					}&lt;br /&gt;
				} ..&lt;br /&gt;
				'&amp;lt;/span&amp;gt;' .. caption&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		out = {&lt;br /&gt;
			'&amp;lt;div class=&amp;quot;thumb t' .. float .. '&amp;quot; style=&amp;quot;overflow: auto; clear:' .. clear .. ';' .. style .. '&amp;quot;&amp;gt;',&lt;br /&gt;
				'&amp;lt;div class=&amp;quot;thumbinner&amp;quot; style=&amp;quot;display:inline-block;min-width:' .. captionwidth .. 'px&amp;quot;&amp;gt;\n',&lt;br /&gt;
					table.concat( schematic, '\n' ),&lt;br /&gt;
					'\n&amp;lt;div class=&amp;quot;thumbcaption&amp;quot; style=&amp;quot;max-width:' .. captionwidth .. 'px;' .. captionstyle .. '&amp;quot;&amp;gt;\n' .. caption .. '&amp;lt;/div&amp;gt;',&lt;br /&gt;
				'&amp;lt;/div&amp;gt;',&lt;br /&gt;
			'&amp;lt;/div&amp;gt;'&lt;br /&gt;
		}&lt;br /&gt;
		out = table.concat( out )&lt;br /&gt;
	else&lt;br /&gt;
		if isTable then&lt;br /&gt;
			out = table.concat( schematic, '\n' )&lt;br /&gt;
		else&lt;br /&gt;
			-- Inline schematic should be a single line&lt;br /&gt;
			out = table.concat( schematic )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	out = out:gsub( ' style=&amp;quot;&amp;quot;', '' ):gsub( ' title=&amp;quot;&amp;quot;%s*|?', '' )&lt;br /&gt;
	&lt;br /&gt;
	return out .. table.concat( categories )&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Redstone&gt;Fadyblok240</name></author>
		
	</entry>
</feed>