The capiunto interface allows to use methods like addRow or addImage to add data to an infobox. One should also be able to call addStatement and pass the label of a property to get a row with the statements for that property. The module should be used like this:
In this first version, references and qualifiers are not supported. There will be other tasks to discuss and decide how they should be included in this pattern.
Code example
local infobox = require 'capiunto-wikibase' local p = {} function p.run() return infobox.create( { title = 'Title of the Infobox' } ) :addRow( 'A label', 'some data' ) :addHeader( 'A header between the data rows' ) :addRow( 'Another label', 'more data' ) :addStatement( 'Some wikidata property' ) end return p