Difference between revisions of "Module:Bananas"

From Cysteinome
Jump to: navigation, search
Line 5: Line 5:
 
return capiunto.create( {
 
return capiunto.create( {
 
title = tostring(mw.title.getCurrentTitle()) ,
 
title = tostring(mw.title.getCurrentTitle()) ,
top = 'Basic Info',
+
top = 'Basic Information',
 
topStyle = 'background:#cfc;',
 
topStyle = 'background:#cfc;',
bottom = 'Below text'
+
bottom = ''
 
} )
 
} )
 
:addRow('H', 'Hydrogen')
 
:addRow('H', 'Hydrogen')

Revision as of 04:02, 18 May 2018

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

local p = {}
 
function p.run()
	local capiunto = require 'capiunto'
	return capiunto.create( {
		title = tostring(mw.title.getCurrentTitle()) ,
		top = 'Basic Information',
		topStyle = 'background:#cfc;',
		bottom = ''
	} )
	:addRow('H', 'Hydrogen')
	:addRow('He','Helium')
	:addRow('Li','Lithium')

end
 
return p