Обсуждение MediaWiki:Gadget-navboxNavigation.js

Последнее сообщение: 11 месяцев назад от Arlolra в теме «Conflict with MediaWiki:Gadget-directLinkToCommons.js»

Conflict with MediaWiki:Gadget-directLinkToCommons.js править

Please make an edit like the following, https://ru.wikipedia.org/wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%A1%D1%80%D0%B0%D0%B2%D0%BD%D0%B5%D0%BD%D0%B8%D0%B5_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86?page1=MediaWiki%3AGadget-navboxNavigation.js&rev1=119182065&page2=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA%3AArlolra%2Fsandbox%2FGadget-navboxNavigation.js&rev2=129154959&action=&unhide=

Removing the href for an image description link doesn't seem right, in setSelfLink().

If the navbox has an image, [[File:Image.jpg|PageName]], the title attribute on the .image link it produces could potentially be the same as the page name, if it were PageName.

An alternative to the above could be to not select this links altogether in getLinks, with $links = that.$node.find( 'a[title]:not(.image, .mw-file-description)' ), Arlolra (обс.) 18:16, 10 марта 2023 (UTC)Ответить

  • Done. Please use {{editprotected}} in the future. stjn 23:00, 18 мая 2023 (UTC)Ответить