<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hedditch.com.au/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AAustralian_place_map</id>
	<title>Module:Australian place map - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hedditch.com.au/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AAustralian_place_map"/>
	<link rel="alternate" type="text/html" href="https://wiki.hedditch.com.au/mediawiki/index.php?title=Module:Australian_place_map&amp;action=history"/>
	<updated>2026-04-22T06:38:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://wiki.hedditch.com.au/mediawiki/index.php?title=Module:Australian_place_map&amp;diff=953&amp;oldid=prev</id>
		<title>imported&gt;Stuwisi: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.hedditch.com.au/mediawiki/index.php?title=Module:Australian_place_map&amp;diff=953&amp;oldid=prev"/>
		<updated>2022-09-06T12:09:39Z</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 12:09, 6 September 2022&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wiki:diff::1.12:old-952:rev-953 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Stuwisi</name></author>
	</entry>
	<entry>
		<id>https://wiki.hedditch.com.au/mediawiki/index.php?title=Module:Australian_place_map&amp;diff=952&amp;oldid=prev</id>
		<title>w&gt;Matt Fitzpatrick: replaced nonsemantic small element, should fix some lint errors</title>
		<link rel="alternate" type="text/html" href="https://wiki.hedditch.com.au/mediawiki/index.php?title=Module:Australian_place_map&amp;diff=952&amp;oldid=prev"/>
		<updated>2022-01-15T21:18:24Z</updated>

		<summary type="html">&lt;p&gt;replaced nonsemantic small element, should fix some lint errors&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements the selection of the location map&lt;br /&gt;
