Module:Infobox Test: Difference between revisions

From Bibliotheca Anonoma
No edit summary
No edit summary
Line 9: Line 9:
bottom = 'Below text'
bottom = 'Below text'
} )
} )
:addRow('URL', frame.args[1])
:addRow('Project Status', frame.args[2])
:addRow('Archiving Status', frame.args[3])
:addRow('Project Source', frame.args[3])
end
end


return p
return p

Revision as of 19:18, 8 January 2017

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

local p = {}
 
function p.run(frame)
	local capiunto = require 'capiunto'
	return capiunto.create( {
		title = tostring(mw.title.getCurrentTitle()) ,
		top = 'Above text',
		topStyle = 'background:#cfc;',
		bottom = 'Below text'
	} )
	:addRow('URL', frame.args[1])
	:addRow('Project Status', frame.args[2])
	:addRow('Archiving Status', frame.args[3])
	:addRow('Project Source', frame.args[3])
end

return p