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")
 
Line 1: Line 1:
local p = {} -- p stands for package
+
local p = {}
 
+
function p.hello( frame )
+
function p.run()
    return "Hello, world!"
+
local capiunto = require 'capiunto'
 +
return capiunto.create( {
 +
title = tostring(mw.title.getCurrentTitle()) ,
 +
top = 'Above text',
 +
topStyle = 'background:#cfc;',
 +
bottom = 'Below text'
 +
} )
 
end
 
end
 
+
 
return p
 
return p

Revision as of 01:04, 17 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 = 'Above text',
		topStyle = 'background:#cfc;',
		bottom = 'Below text'
	} )
end
 
return p