Module:CIB: Difference between revisions

From The Satanic Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
local p = {}
local p = {}
   
   
function p.run()
function p.run(frame)
local capiunto = require 'capiunto'
local capiunto = require 'capiunto'
return capiunto.create( {
return capiunto.create( {
Line 9: Line 9:
bottom = 'Below text'
bottom = 'Below text'
} )
} )
:addRow('H', 'Hydrogen')
:addRow(frame.args[1], frame.args[2])
:addRow('He','Helium')
:addRow(frame.args[3], frame.args[4])
:addRow('Li','Lithium')
:addImage(
'[[File:Keyhole Nebula - Hubble 1999.jpg|200px|alt=Keyhole Nebula - Hubble 1999]]',
'Caption displayed below'
)
end
end
   
   
return p
return p

Revision as of 22:06, 21 June 2021

Documentation for this module may be created at Module:CIB/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