<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ATranscript_list</id>
	<title>Module:Transcript list - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ATranscript_list"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:Transcript_list&amp;action=history"/>
	<updated>2026-04-30T15:46:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Module:Transcript_list&amp;diff=35206&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;-- &lt;pre&gt; local p = {}  function p.main(frame) 	local args = frame:getParent().args  	-- return tag 	local ret = mw.html.create(&#039;div&#039;) 				:addClass(&#039;seealso&#039;)  	local params = {} 	local ttl = 0  	-- noplayer 	local hasplayer = true  	-- collect and count arguments 	for _, v in ipairs(args) do 		if string.lower(v) == &#039;noplayer&#039; then 			hasplayer = false 		elseif string.lower(v) ~= &#039;player&#039; then 			ttl = ttl + 1 			table.insert(params,v) 		end 	end 	-- increase count if pl...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:Transcript_list&amp;diff=35206&amp;oldid=prev"/>
		<updated>2024-10-16T23:13:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- &amp;lt;pre&amp;gt; local p = {}  function p.main(frame) 	local args = frame:getParent().args  	-- return tag 	local ret = mw.html.create(&amp;#039;div&amp;#039;) 				:addClass(&amp;#039;seealso&amp;#039;)  	local params = {} 	local ttl = 0  	-- noplayer 	local hasplayer = true  	-- collect and count arguments 	for _, v in ipairs(args) do 		if string.lower(v) == &amp;#039;noplayer&amp;#039; then 			hasplayer = false 		elseif string.lower(v) ~= &amp;#039;player&amp;#039; then 			ttl = ttl + 1 			table.insert(params,v) 		end 	end 	-- increase count if pl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- &amp;lt;pre&amp;gt;&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
&lt;br /&gt;
	-- return tag&lt;br /&gt;
	local ret = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
				:addClass(&amp;#039;seealso&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	local params = {}&lt;br /&gt;
	local ttl = 0&lt;br /&gt;
&lt;br /&gt;
	-- noplayer&lt;br /&gt;
	local hasplayer = true&lt;br /&gt;
&lt;br /&gt;
	-- collect and count arguments&lt;br /&gt;
	for _, v in ipairs(args) do&lt;br /&gt;
		if string.lower(v) == &amp;#039;noplayer&amp;#039; then&lt;br /&gt;
			hasplayer = false&lt;br /&gt;
		elseif string.lower(v) ~= &amp;#039;player&amp;#039; then&lt;br /&gt;
			ttl = ttl + 1&lt;br /&gt;
			table.insert(params,v)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- increase count if player&lt;br /&gt;
	if hasplayer then&lt;br /&gt;
		ttl = ttl + 1&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- main return text&lt;br /&gt;
	ret:wikitext(&amp;#039;This transcript involves dialogue with &amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	-- for all arguments&lt;br /&gt;
	for i, v in ipairs(params) do&lt;br /&gt;
		-- add links&lt;br /&gt;
		if i &amp;lt; ttl and ttl &amp;gt; 1 then&lt;br /&gt;
			ret:wikitext(&amp;#039;[[&amp;#039;..v..&amp;#039;]]&amp;#039;)&lt;br /&gt;
		-- if last link&lt;br /&gt;
		elseif i == ttl then&lt;br /&gt;
			-- if only link&lt;br /&gt;
			if ttl == 1 then&lt;br /&gt;
				ret:wikitext(&amp;#039;[[&amp;#039;..v..&amp;#039;]]&amp;#039;)&lt;br /&gt;
			-- if final link&lt;br /&gt;
			else&lt;br /&gt;
				ret:wikitext(&amp;#039; and [[&amp;#039;..v..&amp;#039;]]&amp;#039;)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- if more to come, add commas&lt;br /&gt;
		if i &amp;lt; ttl and ttl &amp;gt; 2 then&lt;br /&gt;
			ret:wikitext(&amp;#039;, &amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- add player&lt;br /&gt;
	if hasplayer then&lt;br /&gt;
		if ttl == 1 then&lt;br /&gt;
			ret:wikitext(&amp;#039;[[Player character|the player]]&amp;#039;)&lt;br /&gt;
		else&lt;br /&gt;
			ret:wikitext(&amp;#039; and [[Player character|the player]]&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- period&lt;br /&gt;
	ret:wikitext(&amp;#039;.&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	-- transcript npcs property&lt;br /&gt;
	if mw.title.getCurrentTitle().namespace == 120 then&lt;br /&gt;
		smw = {}&lt;br /&gt;
		for _, v in ipairs(params) do&lt;br /&gt;
			table.insert(smw,string.match(v, &amp;quot;[^\|]+&amp;quot;))&lt;br /&gt;
		end&lt;br /&gt;
--		if hasplayer then&lt;br /&gt;
--			table.insert(smw,&amp;#039;Player character&amp;#039;)&lt;br /&gt;
--		end&lt;br /&gt;
		mw.smw.set({[&amp;#039;Transcript NPCs&amp;#039;]=smw})&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>