<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AOdot_control</id>
	<title>Module:Odot control - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AOdot_control"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Odot_control&amp;action=history"/>
	<updated>2026-06-22T09:05:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Odot_control&amp;diff=478833&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Odot_control&amp;diff=478833&amp;oldid=prev"/>
		<updated>2021-07-16T05:13:14Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = { } --Package to be exported&lt;br /&gt;
&lt;br /&gt;
local function countyNumber(county)&lt;br /&gt;
	local numbers = mw.loadData(&amp;quot;Module:Odot control/counties&amp;quot;)&lt;br /&gt;
	return numbers[county]&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.url(frame)&lt;br /&gt;
	--This function builds URLs.&lt;br /&gt;
	local pframe = frame:getParent() --get arguments passed to the template&lt;br /&gt;
	local args = pframe.args&lt;br /&gt;
	local county = args['county'] or '' --this string holds the raw county name&lt;br /&gt;
	local countyProcessed --this string holds the processed county name to be added to the URL&lt;br /&gt;
	&lt;br /&gt;
	--Le Flore and Roger Mills need special treatment to handle the spaces.&lt;br /&gt;
	--Everything else just gets converted to lower case.&lt;br /&gt;
	if county == &amp;quot;Le Flore&amp;quot; then&lt;br /&gt;
		countyProcessed = &amp;quot;leflore&amp;quot;&lt;br /&gt;
	elseif county == &amp;quot;Roger Mills&amp;quot; then&lt;br /&gt;
		countyProcessed = &amp;quot;rogermills&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		countyProcessed = county:lower()&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local edition = p.edition(frame)&lt;br /&gt;
	if edition == &amp;quot;2012–2013&amp;quot; then&lt;br /&gt;
		local countyNumber = countyNumber(county)&lt;br /&gt;
		return &amp;quot;http://www.odot.org/maps/control-section/2012/map_csect_2012-&amp;quot; .. countyNumber .. '-' .. countyProcessed .. &amp;quot;.pdf&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;quot;http://www.odot.org/hqdiv/p-r-div/maps/control-maps/&amp;quot; .. countyProcessed .. &amp;quot;.pdf&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.edition(frame)&lt;br /&gt;
	--This function fills in the edition field of cite map.&lt;br /&gt;
	local pframe = frame:getParent() --get arguments passed to the template&lt;br /&gt;
	local args = pframe.args&lt;br /&gt;
	local year = args['year'] or ''&lt;br /&gt;
	&lt;br /&gt;
	local editions = {[&amp;quot;2004&amp;quot;] = &amp;quot;2004&amp;quot;, [&amp;quot;2006&amp;quot;] = &amp;quot;2006&amp;quot;, [&amp;quot;2008&amp;quot;] = &amp;quot;2008&amp;quot;,&lt;br /&gt;
	                  [&amp;quot;2010&amp;quot;] = &amp;quot;2010–2011&amp;quot;, [&amp;quot;2011&amp;quot;] = &amp;quot;2010–2011&amp;quot;, [&amp;quot;2010–2011&amp;quot;] = &amp;quot;2010–2011&amp;quot;, [&amp;quot;2010-2011&amp;quot;] = &amp;quot;2010–2011&amp;quot;,&lt;br /&gt;
	                  [&amp;quot;2012&amp;quot;] = &amp;quot;2012–2013&amp;quot;, [&amp;quot;2013&amp;quot;] = &amp;quot;2012–2013&amp;quot;, [&amp;quot;2012–2013&amp;quot;] = &amp;quot;2012–2013&amp;quot;, [&amp;quot;2012-2013&amp;quot;] = &amp;quot;2012–2013&amp;quot;}&lt;br /&gt;
	return editions[year] or ''&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.dateOutput(frame)&lt;br /&gt;
	--This function fills in the date field of cite map.&lt;br /&gt;
	local edition = p.edition(frame)&lt;br /&gt;
	local dates = {[&amp;quot;2004&amp;quot;] = &amp;quot;2004-01-01&amp;quot;, [&amp;quot;2006&amp;quot;] = &amp;quot;2006-01-01&amp;quot;, [&amp;quot;2008&amp;quot;] = &amp;quot;2008-01-01&amp;quot;, [&amp;quot;2010–2011&amp;quot;] = &amp;quot;2010-01-01&amp;quot;, [&amp;quot;2012–2013&amp;quot;] = &amp;quot;2012-01-01&amp;quot;}&lt;br /&gt;
	return dates[edition]&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>