Difference between revisions of "Module:InfoboxforLigand"

From Cysteinome
Jump to: navigation, search
Line 6: Line 6:
 
title = 'Basic Information',
 
title = 'Basic Information',
 
} )
 
} )
:addImage('Molecular Formula', frame.args[1])
+
:addRow('Molecular Formula', frame.args[1])
:addImage('Molecular Weight', frame.args[2])
+
:addRow('Molecular Weight', frame.args[2])
:addImage('PubChem CID', frame.args[3])
+
:addRow('PubChem CID', frame.args[3])
:addImage('SMILES', frame.args[4])
+
:addRow('SMILES', frame.args[4])
 
end
 
end
 
   
 
   
 
return p
 
return p

Revision as of 18:32, 24 July 2019

Documentation for this module may be created at Module:InfoboxforLigand/doc

local p = {}
 
function p.run()
	local capiunto = require 'capiunto'
	return capiunto.create( {
		title = 'Basic Information',
	} )
	:addRow('Molecular Formula', frame.args[1])
	:addRow('Molecular Weight', frame.args[2])
	:addRow('PubChem CID', frame.args[3])
	:addRow('SMILES', frame.args[4])
end
 
return p