Module:InfoboxSnippet

local p = {} function p.default(frame) local capiunto = require 'capiunto' return capiunto.create( {		top = tostring(mw.title.getCurrentTitle),		topStyle = 'background:#cfc;',	} ) :addImage(		string.format('', frame.args["image"]), -- featured image		frame.args["description"] -- caption/description	) :addRow('Story', frame.args["story"]) :addRow('Language', frame.args["language"]) :addRow('Source URL', frame.args["source_url"]) :addRow('Provenance', frame.args["provenance"]) :addRow('Creation Date', frame.args["creation_date"]) :addRow('Discovery Date', frame.args["discovery_date"]) end

function p.noimage(frame) local capiunto = require 'capiunto' return capiunto.create( {		top = tostring(mw.title.getCurrentTitle),		topStyle = 'background:#cfc;',		bottom = frame.args["description"],	} ) :addRow('Story', frame.args["story"]) :addRow('Language', frame.args["language"]) :addRow('Source URL', frame.args["source_url"]) :addRow('Provenance', frame.args["provenance"]) :addRow('Creation Date', frame.args["creation_date"]) :addRow('Discovery Date', frame.args["discovery_date"]) end

return p