<?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%3AShopLocLine</id>
	<title>Module:ShopLocLine - 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%3AShopLocLine"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:ShopLocLine&amp;action=history"/>
	<updated>2026-05-01T14:58:56Z</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:ShopLocLine&amp;diff=33950&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;local p = {}  local editBtn = &#039;&lt;small&gt;&#039; .. require(&#039;Module:Edit button&#039;)() .. &#039;&lt;/small&gt;&#039; local isEmpty = require(&#039;Module:Paramtest&#039;).is_empty local hc = require(&#039;Module:Paramtest&#039;).has_content local na = require(&#039;Module:NA&#039;) local map = require(&#039;Module:Map&#039;)  function p.main(frame) 	local args = frame:getParent().args 	 	local locationRow = mw.html.create(&#039;tr&#039;) 	locationRow:tag(&#039;td&#039;):wikitext(args.name) 	locationRow:tag(&#039;td&#039;):wikitext(args.location) 	 	if args.notes ~= n...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:ShopLocLine&amp;diff=33950&amp;oldid=prev"/>
		<updated>2024-10-15T15:18:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  local editBtn = &amp;#039;&amp;lt;small&amp;gt;&amp;#039; .. require(&amp;#039;Module:Edit button&amp;#039;)() .. &amp;#039;&amp;lt;/small&amp;gt;&amp;#039; local isEmpty = require(&amp;#039;Module:Paramtest&amp;#039;).is_empty local hc = require(&amp;#039;Module:Paramtest&amp;#039;).has_content local na = require(&amp;#039;Module:NA&amp;#039;) local map = require(&amp;#039;Module:Map&amp;#039;)  function p.main(frame) 	local args = frame:getParent().args 	 	local locationRow = mw.html.create(&amp;#039;tr&amp;#039;) 	locationRow:tag(&amp;#039;td&amp;#039;):wikitext(args.name) 	locationRow:tag(&amp;#039;td&amp;#039;):wikitext(args.location) 	 	if args.notes ~= n...&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;
local editBtn = &amp;#039;&amp;lt;small&amp;gt;&amp;#039; .. require(&amp;#039;Module:Edit button&amp;#039;)() .. &amp;#039;&amp;lt;/small&amp;gt;&amp;#039;&lt;br /&gt;
local isEmpty = require(&amp;#039;Module:Paramtest&amp;#039;).is_empty&lt;br /&gt;
local hc = require(&amp;#039;Module:Paramtest&amp;#039;).has_content&lt;br /&gt;
local na = require(&amp;#039;Module:NA&amp;#039;)&lt;br /&gt;
local map = require(&amp;#039;Module:Map&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	&lt;br /&gt;
	local locationRow = mw.html.create(&amp;#039;tr&amp;#039;)&lt;br /&gt;
	locationRow:tag(&amp;#039;td&amp;#039;):wikitext(args.name)&lt;br /&gt;
	locationRow:tag(&amp;#039;td&amp;#039;):wikitext(args.location)&lt;br /&gt;
	&lt;br /&gt;
	if args.notes ~= nil then&lt;br /&gt;
		locationRow:tag(&amp;#039;td&amp;#039;):wikitext(tostring(args.notes))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local members = (args.members and args.members:lower() == &amp;#039;yes&amp;#039; and &amp;#039;yes&amp;#039;) or &amp;#039;no&amp;#039;&lt;br /&gt;
	local membersIcon = mw.getCurrentFrame():expandTemplate({ title=&amp;#039;members&amp;#039;, args={ members }})&lt;br /&gt;
	locationRow:tag(&amp;#039;td&amp;#039;):wikitext(membersIcon)&lt;br /&gt;
	&lt;br /&gt;
	local mapNode = getMap(args, members)&lt;br /&gt;
	locationRow:node(mapNode)&lt;br /&gt;
&lt;br /&gt;
	return tostring(locationRow)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function getMap(args, members)&lt;br /&gt;
	local mapNode = mw.html.create(&amp;#039;td&amp;#039;)&lt;br /&gt;
	local mapOutput&lt;br /&gt;
	&lt;br /&gt;
	if not args.mtype then&lt;br /&gt;
		-- Get text from first wikilink&lt;br /&gt;
		-- Allows for link renaming and subobject selection&lt;br /&gt;
		local name = args.name:match(&amp;#039;%[%[([^%|%]]+)&amp;#039;)&lt;br /&gt;
		local mapOpts = { type = &amp;#039;maplink&amp;#039;, text = &amp;#039;Maplink&amp;#039; }&lt;br /&gt;
		&lt;br /&gt;
		mapOutput = map.getMap(name, mapOpts)&lt;br /&gt;
	else&lt;br /&gt;
		local mapArgs = {}&lt;br /&gt;
		for k, v in pairs(args) do&lt;br /&gt;
	    	mapArgs[k] = v&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		mapArgs.type = &amp;#039;maplink&amp;#039;&lt;br /&gt;
		&lt;br /&gt;
		if args.name then&lt;br /&gt;
			mapArgs.title = args.name&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if members then&lt;br /&gt;
			mapArgs.icon = &amp;#039;redPin&amp;#039;&lt;br /&gt;
		else&lt;br /&gt;
			mapArgs.icon = &amp;#039;bluePin&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		mapOutput = map.buildMap(mapArgs)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if mapOutput then&lt;br /&gt;
		mapNode:wikitext(mapOutput)&lt;br /&gt;
	else&lt;br /&gt;
		na.styleNode(mapNode, &amp;#039;Unknown&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return mapNode&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>