<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hoodedhorse.com/Super_Fantasy_Kingdom/index.php?action=history&amp;feed=atom&amp;title=Module%3ATreeChart</id>
	<title>Module:TreeChart - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hoodedhorse.com/Super_Fantasy_Kingdom/index.php?action=history&amp;feed=atom&amp;title=Module%3ATreeChart"/>
	<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Super_Fantasy_Kingdom/index.php?title=Module:TreeChart&amp;action=history"/>
	<updated>2026-10-03T21:43:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://wiki.hoodedhorse.com/Super_Fantasy_Kingdom/index.php?title=Module:TreeChart&amp;diff=16758&amp;oldid=prev</id>
		<title>76561198021843184: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Super_Fantasy_Kingdom/index.php?title=Module:TreeChart&amp;diff=16758&amp;oldid=prev"/>
		<updated>2025-10-21T23:46:41Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:46, 21 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&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;!-- diff cache key SFKI_:diff:1.41:old-16757:rev-16758 --&gt;
&lt;/table&gt;</summary>
		<author><name>76561198021843184</name></author>
	</entry>
	<entry>
		<id>https://wiki.hoodedhorse.com/Super_Fantasy_Kingdom/index.php?title=Module:TreeChart&amp;diff=16757&amp;oldid=prev</id>
		<title>wgg&gt;Cadaei: Created page with &quot;local p = {}  function p.treeChart(f) 	return p.create(f:getParent().args) end  function p.create(args)	 	if args[1] == nil then 		return &#039;&#039; 	end 		 	local list = {} 	-- node content level is indicated by dashes before the content 	local currentLevel = 0 	for _,node in ipairs(args) do 		-- separate level indicator and content 		local nodeLevel, nodeContent = string.match(node, &#039;^%s*(%-*)%s*(.-)%s*$&#039;) 		nodeLevel = string.len(nodeLevel) 		if nodeLevel &gt; currentLevel then...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Super_Fantasy_Kingdom/index.php?title=Module:TreeChart&amp;diff=16757&amp;oldid=prev"/>
		<updated>2023-11-03T13:54:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.treeChart(f) 	return p.create(f:getParent().args) end  function p.create(args)	 	if args[1] == nil then 		return &amp;#039;&amp;#039; 	end 		 	local list = {} 	-- node content level is indicated by dashes before the content 	local currentLevel = 0 	for _,node in ipairs(args) do 		-- separate level indicator and content 		local nodeLevel, nodeContent = string.match(node, &amp;#039;^%s*(%-*)%s*(.-)%s*$&amp;#039;) 		nodeLevel = string.len(nodeLevel) 		if nodeLevel &amp;gt; currentLevel then...&amp;quot;&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;
&lt;br /&gt;
function p.treeChart(f)&lt;br /&gt;
	return p.create(f:getParent().args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.create(args)	&lt;br /&gt;
	if args[1] == nil then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
		&lt;br /&gt;
	local list = {}&lt;br /&gt;
	-- node content level is indicated by dashes before the content&lt;br /&gt;
	local currentLevel = 0&lt;br /&gt;
	for _,node in ipairs(args) do&lt;br /&gt;
		-- separate level indicator and content&lt;br /&gt;
		local nodeLevel, nodeContent = string.match(node, &amp;#039;^%s*(%-*)%s*(.-)%s*$&amp;#039;)&lt;br /&gt;
		nodeLevel = string.len(nodeLevel)&lt;br /&gt;
		if nodeLevel &amp;gt; currentLevel then&lt;br /&gt;
			-- only one level up is allowed per entry&lt;br /&gt;
			table.insert(list, &amp;#039;&amp;lt;ul&amp;gt;&amp;#039;)&lt;br /&gt;
		elseif nodeLevel &amp;lt; currentLevel then&lt;br /&gt;
			for i = currentLevel, nodeLevel + 1, -1 do&lt;br /&gt;
				table.insert(list, &amp;#039;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&amp;#039;)&lt;br /&gt;
			end&lt;br /&gt;
		elseif #list ~= 0 then&lt;br /&gt;
			table.insert(list, &amp;#039;&amp;lt;/li&amp;gt;&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
			&lt;br /&gt;
		table.insert(list, p.createNode(nodeContent))&lt;br /&gt;
		currentLevel = nodeLevel&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if 0 &amp;lt; currentLevel then&lt;br /&gt;
		for i = currentLevel , 1, -1 do&lt;br /&gt;
			table.insert(list, &amp;#039;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
		&lt;br /&gt;
	local classes = {}&lt;br /&gt;
	if p.parameterTrue(args.up) then&lt;br /&gt;
		table.insert(classes, &amp;#039;treeup&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- center is default, use left if not centered&lt;br /&gt;
	if not p.parameterTrue(args.center) then&lt;br /&gt;
		table.insert(classes, &amp;#039;left&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
		&lt;br /&gt;
	return &amp;#039;&amp;lt;ul class=&amp;quot;tree &amp;#039;..table.concat(classes, &amp;#039; &amp;#039;)..&amp;#039;&amp;quot;&amp;gt;&amp;#039;..table.concat(list, &amp;#039;&amp;#039;)..&amp;#039;&amp;lt;/ul&amp;gt;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.createNode(nodeContent)&lt;br /&gt;
	return &amp;#039;&amp;lt;li&amp;gt;&amp;lt;span&amp;gt;&amp;#039;..nodeContent..&amp;#039;&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.parameterTrue(value)&lt;br /&gt;
    return value ~= nil and value ~= &amp;#039;&amp;#039; and string.lower(value) ~= &amp;#039;false&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wgg&gt;Cadaei</name></author>
	</entry>
</feed>