Causing a console error on a COBOL code block on
https://en.wikipedia.org/wiki/Visual_FoxPro.
The optional chaining operator should ideally be used here, too bad
it's ES2020.
Bug: T376958
Change-Id: Id4c604e4897d83cb51218e785db9f553b3f32fda
In Scribunto modules, link page names used in require(), mw.loadData()
and mw.loadJsonData() invocations.
Inspired from the CodeLinks gadget[0] but rewritten for brevity,
avoiding Wiktionary specific code, making the code more generic,
and thereby adding support for mw.loadJsonData().
[0]: https://en.wiktionary.org/wiki/MediaWiki:Gadget-CodeLinks.js
Bug: T368166
Change-Id: Idc554269ee52a05660fa41f065a2b3c73e2e1b9b