local cita = {}
-- Genera una citazione a enzyme-database.org dato il numero dell'enzima
function cita.enzima(frame)
local args = frame.args
local enzima_args = {}
local enzima_num = args[1] or ""
if enzima_num == "" then return "" end
local name = args.name or ""
if name ~= "" then enzima_args['name'] = name end
local group = args.group or ""
if group ~="" then enzima_args.group = group end
local lg = require( "Modulo:Lingue" );
local Language_code = lg.lingue({"en", usacodice='sì'}) .. " "
tag_ref = frame:extensionTag{ name = 'ref',
content = table.concat({Language_code,
'[http://www.enzyme-database.org/query.php?ec=',
enzima_num, '* ', enzima_num,
"] su ''The Enzyme Database''"}),
args = enzima_args }
return "''[[Classificazione EC|numero EC]] " .. enzima_num .. "''" .. tag_ref
end
return cita