Hi Rich.
Have a look at https://github.com/s7eph4n/SimpleBatchUpload.
It's an extension, not a script, but it was developed with exactly your use case in mind. It provides a Special page for uploading multiple files to MediaWiki and setting a standard template call as the wikitext of the uploaded file's page. That template could then set your properties or a category. (You will need to use the development version to get the full functionality.)
Cheers Stephan
-------- Original Message -------- On Sep 28, 2017, 17:21, Evans, Richard K. (GRC-H000) wrote:
Hi.
I set my FILE namespace to have a default form to edit with which adds semantic properties with default values based on the article name.
The problem is that when I upload a file, the upload process doesn't use the form. (There is also the problem that hundreds of legacy files need to go through the "edit with form and save" steps to get the semantic properties set with their default values.
My question is --- is the a maintenance script I can run that will automate the task of "editing with form" and then "save" for each article without me having to visit each article?
An alternate question is --- is there a non-SMW way to include an in-page, in-line image gallery that is the result of a keyword search for the image and file article names?
better way to get searchable semantic properties with default
Thank you! -Rich
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l