Pembicaraan MediaWiki:Gadget-imagelinks.js
Komentar terbaru: 1 tahun yang lalu oleh ABreault (WMF) pada topik Prepare for T314318
Prepare for T314318
suntingPlease copy this upstream change, https://www.mediawiki.org/w/index.php?title=Snippets%2FDirect_imagelinks_to_Commons&type=revision&diff=5451422&oldid=3976429
For more information, see mw:Parsoid/Parser_Unification/Media_structure/FAQ
Thanks, Arlolra (bicara) 24 November 2022 23.23 (UTC)
- @Arlolra: Thank you for your information, I will try to contact the interface admin asap, so then the changes could be implemented. NyıLVoskT • ~~~ 24 November 2022 23.30 (UTC)
- Thanks for the notice, @Arlolra @Nyilvoskt. I made some changes here and I wonder if that will be fine. Please inform me if you think it's not proper. ··· 🌸 Rachmat04 · ☕ 25 November 2022 11.02 (UTC)
- Hmm, while the change you made looks good, there seems to be an error when the gadget is enabled,
Skipped unavailable module ext.gadget.imagelinks
Error: Unknown module: jquery.mwExtension
Arlolra (bicara) 25 November 2022 19.22 (UTC)- @Arlolra: I restored previous verdion of the gadget and only modified this line only:
$content.find( 'a.image, a.mw-file-description' ).attr( 'href', function ( i, currVal ) {
- Let me know if that works well. Thank you, ··· 🌸 Rachmat04 · ☕ 27 November 2022 11.52 (UTC)
- Sorry, I should have investigated further. The problem seems to be with the dependencies in the definition of imagelinks[],
- MediaWiki:Gadgets-definition
dependencies=jquery.mwExtension
MediaWiki 1.30 removed mwExtension, it was deprecated in 1.26- So, the gadget was broken before we started making changes here. You can just remove that dependency from the definition and it should work. Also, you can restore the changes you undid if you'd like. Arlolra (bicara) 28 November 2022 20.03 (UTC)
- Done in Special:Diff/22966637
- This is working now, thanks ABreault (WMF) (bicara) 17 Februari 2023 22.49 (UTC)
- @Arlolra: I restored previous verdion of the gadget and only modified this line only:
- Thanks for the notice, @Arlolra @Nyilvoskt. I made some changes here and I wonder if that will be fine. Please inform me if you think it's not proper. ··· 🌸 Rachmat04 · ☕ 25 November 2022 11.02 (UTC)