Jump to content

Module:ATC code to template name

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Berchanhimez (talk | contribs) at 05:30, 5 July 2020 (testing something.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

-- this module provides a lookup from ATC codes to their associated navbox templates --

local p = {}

local getArgs

lookuptable = {}
lookuptable["A01"] = "Stomatological preparations"
lookuptable["A02A"] = "Antacids"
lookuptable["A02B"] = "Drugs for peptic ulcer and GORD"
lookuptable["A03"] = "Drugs for functional gastrointestinal disorders"
lookuptable["A04"] = "Antiemetics"

p.translate = function( frame )

local function translate(code)
	local code = frame.args[1]
	name = lookuptable[code]
	return name
	end
	
end

return p