Difference between revisions of "Module:Bananas"

From Cysteinome
Jump to: navigation, search
Line 1: Line 1:
 
local p = {}
 
local p = {}
 
   
 
   
function p.run()
+
function p.run(test)
 
local capiunto = require 'capiunto'
 
local capiunto = require 'capiunto'
 
return capiunto.create( {
 
return capiunto.create( {

Revision as of 03:51, 1 December 2018

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

local p = {}
 
function p.run(test)
	local capiunto = require 'capiunto'
	return capiunto.create( {
		title = tostring(mw.title.getCurrentTitle()) ,
		top = 'Above text',
		topStyle = 'background:#cfc;',
		bottom = 'Below text'
	} )
	:addRow('H', 'Hydrogen')
	:addRow('He','Helium')
	:addRow('Li','Lithium')
	:addImage(
		'[[File:Keyhole Nebula - Hubble 1999.jpg|200px|alt=Keyhole Nebula - Hubble 1999]]', 
		'Caption displayed below'
	)
end
 
return p