Difference between revisions of "Module:InfoboxforLigand"
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( { | ||
− | + | top = 'Basic Information', | |
+ | topStyle = 'background:#cfc;' | ||
} ) | } ) | ||
:addRow('Molecular Formula', frame.args[1]) | :addRow('Molecular Formula', frame.args[1]) |
Revision as of 18: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('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