Benutzer Diskussion:RolandUnger/Archiv/2019/4.Quartal

Letzter Kommentar: vor 5 Jahren von RolandUnger in Abschnitt Hauptseite/Reisenachrichten

RolandUnger > Archiv > 4.Quartal
Dieser Artikel ist Teil unseres Archivs. Den aktuellen Artikel findest Du unter Benutzer Diskussion:RolandUnger.

it:Discussioni utente:Andyrom75/ListingEditorTest.js

Bearbeiten

Hi Roland, I need some help on debugging the above page, but more important I need a basic suggestion because I think I have a wrong test approach.

From preferences->accessories I've disabled the listing editor.

From Chrome debugging I execute currently working script:

importStylesheet('MediaWiki:Gadget-ListingEditor.css'); importScript('MediaWiki:Gadget-ListingEditor.js');

When I click on a ListingEditor edit link, the script generate the same Uncaught TypeError in the same point (i.e. $('#input-wikidata-label', form).autocomplete).

Which is my mistake? What should I do for a correct debugging?

Your support will be highly appreciated. Thanks, --Andyrom75 (Diskussion) 09:31, 8. Okt. 2019 (CEST)Beantworten

I've been force to create a different gadget and now works. I think the problem is on the required libraries that I'm not able to collect through my common.js. Any idea?
PS If you have no idea or time to think about about just let me know. At least I knew you have read this message ;-) --Andyrom75 (Diskussion) 08:28, 18. Okt. 2019 (CEST)Beantworten

────────────────────────────────────────────────────────────────────────────────────────────────────

ad 1) If you are testing the script in user namespace instead of calling as a gadget you must load the additional jQuery libraries before running the script. It could be done in the following way by principle:

mw.loader.using(['mediawiki.util', 'mediawiki.api', 'jquery.ui']).then( function () {
	$( ListingEditor.Core.init );
});

ad 2) DerFussi is not involved in the development of marker modules and the listing editor. So he cannot answer your questions concerning the editor. You asked: "I would add a feature that I've seen in the German version: clickable local currency and clickable country prefix." It is correct that this information is stored in the vCard/listing templates. We used this way to reduce the computing time and the complexity of the editor. To get the country-specific data we only use the Wikidata country property P17. It takes a lot of computing time to get all other data from Wikidata so we could not use this way. We are using ready-made tables like CountryData/Geography and VCard/Currencies to get these data.

Now I think to reprogram the editor from scratch but I will not start before 2020. The jQuery ui.dialog and ui.autocomplete libraries are deprecated and not working on mobile devices. We had to replace them by OOUI. And to reduce loading time at the onload process it seems to be useful to load the editor on demand only. It would be a huge work.

Unfortunately, I am now very busy. That's why I am focusing my work error detection, error correction and maintenance. --RolandUnger (Diskussion) 07:45, 22. Okt. 2019 (CEST)Beantworten

Thanks for ad1; now works. Unfortunately I've read only now ad2, so in the past few days I've already studied your scripts/pages and I've spent some time adding manually missing information on wikidata and developing it:Modulo:CountryData (based on your Modul:Wikidata utilities) that works pretty fine although is not yet complete, I still need to find a property that allow me to identify an administrative territorial entity. My idea is to call getCountryEntity recursively. Have you any clue?
I understand what you say about computing time, but in the meanwhile I consider this script a good compromise. --Andyrom75 (Diskussion) 17:54, 23. Okt. 2019 (CEST)Beantworten

Hauptseite/Reisenachrichten

Bearbeiten

Hallo Roland, hier einige interessante Hinweise für Reisende nach Kaliningrad und St. Petersburg: Seit 01.07.2019 bzw. 01.10.2019 gelten für neue, stark vereinfachte Visaregelungen. Hier Details für Kalinigrad bzw. Sankt Petersburg und das Leningrader Gebiet. Kostenfreie elektronische Visa gibt bis 4 Tage vor Einreise hier. Ich möchte ungern in den von Dir aktualisierten Reisenachrichten etwas eintragen, daher hier der Hinweis. Viele Grüße --Eduard47 (Diskussion) 18:20, 9. Nov. 2019 (CET)Beantworten

Ich habe mal eine Nachricht angelegt. Du darfst aber auch selbst schreiben. Bei Fehlern korrigieren wir einfach. --RolandUnger (Diskussion) 08:31, 22. Nov. 2019 (CET)Beantworten
Zurück zur Benutzerseite von „RolandUnger/Archiv/2019/4.Quartal“.