Difference between revisions of "Module:InfoboxforLigand"

From Cysteinome
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
local p = {}
 
local p = {}
 
   
 
   
function p.run()
+
function p.run(frame)
 
local capiunto = require 'capiunto'
 
local capiunto = require 'capiunto'
 
return capiunto.create( {
 
return capiunto.create( {
title = 'Structure',
+
top = 'Basic Information',
 +
                topStyle = 'background:#cfc;'
 
} )
 
} )
:addImage(image)
+
:addRow('CAS Number', frame.args[1])
 +
:addRow('Molecular Formula', frame.args[2])
 +
:addRow('Molecular Weight', frame.args[3])
 +
:addRow('PubChem CID', frame.args[4])
 +
:addRow('Type', frame.args[5])
 +
        :addRow('Bond Type', frame.args[6])
 
end
 
end
 
   
 
   
 
return p
 
return p

Latest revision as of 19:34, 24 July 2019

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

local p = {}
 
function p.run(frame)
	local capiunto = require 'capiunto'
	return capiunto.create( {
		top = 'Basic Information',
                topStyle = 'background:#cfc;'
	} )
	:addRow('CAS Number', frame.args[1])
	:addRow('Molecular Formula', frame.args[2])
	:addRow('Molecular Weight', frame.args[3])
	:addRow('PubChem CID', frame.args[4])
	:addRow('Type', frame.args[5])
        :addRow('Bond Type', frame.args[6])
end
 
return p