Difference between revisions of "Module:IPC"

Line 6: Line 6:
 
:addHeader( 'A header between the data rows' )
 
:addHeader( 'A header between the data rows' )
 
:addRow( 'Another label', 'more data' )
 
:addRow( 'Another label', 'more data' )
 +
-- For unit tests, see [[Module:Bananas/testcases]]
 +
local p = {}
 +
 +
function p.hello()
 +
return "Hello, world!"
 +
end
 +
 +
return p

Revision as of 21:21, 20 July 2016

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

Script error: Lua error: Internal error: The interpreter exited with status 127.

local capiunto = require 'capiunto'
capiunto.create( {
	title = 'Title of the Infobox'
} )
:addRow( 'A label', 'some data' )
:addHeader( 'A header between the data rows' )
:addRow( 'Another label', 'more data' )
-- For unit tests, see [[Module:Bananas/testcases]]
local p = {}

function p.hello()
	return "Hello, world!"
end

return p