<?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%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://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AATC_code_to_template_name"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:ATC_code_to_template_name&amp;action=history"/>
	<updated>2026-06-12T19:02:37Z</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:ATC_code_to_template_name&amp;diff=470049&amp;oldid=prev</id>
		<title>Zoran: Moved page from wikipedia:en:Module:ATC code to template name</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:ATC_code_to_template_name&amp;diff=470049&amp;oldid=prev"/>
		<updated>2021-07-08T18:12:08Z</updated>

		<summary type="html">&lt;p&gt;Moved page from &lt;a href=&quot;/index.php?title=Wikipedia:en:Module:ATC_code_to_template_name&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Wikipedia:en:Module:ATC code to template name (page does not exist)&quot;&gt;wikipedia:en:Module:ATC code to template name&lt;/a&gt;&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>Zoran</name></author>
	</entry>
</feed>