-- in [[Template:Infobox Australian place]] and [[Template:Infobox Australian road]]&lt;br /&gt;
require(&amp;#039;Module:No globals&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function isnotblank( s ) return s and s ~= &amp;#039;&amp;#039; end&lt;br /&gt;
&lt;br /&gt;
local statenames = {&lt;br /&gt;
	sa = &amp;#039;South Australia&amp;#039;,&lt;br /&gt;
	vic = &amp;#039;Victoria&amp;#039;,&lt;br /&gt;
	nsw = &amp;#039;New South Wales&amp;#039;,&lt;br /&gt;
	qld = &amp;#039;Queensland&amp;#039;,&lt;br /&gt;
	nt = &amp;#039;Northern Territory&amp;#039;,&lt;br /&gt;
	wa = &amp;#039;Western Australia&amp;#039;,&lt;br /&gt;
	tas = &amp;#039;Tasmania&amp;#039;,&lt;br /&gt;
	act = &amp;#039;Australian Capital Territory&amp;#039;,&lt;br /&gt;
	jbt = &amp;#039;Jervis Bay Territory&amp;#039;,&lt;br /&gt;
	ni = &amp;#039;Norfolk Island&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
local mapwidths = {&lt;br /&gt;
	sa = 230,&lt;br /&gt;
	qld = 190,&lt;br /&gt;
	nt = 190,&lt;br /&gt;
	wa = 180,&lt;br /&gt;
	tas = 210,&lt;br /&gt;
	act = 180&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local largs = frame:getParent().args&lt;br /&gt;
	local place_type = (largs.type or &amp;#039;&amp;#039;):lower()&lt;br /&gt;
	local map_name = largs.map_type or &amp;#039;&amp;#039;&lt;br /&gt;
	local map_type = (largs.map_type or &amp;#039;auto&amp;#039;):lower()&lt;br /&gt;
	local state_abbr = (largs.state or &amp;#039;&amp;#039;):lower()&lt;br /&gt;
	local map_width = 270&lt;br /&gt;
	&lt;br /&gt;
	local coords = largs.coordinates or &amp;#039;&amp;#039;&lt;br /&gt;
	local coordsa = largs.coordinates_a or &amp;#039;&amp;#039;&lt;br /&gt;
	local coordsb = largs.coordinates_b or &amp;#039;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	-- Default for LGAs is nomap&lt;br /&gt;
	-- Default for everywhere else is auto&lt;br /&gt;
	if map_type == &amp;#039;&amp;#039; or map_type == &amp;#039;auto&amp;#039; then&lt;br /&gt;
		if place_type == &amp;#039;lga&amp;#039; then&lt;br /&gt;
			map_type = &amp;#039;nomap&amp;#039;&lt;br /&gt;
		else&lt;br /&gt;
			map_type = &amp;#039;auto&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- Apply legacy parameters&lt;br /&gt;
	if isnotblank( largs.alternative_location_map ) then&lt;br /&gt;
		map_type = largs.alternative_location_map&lt;br /&gt;
		map_name = map_type&lt;br /&gt;
	elseif isnotblank( largs.force_national_map ) then&lt;br /&gt;
		map_type = &amp;#039;national&amp;#039;&lt;br /&gt;
		map_name = &amp;#039;Australia&amp;#039;&lt;br /&gt;
	elseif isnotblank( largs.use_lga_map ) then&lt;br /&gt;
		map_type = &amp;#039;lga&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	-- Process the value in map_type &lt;br /&gt;
	if map_type == &amp;#039;state&amp;#039; or map_type == &amp;#039;auto&amp;#039; or map_type == &amp;#039;lga&amp;#039; then&lt;br /&gt;
		map_name = &amp;#039;Australia &amp;#039; .. (statenames[state_abbr] or &amp;#039;&amp;#039;)&lt;br /&gt;
		map_width = mapwidths[state_abbr] or 270&lt;br /&gt;
		if  map_type == &amp;#039;lga&amp;#039; then&lt;br /&gt;
			map_name = map_name  .. &amp;#039; &amp;#039; .. (largs.lga or &amp;#039;&amp;#039;)&lt;br /&gt;
			map_width = mapwidths[state_abbr] or 270&lt;br /&gt;
		end&lt;br /&gt;
	elseif map_type == &amp;#039;national&amp;#039; or map_type == &amp;#039;australia&amp;#039; then&lt;br /&gt;
		map_name = &amp;#039;Australia&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if isnotblank(coords) or isnotblank(coordsa) then&lt;br /&gt;
	else&lt;br /&gt;
		map_type = &amp;#039;nomap&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Finally build the map&lt;br /&gt;
	if map_type ~= &amp;#039;nomap&amp;#039; then&lt;br /&gt;
		local caption = largs.pushpin_map_caption or &amp;#039;&amp;#039;&lt;br /&gt;
		&lt;br /&gt;
		if caption ~= &amp;#039;&amp;#039; then caption = &amp;#039;&amp;lt;div style=&amp;quot;font-size: smaller;&amp;quot;&amp;gt;&amp;#039; .. caption .. &amp;#039;&amp;lt;/div&amp;gt;&amp;#039; end&lt;br /&gt;
		&lt;br /&gt;
		if isnotblank(coordsa) then&lt;br /&gt;
			return frame:expandTemplate{&lt;br /&gt;
				title = &amp;#039;Location map many&amp;#039;,&lt;br /&gt;
				args = {&lt;br /&gt;
					map_name,&lt;br /&gt;
					relief = largs.relief or &amp;#039;&amp;#039;,&lt;br /&gt;
					label1 = isnotblank(coordsb) and isnotblank(largs.direction_a) and (largs.direction_a .. &amp;#039; end&amp;#039;) or (largs.road_name or &amp;#039;&amp;#039;),&lt;br /&gt;
					coordinates1 = coordsa,&lt;br /&gt;
					position1 = isnotblank(largs.pushpin_label_position_a) and largs.pushpin_label_position_a or &amp;#039;left&amp;#039;,&lt;br /&gt;
					coordinates2 = coordsb,&lt;br /&gt;
					label2 = isnotblank(largs.direction_b) and (largs.direction_b .. &amp;#039; end&amp;#039;) or &amp;#039;&amp;#039;,&lt;br /&gt;
					position2 = isnotblank(largs.pushpin_label_position_b) and largs.pushpin_label_position_b or &amp;#039;left&amp;#039;,&lt;br /&gt;
					marksize = 8,&lt;br /&gt;
					float = &amp;#039;center&amp;#039;,&lt;br /&gt;
					caption = caption,&lt;br /&gt;
					border = &amp;#039;infobox&amp;#039;,&lt;br /&gt;
					width = map_width,&lt;br /&gt;
					alt = largs.map_alt or &amp;#039;&amp;#039;&lt;br /&gt;
					}&lt;br /&gt;
				}&lt;br /&gt;
		end&lt;br /&gt;
		return frame:expandTemplate{&lt;br /&gt;
			title = &amp;#039;Location map&amp;#039;, &lt;br /&gt;
			args = { &lt;br /&gt;
				map_name,&lt;br /&gt;
				label = largs.name or &amp;#039;&amp;#039;,&lt;br /&gt;
				relief = largs.relief or &amp;#039;&amp;#039;,&lt;br /&gt;
				coordinates = coords,&lt;br /&gt;
				marksize = 6,&lt;br /&gt;
				position = largs.pushpin_label_position or &amp;#039;&amp;#039;,&lt;br /&gt;
				float = &amp;#039;center&amp;#039;,&lt;br /&gt;
				caption = caption,&lt;br /&gt;
				border = &amp;#039;infobox&amp;#039;,&lt;br /&gt;
				width = map_width,&lt;br /&gt;
				alt = largs.map_alt or &amp;#039;&amp;#039;&lt;br /&gt;
			}&lt;br /&gt;
		}&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>w&gt;Matt Fitzpatrick</name></author>
	</entry>
</feed>