If you wanted to use a Hook then you would probably want to use the regular
post mediawiki save hook.
I believe that would currently be
https://www.mediawiki.org/wiki/Manual:Hooks/PageContentSaveComplete
However you might find it cleaner to use LUA.
See
https://www.wikidata.org/wiki/Template:Label and
https://www.wikidata.org/wiki/Template:Q on Wikidata.
It will be great when we can get to the point that some of the templates,
or things like them come bundled with an stock Wikibase.
Addshore
On Sat, 12 Oct 2019 at 01:38, Olivier Rossel <olivier.rossel(a)gmail.com>
wrote:
Hi everyone.
Not sure it is the correct place to discuss that, but I am working on the
installation of Wikibase alongside SemanticMediaWiki in the same Mediawiki
instance.
(not sure the 'Semantic' is useful for the rest of that mail, but
anyway...)
To allow human-readable links from (Semantic)MediaWiki pages to Wikibase
pages, I plan to use the DisplayTitle extension.
I would need Wikibase to have an additional feature when saving the
(english?) label of a page: also save it as the 'displaytitle' of that page
in the 'page_props' table.
The question is: how can I add this hook in Wikibase saving process?
Any help is welcome.
_______________________________________________
Wikibaseug mailing list
Wikibaseug(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibaseug