Bene created this task.
Bene added subscribers: Bene, Aklapper.
Bene added projects: MediaWiki-extensions-WikibaseClient,
MediaWiki-extensions-Capiunto, Wikidata.
TASK DESCRIPTION
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 ==
``` lang=lua, name=Module:Infobox
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
```
TASK DETAIL
https://phabricator.wikimedia.org/T100886
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Bene
Cc: Aklapper, Bene, Wikidata-bugs, aude, Jackmcbarn, hoo
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs