Module:Infobox Test: Difference between revisions

From Bibliotheca Anonoma
No edit summary
No edit summary
Line 4: Line 4:
local capiunto = require 'capiunto'
local capiunto = require 'capiunto'
return capiunto.create( {
return capiunto.create( {
title = tostring(mw.title.getCurrentTitle()) ,
top = 'Above text',
top = 'Above text',
topStyle = 'background:#cfc;',
topStyle = 'background:#cfc;',
Line 12: Line 11:
:addRow('Project Status', frame.args[2])
:addRow('Project Status', frame.args[2])
:addRow('Archiving Status', frame.args[3])
:addRow('Archiving Status', frame.args[3])
:addRow('Project Source', frame.args[3])
:addRow('Project Source', frame.args[4])
end
end


return p
return p

Revision as of 19:26, 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( {
		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[4])
end

return p