<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AATC_code_to_template_name</id>
	<title>Module:ATC code to template name - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AATC_code_to_template_name"/>
	<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Module:ATC_code_to_template_name&amp;action=history"/>
	<updated>2026-04-10T02:27:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.tiffa.net/w/index.php?title=Module:ATC_code_to_template_name&amp;diff=134698&amp;oldid=prev</id>
		<title>Fire: Created page with &quot;-- this module provides a lookup from ATC codes to their associated navbox templates -- local data = mw.loadData(&quot;Module:ATC code to template name/data&quot;) p = {}  function p.translate(frame) 	local name = frame.args[1] 	for _, v in pairs(data) do 		if v.code == name then 			if v.template then 				return frame:expandTemplate{ title = v.template } 			else 				error(&quot;ATC code not specific enough - please use one further character (example: instead of M01, use M01A)&quot;) 				ret...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Module:ATC_code_to_template_name&amp;diff=134698&amp;oldid=prev"/>
		<updated>2024-04-05T04:24:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- this module provides a lookup from ATC codes to their associated navbox templates -- local data = mw.loadData(&amp;quot;Module:ATC code to template name/data&amp;quot;) p = {}  function p.translate(frame) 	local name = frame.args[1] 	for _, v in pairs(data) do 		if v.code == name then 			if v.template then 				return frame:expandTemplate{ title = v.template } 			else 				error(&amp;quot;ATC code not specific enough - please use one further character (example: instead of M01, use M01A)&amp;quot;) 				ret...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- this module provides a lookup from ATC codes to their associated navbox templates --&lt;br /&gt;
local data = mw.loadData(&amp;quot;Module:ATC code to template name/data&amp;quot;)&lt;br /&gt;
p = {}&lt;br /&gt;
&lt;br /&gt;
function p.translate(frame)&lt;br /&gt;
	local name = frame.args[1]&lt;br /&gt;
	for _, v in pairs(data) do&lt;br /&gt;
		if v.code == name then&lt;br /&gt;
			if v.template then&lt;br /&gt;
				return frame:expandTemplate{ title = v.template }&lt;br /&gt;
			else&lt;br /&gt;
				error(&amp;quot;ATC code not specific enough - please use one further character (example: instead of M01, use M01A)&amp;quot;)&lt;br /&gt;
				return&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
    error(&amp;quot;Invalid ATC code (or the ATC code does not have a template matched to it)&amp;quot;)&lt;br /&gt;
	return&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Fire</name></author>
	</entry>
</feed>