Difference between revisions of "Module:Bananas"
(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 = {} | + | local p = {} |
| − | + | ||
| − | function 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 | 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