Difference between revisions of "Module:Bananas"

From Cysteinome
Jump to: navigation, search
(Created page with "local p = {} -- p stands for package function p.hello( frame ) return "Hello, world!" end return p")
 
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
local p = {} -- p stands for package
+
local p = {}
 
+
function p.hello( frame )
+
function p.run(frame)
    return "Hello, world!"
+
local capiunto = require 'capiunto'
 +
return capiunto.create( {
 +
title = tostring(mw.title.getCurrentTitle()) ,
 +
top = 'Above text',
 +
topStyle = 'background:#cfc;',
 +
bottom = 'Below text'
 +
} )
 +
:addRow(frame.args[1], frame.args[2])
 +
:addRow(frame.args[3], frame.args[4])
 
end
 
end
 
+
 
return p
 
return p

Latest revision as of 03:41, 4 December 2018

Documentation for this module may be created at Module:Bananas/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(frame.args[1], frame.args[2])
	:addRow(frame.args[3], frame.args[4])
end
 
return p