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:52, 5 July 2020 (test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

-- 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"

code = frame.args[1]

local function translate(code)
	name = lookuptable[code]
	return name
	end

return p