On Commons MediaWiki:Gadget-PermissionOTRS.js is responsible for adding OTRS numbers to files. Lately I was copying all OTRS numbers to Structured Data on Commons (SDC) using P6305 property. Can someone familiar with javescript update the script so it adds SDC statement automatically? See https://commons.wikimedia.org/wiki/MediaWiki_talk:Gadget-PermissionOTRS.js#Add_P6305_SDC_statement.
Description
Description
Related Objects
Related Objects
Event Timeline
Comment Actions
Code to modify: https://commons.wikimedia.org/wiki/MediaWiki:Gadget-PermissionOTRS.js . Code in https://www.wikidata.org/wiki/MediaWiki:AddQuickClaim.js can probably used as a starting point.
Comment Actions
NO! If I understand this correct the request is to make a multiedit where the file page and the structured data is changed with one edit!
Please do NOT do that unless you read this https://phabricator.wikimedia.org/T225897
As far as I can tell multiedits break the system.
Comment Actions
It looks to me as this is solved per https://commons.wikimedia.org/wiki/MediaWiki_talk:Gadget-PermissionOTRS.js/Archive_1#Add_P6305_SDC_statement so perhaps we can close this?