Difference between revisions of "Module:InfoboxforLigand"

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

Revision as of 18:14, 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',
	} )
	:addImage('Molecular Formula', frame.args[1])
	:addImage('Molecular Weight', frame.args[2])
	:addImage('PubChem CID', frame.args[3])
	:addImage('SMILES', frame.args[4])
end
 
return p