Difference between revisions of "Module:InfoboxforTarget"

From Cysteinome
Jump to: navigation, search
(Created page with "local p = {} function p.run(frame) local capiunto = require 'capiunto' return capiunto.create( { title = tostring(mw.title.getCurrentTitle()) , top = 'Basic informatio...")
 
Line 4: Line 4:
 
local capiunto = require 'capiunto'
 
local capiunto = require 'capiunto'
 
return capiunto.create( {
 
return capiunto.create( {
title = tostring(mw.title.getCurrentTitle()) ,
+
title = 'Basic informations',
top = 'Basic informations',
 
topStyle = 'background:#cfc;'
 
 
} )
 
} )
 
:addRow('Short Name', frame.args[1])
 
:addRow('Short Name', frame.args[1])

Revision as of 06:05, 5 December 2018

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

local p = {}
 
function p.run(frame)
	local capiunto = require 'capiunto'
	return capiunto.create( {
		title = 'Basic informations',
	} )
	:addRow('Short Name', frame.args[1])
	:addRow('UNP ID', frame.args[2])
        :addRow('Organism', frame.args[3])
        :addRow('Cys Site', frame.args[4])
end
 
return p