Module:Infobox gene: Difference between revisions

Content deleted Content added
add a space for drug list so browsers can break lines properly
change disease & drug list to td
Line 538:
--check first to see if any of the diseases have references
local ref_flag_all = false --check if any disease have references if not then don't render the headers
local disease_name = '' --local disease_name = table.concat(disease, ", ")
for index,value in ipairs(disease) do
if (dis_ref[index] ~= nil and dis_ref[index] ~= '') then
Line 568:
 
--local disease_name = table.concat(disease, ", ")
local ref_url = "https://www.wikidata.org/wiki/"..qid.."#P2293" --direct page to property genetically associated disease
local title = "Diseases that are genetically associated with "..name.." view/edit references on wikidata"
Line 581:
:newline()
:tag('thtd')
:css('background-color', rowBGcolor)
:attr('scope', 'row')
Line 652:
:newline()
:tag('thtd')
:css('background-color', rowBGcolor)
:attr('scope', 'row')