<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.geministation.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ARequired_for_completing</id>
	<title>Module:Required for completing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.geministation.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ARequired_for_completing"/>
	<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=Module:Required_for_completing&amp;action=history"/>
	<updated>2026-06-04T21:13:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.geministation.com/index.php?title=Module:Required_for_completing&amp;diff=5614&amp;oldid=prev</id>
		<title>Banri at 21:47, 14 June 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=Module:Required_for_completing&amp;diff=5614&amp;oldid=prev"/>
		<updated>2020-06-14T21:47:04Z</updated>

		<summary type="html">&lt;p&gt;&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 21:47, 14 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l79&quot;&gt;Line 79:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 79:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local _nested = {}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local _nested = {}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		for k,v in pairs(nestedMissions) do&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		for k,v in pairs(nestedMissions) do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			-- remove duplicate &#039;Full completion of X/Started X&#039; if X is already listed&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			-- usually applies to early missions that are required a lot&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			-- e.g. Desert Treasure is required for Children of Mah in several ways, some of which are direct requirements&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			-- (Desert Treasure -&amp;gt; The Temple at Senntisten -&amp;gt; The Light Within -&amp;gt; Children of Mah)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			-- and some are through &#039;Full completion&#039; requirements&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			-- (Desert Treasure -&amp;gt; The Temple at Senntisten -&amp;gt; Ritual of the Mahjarrat -&amp;gt; Koschei&#039;s Troubles -&amp;gt; Full:Children of Mah)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			-- listing both is confusing so remove full/started requirements if the quest is just normally listed&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if k:find(&amp;#039;^Full:&amp;#039;) or k:find(&amp;#039;^Started&amp;#039;) then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if k:find(&amp;#039;^Full:&amp;#039;) or k:find(&amp;#039;^Started&amp;#039;) then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				local _k = k:gsub(&amp;#039;^Full:&amp;#039;, &amp;#039;&amp;#039;):gsub(&amp;#039;^Started:&amp;#039;, &amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				local _k = k:gsub(&amp;#039;^Full:&amp;#039;, &amp;#039;&amp;#039;):gsub(&amp;#039;^Started:&amp;#039;, &amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l111&quot;&gt;Line 111:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 104:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local ret = {}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local ret = {}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if qs == nil or #qs == 0 then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if qs == nil or #qs == 0 then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		table.insert(ret, string.format(&#039;%s is not currently required for any missions &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or minimissions&lt;/del&gt;.&#039;, q))&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		table.insert(ret, string.format(&#039;%s is not currently required for any missions.&#039;, q))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	else&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	else&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		table.insert(ret, string.format(&#039;%s is directly required for the following missions&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/minimissions&lt;/del&gt;:&#039;, q))&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		table.insert(ret, string.format(&#039;%s is directly required for the following missions:&#039;, q))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		for i,v in ipairs(qs) do&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		for i,v in ipairs(qs) do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local repl, str&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local repl, str&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l130&quot;&gt;Line 130:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 123:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		if indirqs and #indirqs &amp;gt; 0 then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		if indirqs and #indirqs &amp;gt; 0 then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			table.insert(ret, &amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			table.insert(ret, &amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			table.insert(ret, &#039;&amp;lt;div class=&quot;mw-collapsible mw-collapsed&quot; style=&quot;display:inline-block;&quot;&amp;gt;It is therefore an indirect requirement for the following missions &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and minimissions&lt;/del&gt;: &amp;lt;div class=&quot;mw-collapsible-content&quot;&amp;gt;&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			table.insert(ret, &#039;&amp;lt;div class=&quot;mw-collapsible mw-collapsed&quot; style=&quot;display:inline-block;&quot;&amp;gt;It is therefore an indirect requirement for the following missions: &amp;lt;div class=&quot;mw-collapsible-content&quot;&amp;gt;&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			for i,v in ipairs(indirqs) do&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			for i,v in ipairs(indirqs) do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				local repl, str&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				local repl, str&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Banri</name></author>
	</entry>
	<entry>
		<id>https://wiki.geministation.com/index.php?title=Module:Required_for_completing&amp;diff=5613&amp;oldid=prev</id>
		<title>Banri: Created page with &quot;--&lt;nowiki&gt; -- essentially the inverse of Module:Missionreq local missions = mw.loadData(&#039;Module:Missionreq/data&#039;) local p = {} local yesno = require(&#039;Module:Yesno&#039;)  funct...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=Module:Required_for_completing&amp;diff=5613&amp;oldid=prev"/>
		<updated>2020-06-14T21:44:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;--&amp;lt;nowiki&amp;gt; -- essentially the inverse of &lt;a href=&quot;/Module:Missionreq&quot; title=&quot;Module:Missionreq&quot;&gt;Module:Missionreq&lt;/a&gt; local missions = mw.loadData(&amp;#039;Module:Missionreq/data&amp;#039;) local p = {} local yesno = require(&amp;#039;Module:Yesno&amp;#039;)  funct...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--&amp;lt;nowiki&amp;gt;&lt;br /&gt;
-- essentially the inverse of [[Module:Missionreq]]&lt;br /&gt;
local missions = mw.loadData(&amp;#039;Module:Missionreq/data&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
local yesno = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
function _sortFunc(a,b)&lt;br /&gt;
	local _a, _b&lt;br /&gt;
	_a = tostring(a):lower():gsub(&amp;#039;^full:&amp;#039;, &amp;#039;&amp;#039;):gsub(&amp;#039;^started:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	_b = tostring(b):lower():gsub(&amp;#039;^full:&amp;#039;, &amp;#039;&amp;#039;):gsub(&amp;#039;^started:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	return _a &amp;lt; _b&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function getMissions(q)&lt;br /&gt;
	local qs = {}&lt;br /&gt;
	q = tostring(q)&lt;br /&gt;
	q = q:lower()&lt;br /&gt;
	q = q:gsub(&amp;#039;^full:&amp;#039;, &amp;#039;&amp;#039;):gsub(&amp;#039;^started:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	for k,v in pairs(missions) do&lt;br /&gt;
		for i,l in ipairs(v) do&lt;br /&gt;
			local _l = l:gsub(&amp;#039;^Full:&amp;#039;, &amp;#039;&amp;#039;):gsub(&amp;#039;^Started:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
			_l = _l:lower()&lt;br /&gt;
			&lt;br /&gt;
			if q == _l then&lt;br /&gt;
				table.insert(qs, k)&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if #qs == 0 then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(qs, _sortFunc)&lt;br /&gt;
	return qs&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._getMissions(q, getNested)&lt;br /&gt;
	--[=[&lt;br /&gt;
	-- preserves nesting structure&lt;br /&gt;
	-- saving here in case we want it, but not used&lt;br /&gt;
	function nest(_q)&lt;br /&gt;
		local nqs = getMissions(_q)&lt;br /&gt;
		local r = nil&lt;br /&gt;
		if nqs ~= nil then&lt;br /&gt;
			r = nqs&lt;br /&gt;
			for i,v in ipairs(nqs) do&lt;br /&gt;
				table.insert(nqs, nest(v))&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return r&lt;br /&gt;
	end&lt;br /&gt;
	--]=]&lt;br /&gt;
	-- does not preserve structure&lt;br /&gt;
	local nestedMissions = {}&lt;br /&gt;
	function nest(_q)&lt;br /&gt;
		local nqs = getMissions(_q)&lt;br /&gt;
		local r = nil&lt;br /&gt;
		if nqs ~= nil then&lt;br /&gt;
			r = nqs&lt;br /&gt;
			for i,v in ipairs(nqs) do&lt;br /&gt;
				if not nestedMissions[v] then&lt;br /&gt;
					nestedMissions[v] = true&lt;br /&gt;
					nest(v)&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return r&lt;br /&gt;
	end&lt;br /&gt;
	local qs = getMissions(q)&lt;br /&gt;
	if qs == nil then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	if getNested then&lt;br /&gt;
		nest(q)&lt;br /&gt;
		-- unmark the direct requirements&lt;br /&gt;
		for i,v in ipairs(qs) do&lt;br /&gt;
			nestedMissions[v] = nil&lt;br /&gt;
		end&lt;br /&gt;
		local _nested = {}&lt;br /&gt;
		for k,v in pairs(nestedMissions) do&lt;br /&gt;
			-- remove duplicate &amp;#039;Full completion of X/Started X&amp;#039; if X is already listed&lt;br /&gt;
			-- usually applies to early missions that are required a lot&lt;br /&gt;
			-- e.g. Desert Treasure is required for Children of Mah in several ways, some of which are direct requirements&lt;br /&gt;
			-- (Desert Treasure -&amp;gt; The Temple at Senntisten -&amp;gt; The Light Within -&amp;gt; Children of Mah)&lt;br /&gt;
			-- and some are through &amp;#039;Full completion&amp;#039; requirements&lt;br /&gt;
			-- (Desert Treasure -&amp;gt; The Temple at Senntisten -&amp;gt; Ritual of the Mahjarrat -&amp;gt; Koschei&amp;#039;s Troubles -&amp;gt; Full:Children of Mah)&lt;br /&gt;
			-- listing both is confusing so remove full/started requirements if the quest is just normally listed&lt;br /&gt;
			if k:find(&amp;#039;^Full:&amp;#039;) or k:find(&amp;#039;^Started&amp;#039;) then&lt;br /&gt;
				local _k = k:gsub(&amp;#039;^Full:&amp;#039;, &amp;#039;&amp;#039;):gsub(&amp;#039;^Started:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
				if not nestedMissions[_k] then&lt;br /&gt;
					table.insert(_nested, k)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				table.insert(_nested, k)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		table.sort(_nested, _sortFunc)&lt;br /&gt;
		nestedMissions = _nested&lt;br /&gt;
	else&lt;br /&gt;
		nestedMissions = nil&lt;br /&gt;
	end&lt;br /&gt;
	return qs, nestedMissions&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._missions(args)&lt;br /&gt;
	local q = args[1] or mw.title.getCurrentTitle().text&lt;br /&gt;
	if not missions[q] then&lt;br /&gt;
		return string.format(&amp;#039;&amp;quot;%s&amp;quot; is not a recognised quest name.&amp;#039;, q)&lt;br /&gt;
	end&lt;br /&gt;
	local qs, indirqs = p._getMissions(q, not yesno(args.noindirect))&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	if qs == nil or #qs == 0 then&lt;br /&gt;
		table.insert(ret, string.format(&amp;#039;%s is not currently required for any missions or minimissions.&amp;#039;, q))&lt;br /&gt;
	else&lt;br /&gt;
		table.insert(ret, string.format(&amp;#039;%s is directly required for the following missions/minimissions:&amp;#039;, q))&lt;br /&gt;
		for i,v in ipairs(qs) do&lt;br /&gt;
			local repl, str&lt;br /&gt;
			str = &amp;#039;&amp;#039;&lt;br /&gt;
			v, repl = string.gsub(v, &amp;#039;^Full:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
			if repl &amp;gt; 0 then&lt;br /&gt;
				str = &amp;#039;Full completion of &amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
			-- doubt this will ever happen but here&amp;#039;s support for it anyway&lt;br /&gt;
			v, repl = string.gsub(v, &amp;#039;^Started:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
			if repl &amp;gt; 0 then&lt;br /&gt;
				str = &amp;#039;Starting &amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
			table.insert(ret, string.format(&amp;#039;* %s[[%s]]&amp;#039;, str, v))&lt;br /&gt;
		end&lt;br /&gt;
		if indirqs and #indirqs &amp;gt; 0 then&lt;br /&gt;
			table.insert(ret, &amp;#039;&amp;#039;)&lt;br /&gt;
			table.insert(ret, &amp;#039;&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;display:inline-block;&amp;quot;&amp;gt;It is therefore an indirect requirement for the following missions and minimissions: &amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&amp;#039;)&lt;br /&gt;
			for i,v in ipairs(indirqs) do&lt;br /&gt;
				local repl, str&lt;br /&gt;
				str = &amp;#039;&amp;#039;&lt;br /&gt;
				v, repl = string.gsub(v, &amp;#039;^Full:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
				if repl &amp;gt; 0 then&lt;br /&gt;
					str = &amp;#039;Full completion of &amp;#039;&lt;br /&gt;
				end&lt;br /&gt;
				-- doubt this will ever happen but here&amp;#039;s support for it anyway&lt;br /&gt;
				v, repl = string.gsub(v, &amp;#039;^Started:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
				if repl &amp;gt; 0 then&lt;br /&gt;
					str = &amp;#039;Starting &amp;#039;&lt;br /&gt;
				end&lt;br /&gt;
				table.insert(ret, string.format(&amp;#039;* %s[[%s]]&amp;#039;, str, v))&lt;br /&gt;
			end&lt;br /&gt;
			table.insert(ret, &amp;#039;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
	return table.concat(ret, &amp;#039;\n&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.missions(frame)&lt;br /&gt;
	return p._missions(frame:getParent().args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return p&lt;br /&gt;
--&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Banri</name></author>
	</entry>
</feed>