Closed nichtich closed 3 years ago
I gave it a shot here https://github.com/maxlath/wikibase-cli/pull/119 could you try to see if that works as you expected?
However the optionality of argument
id
as first argument may be a hard-coded best-practice instead.
I just worked on a case where the initial input is a Wikipedia article url instead, and that looked rather like a nice possibility
A first implementation of that template-specific help menu has been added in v15.4.0
: template help menu
I'm thus closing this issue for now, but feel welcome to reopen it or open new ones for modifications of that feature
As described here a JS file can be used as template. Option
--dry
emits the JSON data generated from the template, e.g.:But how do I document the template to remember which parameters to pass to the template? How about supporting
By extension of the exported function with fields
args
anddescription
:Additional use of
args
(although I'm not sure whether array, object or string): wd can detect missing arguments and raise an error instead of passing bogus data to Wikibase backend.The arguments might also depend on whether
edit-item
orcreate-item
was used:However the optionality of argument
id
as first argument may be a hard-coded best-practice instead.