Module:Song Infobox: Difference between revisions
From NOISZ Wiki
RiceEmpress (talk | contribs) No edit summary |
RiceEmpress (talk | contribs) No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
function p.main(frame) | function p.main(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local retval = capiunto.create( { | local retval = capiunto.create( { | ||
title = args.title, | title = args.title, | ||
} ) | } ) | ||
:addImage( args.image1, args.caption ) | :addImage("[[" .. args.image1 .. "|200px]]", args.caption ) | ||
return retval | return retval | ||
end | end | ||
return p | return p | ||
Latest revision as of 08:24, 3 June 2025
Documentation for this module may be created at Module:Song Infobox/doc
local capiunto = require 'capiunto'
local p = {}
function p.main(frame)
local args = frame:getParent().args
local retval = capiunto.create( {
title = args.title,
} )
:addImage("[[" .. args.image1 .. "|200px]]", args.caption )
return retval
end
return p