Module:Infobox gene: Difference between revisions

Content deleted Content added
added checks for values to catch lua error messages
Changing lua if true syntax to lua conventions
Line 543:
for index,value in ipairs(disease) do
if (dis_ref[index] ~= nil and dis_ref[index] ~= '') then
ref_flag[index] = "true"
ref_flag_all = "true"
end
end
if ref_flag_all == "true" then
root
:tag('tr')
Line 585:
local ref_link = ""
local ref_link_list = ""
if ref_flag[index] == "true" then
if (dis_ref[index] ~= nil or dis_ref[index] ~= '') then
ref_link_list = mw.text.split(dis_ref[index], ",")
Line 681:
 
for k,v in pairs(drug) do
ref_flag_all = "true"
end
if ref_flag_all == "true" then
root
:tag('tr')