Module:Infobox Test: Difference between revisions
From Bibliotheca Anonoma
Antonizoon (talk | contribs) No edit summary |
Antonizoon (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
} ) | } ) | ||
:addImage( | :addImage( | ||
'[[File:' .. frame.args[2] .. '|200px]]', -- featured image | |||
'[[File:' | frame.args[3] -- caption | ||
frame.args[3] | |||
) | ) | ||
:addRow('URL', frame.args[4]) | :addRow('URL', frame.args[4]) |
Revision as of 19:36, 8 January 2017
Documentation for this module may be created at Module:Infobox Test/doc
local p = {}
function p.run(frame)
local capiunto = require 'capiunto'
return capiunto.create( {
top = tostring(mw.title.getCurrentTitle()),
topStyle = 'background:#cfc;',
bottom = frame.args[1]; -- description
} )
:addImage(
'[[File:' .. frame.args[2] .. '|200px]]', -- featured image
frame.args[3] -- caption
)
:addRow('URL', frame.args[4])
:addRow('Project Status', frame.args[5])
:addRow('Archiving Status', frame.args[6])
:addRow('Project Source', frame.args[7])
end
return p