Difference between revisions of "Module:InfoboxforLigand"
| Line 9: | Line 9: | ||
:addRow('Molecular Formula', frame.args[1]) | :addRow('Molecular Formula', frame.args[1]) | ||
:addRow('Molecular Weight', frame.args[2]) | :addRow('Molecular Weight', frame.args[2]) | ||
| − | :addRow('PubChem CID', frame.args[ | + | :addRow('CAS Number', frame.args[3]) |
| − | :addRow('Type', frame.args[ | + | :addRow('PubChem CID', frame.args[4]) |
| − | :addRow('Bond Type', frame.args[ | + | :addRow('Type', frame.args[5]) |
| + | :addRow('Bond Type', frame.args[6]) | ||
end | end | ||
return p | return p | ||
Revision as of 19:09, 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('Molecular Formula', frame.args[1])
:addRow('Molecular Weight', frame.args[2])
:addRow('CAS Number', frame.args[3])
:addRow('PubChem CID', frame.args[4])
:addRow('Type', frame.args[5])
:addRow('Bond Type', frame.args[6])
end
return p