Module:Infobox gene: Difference between revisions

Content deleted Content added
m space after comma for diseases
Updated Gene Cards link and url
Line 418:
end
homolo = string.gsub(homolo, ", $"," ") --remove comma from end
 
entrez_gene = string.gsub(entrez_gene, "%s", "")
local entrez_list = mw.text.split(entrez_gene, ",")
local genecards = ""
if (entrez_list ~= nil and entrez_list ~= "") then
genecards = "[[GeneCards|GeneCards:]]".." "
end
for i, v in ipairs(entrez_list) do
if string.match(v, '%w+') then
genecards = genecards.."[http://www.genecards.org/cgi-bin/carddisp.pl?id_type=entrezgene&id="..v.." "..v.."] "
end
end
genecards = string.gsub(genecards, ", $"," ") --remove comma from end
 
local genecards = "[[GeneCards|GeneCards:]]".." "
genecards = genecards.."[http://www.genecards.org/cgi-bin/carddisp.pl?id_type=entrezgene&idgene="..vgene_symbol.." "..vgene_symbol.."] "
 
mgi_id = string.gsub(mgi_id, "%s", "")
local mgi_list = mw.text.split(mgi_id, ",")