User talk:Yurik
Add topicThis page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
![]() Archives
|
---|
Why not link to the Maps extension, from the Maps page?
[edit]You reverted my edit without explaining why! :( My take on it is that the Maps page is about WMF-specific usage and development, and while those tools look like they're going to be brilliant, this wiki is about MediaWiki in general and so people often come here looking for help with their own wikis. To that end, I think the Maps page should be an overview of all mapping topics in the MediaWiki world — the most stable of which seems to be Extension:Maps. I think WMF-project mapping info more properly belongs on Meta.
Thanks for your consideration! Sam Wilson 01:34, 18 March 2016 (UTC)
- Hi @Samwilson, I would love to list all maps related extension to be listed there, but they shouldn't be just one. Feel free to add "see also" section that lists them all, or simply link to the Category:Map extensions, as otherwise someone will have to maintain that list. Thanks, and sorry for not explaining. Yurik (talk) 02:20, 25 March 2016 (UTC)
Displaying geographical information on maps
[edit]Can you help User:The Land with displaying geographical information on maps?
Basically what he has is a list of ratings (0-10) for UK postcodes (like AB1 1AB). How can he display this on a map somehow?
https://www.facebook.com/christopherkeating/posts/10101695820678930?pnref=story Ad Huikeshoven (talk) 10:05, 21 May 2016 (UTC)
Slides about dataviz
[edit]Hello Yurik,
I will do a presentation about data visualization during the French WikiCon the 21st August. I will present the Graph extension and also the dataviz part of Wikidata Query Service. Do you have some slides available on this subject? Pyb (talk) 12:30, 10 August 2016 (UTC)
- This is awesome! Sadly no, I don't have any slides, but i could discuss with you, perhaps over hangout, some of the new graph developments. Also, take a look at this demo (click download on the right) -- this should be available in SPARQL soonish. Overall, my goals for dataviz is to enable tabular data namespace on Commons, making data source visualization much easier. Also, I am hoping of enabling vega lite, and, eventually, integrating vega editor (with the very powerful debugger) into the graph sandbox. Yurik (talk) 13:43, 10 August 2016 (UTC)
Can't get graph to work
[edit]I'm trying to get graph extension to work.
- Checked both Graphs and JsonConfig are installed succesfully. - Example line chart from https://en.wikipedia.org/wiki/Template:Graph:Chart shows blank/nothing is drawn on screen.
Am I missing something from the installation? 2A00:8780:8:1:6556:9DEF:33DB:6837 (talk) 10:12, 2 January 2017 (UTC)
- Any help would be great and apologies for my not great English. Is JsonConfig the only dependancy Graph needs as mentioned in installation step 1? 2A00:8780:8:1:6556:9DEF:33DB:6837 (talk) 13:38, 2 January 2017 (UTC)
- Hi, check that the <graph> tag works for you by copying one of the last graphs at the demo page, without the complex template/lua code. Yurik (talk) 20:15, 2 January 2017 (UTC)
Просьба
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Здравствуйте уважаемый Юрий, с Новым годом))) Я Вам написал письмо в русской Википедии. Ankax Hayastan (talk) 21:51, 4 January 2017 (UTC)
- Извините, Вы что нибудь уточнили? Вы можете помочь мне? Ankax Hayastan (talk) 16:01, 7 January 2017 (UTC)
- Ankax, ya na etoi nedele budu v SF vstrechatsya s narodom, poprobuu posprashivat'. Yurik (talk) 01:51, 8 January 2017 (UTC)
- Здравствуйте, если Вы ничего не смогли уточнить, то можно эту тему считать закрытым. Удачи... Ankax Hayastan (talk) 21:35, 17 January 2017 (UTC)
- @Ankax Hayastan, izvinite, deistvitel'no nichego ne smog uznat' - voobshe ne ponyatno kto etim mozhet zanimatsya. Yurik (talk) 22:48, 17 January 2017 (UTC)
Kartographer
[edit]Hey. Is there a way to use this SPARQL in Kartographer?
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?coords {
VALUES ?itemclass { wd:Q5710433 wd:Q132821 }
?item wdt:P31/wdt:P279* ?itemclass .
wd:Q1218 wdt:P625 ?jerusalemloc .
SERVICE wikibase:around {
?item wdt:P625 ?coords .
bd:serviceParam wikibase:center ?jerusalemloc .
bd:serviceParam wikibase:radius "250" .
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "he" .
}
}
Thanks Mikey641 (talk) 20:23, 14 February 2017 (UTC)
- @Mikey641, you can use SPARQL in Kartographer to get shapes (polygons) and lines , but you cannot use coordinates at this point. See help page. Yurik (talk) 23:57, 14 February 2017 (UTC)
- Oh. That's too bad. Well, is there any way to convert JSON to the wikimedia GeoJSON? Mikey641 (talk) 00:18, 15 February 2017 (UTC)
- @Mikey641, what do you mean by JSON? Also, "Wikimedia GeoJSON" is not different from the standard GeoJSON, just has an optional extra type called "ExternalData", but otherwise it is standard. Yurik (talk) 18:31, 15 February 2017 (UTC)
- by JSON I mean that when you run the query you get a button to download the data to a couple of formats: JSON, TSV and CSV or SVG. My question is if there is a tool to convert it to GeoJSON.
- When I converted this query to GeoJSON it didn't work in wikipedia. Look at this edit Mikey641 (talk) 18:39, 15 February 2017 (UTC)
- @Mikey641, those downloads only work inside the wikidata query service. With <mapframe>, you need to specify a query inside the "ExternalData" type, with service="geoshape". Mapframe/maplink will draw the shapes (polygons or lines) if the objects in OSM have wikidata tags with the same value as the "id" column:
- Yurik (talk) 19:52, 15 February 2017 (UTC)
<mapframe> { "type": "ExternalData", "service": "geoshape", "query": " SELECT ?id ?title ?description ...
Strange line behaviour in Template:Graph:Population history
[edit]Hello Yurik,
First of all a big Thank you for your amazing work with graphs!
I'd like to report a strange behaviour in Template:Graph:Population history, where a connecting line turns in the wrong direction. An example of this can be found at w:el:Χρήστης:Ah3kal/πρόχειρο 10. The line connecting 1881 to 1891 is extending beyond 1891 to 1900 and then turns back. Thank you for your time. Ah3kal (talk) 06:08, 8 May 2017 (UTC)
- This is part of the interpolation algorithm called "monotone". I added a new parameter called "interpolate", and updated Greek wiki and your example with it. interpolate=monotone solves your problem. Also, I would highly recommend using shared tabular data on Commons instead of hardcoding them in the template call. This way someone can update the population, and all graphs in all wikis will be automatically updated. Lastly, I'm running for the board, please support and let others know :) Thanks!! Yurik (talk) 18:53, 8 May 2017 (UTC)
- Thank you very much! Hardcoded data were use only to highlight this behaviour in a stable way since the original graph used data from wikidata and the value for 1700 was just for experimentation. I had allready supported you :) Good luck with it. Regards! Ah3kal (talk) 19:11, 8 May 2017 (UTC)
Graph:Population history again
[edit]Hello again, Yurik
Is possible to have a time frame for the data? Some times there exists a distant value, and the inclusion of this value, because of the interpolation creates a false impression of population stability. E.g. see the graph in https://el.wikipedia.org/wiki/%CE%A7%CF%81%CE%B9%CF%83%CF%84%CE%B9%CE%B1%CE%BD%CE%BF%CF%8D%CF%80%CE%BF%CE%BB%CE%B7_%CE%9C%CE%B5%CF%83%CF%83%CE%B7%CE%BD%CE%AF%CE%B1%CF%82 el:Χριστιανούπολη Μεσσηνίας . There is a 150+ years gap from the first value (1689) to the next (1844), during which time, the population certainly wasn't stable (major events happened that had heavy impact in the population:e.g. unsuccesfull greek revolution in 1770, greek war of independence 1821, etc.). It would be more accurate and useful from an encyclopedic point of view to have the choice to frame the graph in a certain time, e.g. >1840, intstead of projecting values for 150 years, or removing a sourced value from the distant past. Is this possible?
Thank you in advance Ah3kal (talk) 06:36, 7 June 2017 (UTC)
- Hi, how would you want to display it in that case? Yurik (talk) 21:26, 7 June 2017 (UTC)
- Well I would like to exclude the first value and have the graph starting at 1844, without having to copy the data in commons (https://commons.wikimedia.org/wiki/Data:Wikidata/%CE%A7%CF%81%CE%B9%CF%83%CF%84%CE%B9%CE%B1%CE%BD%CE%BF%CF%8D%CF%80%CE%BF%CE%BB%CE%B7_%CE%9C%CE%B5%CF%83%CF%83%CE%B7%CE%BD%CE%AF%CE%B1%CF%82.tab
- E.g. I'd like if possible, the graph to work like this {Graph:Population history|Q=..........|from=1800|to=1900} with "from" and "to" to be optional Ah3kal (talk) 16:50, 9 June 2017 (UTC)
- Done - use the new "filter" expression (much more powerful than simple from/to) -- e.g. filter=datum.year >= 1800 && datum.year < 1900 Yurik (talk) 20:26, 9 June 2017 (UTC)
- Thank you very much! Ah3kal (talk) 20:28, 9 June 2017 (UTC)
2016 data ready for Template:Graph:US Map state highlight
[edit]Hey Yurik,
I've added 2016 state GDP data here, and I attempted to update Template:Graph:US Map state highlight (and the Wikipedia equivalent) by changing initYear to 2016, but that simple change seemed to break the initial display before one presses play. So I've reverted my edits in expectance that you'll handle the change.
Another point to note is that I am currently unable to click onto 2016 without creating a range. Might be worth looking into. Cheers! Joel Amos (talk) 04:13, 8 June 2017 (UTC)
- Hi Joel, I reverted it to init=2016 -- it seems to look fine - I think it is simply that it needs some time to refresh. The 2016 range click is a bug, I need to figure out how to do it better. Yurik (talk) 20:29, 9 June 2017 (UTC)
Template:Graph:Chart can x axis values have angle in bar chart?
[edit]Hello Yurik!
I used a graph in this transcription in el.wikisource: https://el.wikisource.org/wiki/%CE%A0%CF%81%CE%B5%CE%B2%CE%B5%CE%B6%CE%AC%CE%BD%CE%B9%CE%BA%CE%B1_%CE%A7%CF%81%CE%BF%CE%BD%CE%B9%CE%BA%CE%AC._%CE%95%CF%85%CF%81%CE%B5%CF%84%CE%AE%CF%81%CE%B9%CE%BF_%CF%84%CE%B5%CF%85%CF%87%CF%8E%CE%BD_1-50#.CE.93.CE.B9.CE.B1_.CF.84.CE.B1_.CE.86.CF.81.CE.B8.CF.81.CE.B1
The values in x-axis overlap. Is it possible to modify the labels to be at an angle (as in the graph in the image)? Or if not, is there any other solution?
Thank you in advance! Ah3kal (talk) 09:38, 28 July 2017 (UTC)
- @Ah3kal, I don't see the graph there. Can you point me to the specific change? And yes, it is possible to place labels at an angle - https://github.com/vega/vega/wiki/Axes (search for angle). I am working on a set of templates - Category:Graph Template Collection -- might be what you need. Yurik (talk) 23:53, 1 August 2017 (UTC)
- My bad Yurik, wrong link:
- The link I intended is: https://el.wikisource.org/wiki/%CE%A3%CE%B5%CE%BB%CE%AF%CE%B4%CE%B1%3A%CE%A0%CF%81%CE%B5%CE%B2%CE%B5%CE%B6%CE%AC%CE%BD%CE%B9%CE%BA%CE%B1_%CE%A7%CF%81%CE%BF%CE%BD%CE%B9%CE%BA%CE%AC._%CE%95%CF%85%CF%81%CE%B5%CF%84%CE%AE%CF%81%CE%B9%CE%BF_%CF%84%CE%B5%CF%85%CF%87%CF%8E%CE%BD_1%E2%80%9350.pdf/54
- Thank you for your answer. I will try the link you gave me. Ah3kal (talk) 04:36, 2 August 2017 (UTC)
MapFrame Sparql -render bug
[edit]Just notifying you before the example template is deleted from enwiki. This is for replicating the phab:T168601
1.) Go to map
- https://fi.wikipedia.org/wiki/Malline:MapFrame/Seminaarinm%C3%A4en_rakennukset-WLM
2.) Open the map by clicking it
3.) Click some building so the popup will open
4.) The popup will contain template :w:en:en:Template:Kartographer_WLM_pin which it contains some information about the item. Bug is that the template is always rendered in enwiki. Even if the original map is in some other wiki. Zache (talk) 16:35, 15 December 2017 (UTC)
Top-level fields for .map pages
[edit]Hi Yurik,
I think you are the main contributor for the .map pages, that's why I'm writing you.
My name Louis-Philippe R. Lambert and I work for the Meteorological Service of Canada with Miguel Tremblay that you might know.
We are working on importing our climatic observations for many different stations on .map and .tab pages on Wiki commons. We did a first example for Bagotville. The problem with the .map page is that we can't export directly the code and read it in a GIS software. This is because the GeoJSON part of the page is not in the top-level fields. GIS software can't read the GeoJSON if it's in the Data field... FYI, I'm using QGIS to read my GeoJSON.
We also can't add top-level fields in the .map page, it gives us an error because it's not expecting more than the 6 defined fields.
It would be very import for us to be able to display the GeoJSON on .map pages and retrieve the code to be able to directly import it in GIS software. The solution we can think about:
- Would it be possible to remove the Data field and simply have the GeoJSON field on the top level fields? This way GIS software would simply ignore the specific Wiki tag and read the GeoJSON fields.
{ "license": "CC0-1.0", "description": { "en": "Manhattan Neighborhoods" }, "sources": "http://example.com and Data page", "zoom": 11, "latitude": 40.8, "longitude": -74, "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "title": {"en":"Alphabet City", "ru":"Алфабет-сити"} }, "geometry": { "type": "Polygon", "coordinates": [[ [-73.980356454849,40.730425548938] }
- Could we copy the GeoJSON fields on the top levels part so that GIS software can read the file and we could have a copy of the GeoJSON file in the Data field. This involves duplication of the GeoJSON data...
{ "license": "CC0-1.0", "description": { "en": "Manhattan Neighborhoods" }, "sources": "http://example.com and Data page", "zoom": 11, "latitude": 40.8, "longitude": -74, "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "title": {"en":"Alphabet City", "ru":"Алфабет-сити"} }, "geometry": { "type": "Polygon", "coordinates": [[ [-73.980356454849,40.730425548938],...] }, "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "title": {"en":"Alphabet City", "ru":"Алфабет-сити"} }, "geometry": { "type": "Polygon", "coordinates": [[ [-73.980356454849,40.730425548938] }
Can you think of another solution?
Thanks and have a nice day
LP Rousseaulambertlp (talk) 15:53, 29 December 2017 (UTC)
licencing
[edit]Hi. I note that you added the licencing bit on Help:Map Data article. There's a question regarding this on the Talk Page. If you could chip in, it would be good, and wheels could start moving. Many thanks! Robin Owain (WMUK) (talk) 09:10, 6 February 2018 (UTC)
Thanks for your advice
[edit]Hi Yurik
I'm Joe, the product manager of Collaboration team. We've been asked to step in during the next few months to work on maps—in response to the winning Wishlist item, though our work probably won't be limited to Wishlist. I wanted to say hi, and thank you for reaching out with advice on T141335. I know the maps stack is in some large part your baby, so your participation as we try to make some fixes will be a big help.
This engagement was a sudden shift for Collab team, so we're working now with the former Maps team members to nail down our goals and plans—to gauge what we can do in the limited amount of time we have, and how best to stabilize the tech so it won't need too much maintenance when we roll off again. As soon as we have a better sense of where we're headed we'll make an announcement to the community. We'll try to say at least something this week. But in the meantime I just wanted to make contact and let you know that maps activity is heating up (at least for a time). Cheers. JMatazzoni (WMF) (talk) 22:11, 11 February 2018 (UTC)
How much translation data is available in OSM?
[edit]Hi Yurik, As you know, we're getting close to releasing the internationalization feature (T112948). I want to be able to tell wiki users just what this will mean for them. To a large degree, that will be dependent on the data that is available from OSM. In other words, we can provide the capability to show a map with labels in your language, but if OSM doesn't have labels in your language, then it won't display (unless you add it).
I know you're experienced in these areas, so I have a couple of questions, if you don't mind.
- General question: in your experience, how much translation does OSM have? Just country and capital names and major tourist attractions? Or does it go much further? (Obviously, the biggest issue is between different scripts: I can learn that "Rue" = "Street," but if I'm looking at Chinese characters for the street names, I'm lost.)
- Is there a way to preview how various maps would look in a different language? Changing my "preferred language" setting in openstreetmap.org, doesn't work. I see that I can click on individual map features; is there a more general way? And is openstreetmap.org actually showing everything it has?
- Is there a way to query the system somehow and get figures on this? E.g., to know how much of each language has been added for each country? Or to say for map Paris or Rome, what is the amount of non-French and non-Italian language content available?
It's important because I don't want to oversell this feature to users and then have them be disappointed with the results. Thanks so much for your help. JMatazzoni (WMF) (talk) 21:49, 11 April 2018 (UTC)
- Hi @JMatazzoni (WMF), The easiest way to check how a certain name:xx is distributed is using taginfo. Here's all tags containing "name". name:en is the most common, with 2.6 million tags, and if you click it and click map tab, you will see it's fairly well distributed.
- But the most other languages are far from it - name:ru, 2nd most common, seems to be only present in the eastern Europe - probably because editors there tend to add it together with name.
- In general, several map companies have said they have to rely on Wikidata for internationalization. The process is fairly simple - just use Wikidata tag to lookup the name if its not present.
- There is no way AFAIK to preview it, at least not on OSM site. OSM is using a fairly dated tech, and cannot easily show multiple languages. Yurik (talk) 07:00, 13 April 2018 (UTC)
What are the 'advantages' of using mapframe with I18n?
[edit]Hi Yurik,
I'm writing up an update for the Map Improvements 2018 project page that talks about the coming I18n release. One section, on use cases, tries to break down what the advantages and disadvantages of using mapframe with I18n are compared to the current method for basic locator maps of foreign cities. But I'm slightly unclear on just what users are doing now when they do this (how do they make those graphics?). Would you say:
- Is it easier to just add a mapframe map for a foreign city or country compared to what is done now? I.e., can the process be streamlined so that all users have to do is plug in the coordinates, vs. whatever they do now? Or is it pretty streamlined now?
- Besides basic locator maps (e.g., this type of thing), what would you say the use cases are for mapframe or, I guess, maplink, with I18n?
Thanks for your thoughts. JMatazzoni (WMF) (talk) 22:14, 19 April 2018 (UTC)
- I think there are several things here that shouldn't be conflated:
- i18n of the base map allows users to see the map localized to their needs, and it doesn't matter where they use it - in a <maplink/mapframe>, in a locator map via the <graph> tag, or in a Wikidata Query search results. It benefits them all.
- The <maframe> is orthogonal to the localization efforts of the base map. It allows editors to insert an interactive map into a page, and draw a limited set of things on it. The "static" methods (<graph> tag) has much more flexibility in terms of the actual drawing - any visuals on top of the map. The <mapframe> has interactivity, and ease-of-use - inserting <mapframe> does not require a complex graph template that very few people understand. But mapframe/maplink are much more limited in terms of what they can present.
- Lastly, there are "classical" locator maps - simple SVG-style images with very few shapes/labels, that simply illustrate basic country/region shapes, without any details, without any interactivity, in a single language, and without a good ability to draw things on top of them (there are hacks that allow it, but those are not very stable/portable). This method is the most flexible, but also the most time consuming -- you can draw anything you want - it's an image. Yurik (talk) 22:38, 19 April 2018 (UTC)
Multilingual Shared Templates and Modules on thwikibooks
[edit]Hello Yurik,
I'm user on Thai Wikibooks. Thank you for interest and share to our small community. (b:th:วิกิตำรา:สภากาแฟ#Multilingual_Shared_Templates_and_Modules) You may be post to Thai Wikipedia because It is most large wiki projects in Thai language. I believe editors on Thai Wikipedia will interest and helping to your project.
Sincerely. Geonuch (talk) 11:37, 12 May 2019 (UTC)
- Hi @Geonuch, I would like to engage smaller wikis too -- being a small community, you would benefit from this system even more than the larger wikis. Yurik (talk) 17:10, 12 May 2019 (UTC)
Hi!
Could you be so kind and take a look at Template:Graph:Stacked the two graphs at the top are visible, the two at the bottom not. In deWiki there are is a similar effect, see de:Vorlage:Graph:Stacked and in some articles, like de:Liste der Schachgroßmeister#Historische_Entwicklung the graph is missing.
Thanks! Wurgl (talk) 13:43, 19 June 2019 (UTC)
Graph
[edit]Hello. Can you help me with a graph at el.wikipedia? Like Extension:Graph/Demo/falkensee Xaris333 (talk) 17:23, 2 November 2019 (UTC)
Hello Yurik, I see that you are the author of Extension:Kartographer. Could you please take a look at phabricator:T225350? Maplinks via Wikidata have not been working for the past months. Thank you in advance! UV (talk) 17:56, 11 January 2020 (UTC)
Multilingual Templates and Modules
[edit]Hi! First of all, infinite thanks for all the work you've done and are still doing for this movement and the world generally. I think that you and I are actually moved by a similar spirit in our work, though we may be going through slightly different paths. I even think we briefly met during the Jerusalem Hackathon, I recall you were working on maps back then.
To the point: I think Multilingual Templates and Modules is an all-important project and I'm really happy it's already so advanced! I recently added a module I'm developing to the "In progress" list, and was a bit worried to notice you haven't been around much lately. Not sure if there's some personal reason or what, but wanted to check on you to know if we can expect the bot to run soon, or what.
Hope you're ok during these trying times! Sophivorus (talk) 13:53, 28 June 2020 (UTC)
Template including from other wiki
[edit]Greetings! We plan to ask to create a private wiki for the Arbitration Committee of the Russian Wikipedia, but then we don’t want to fork all the templates we need into it. User:Amire80 said you can suggest some solutions for this problem. Since adding some extensions during creation is probably easier than adding them later, it would be important for us, if such a solution exists, to find it now.
Best regards, Dmitry
Приветствую! Мы планируем попросить сделать приватную вики для арбитражного комитета русской Википедии, но не хочется потом тащить в неё все необходимые для оформления шаблоны. User:Amire80 сказал что вы можете подсказать какие-то решения. Так как добавлять какие-то расширения при создании наверное проще, чем добавлять их потом, то для нас было бы важно, если такое решение существует, узнать о нём заранее. Carn (talk) 10:25, 12 September 2020 (UTC)
- Hi @Carn, the dibabel tool at the moment can only work with the public wikis -- those that can be linked from Wikidata. It would require substantial rework to support other wikis. Yurik (talk) 14:16, 14 September 2020 (UTC)
- Thank you very much, I was thinking more about the {{:ru:Template:u}} mechanism, templates are easier to copy manually. Carn (talk) 15:01, 14 September 2020 (UTC)
- Yeah, those you will just have to copy/paste manually. One day I do hope that private wikis will be able to use Help:Tabular Data (actually they might be already?). Having access to the data namespace on commons would allow single place translation for all of the wikis. Yurik (talk) 15:31, 14 September 2020 (UTC)
- We already can do this through lua modules, but I don't personally have an examples of i18n that modules keep on Commons. Carn (talk) 15:54, 14 September 2020 (UTC)
serverless react apps w/ oauth
[edit]Did you ever get this to work? :) Sj (talk) 19:08, 2 February 2022 (UTC)
- can't recall, maybe :) Yurik (talk) 19:09, 2 February 2022 (UTC)
Issue with setting Marker in Visual Editor
[edit]Sorry to ask here, but I have not really found anything in google (or did search for wrong things). I installed the Kartographer extention to a 1.37.3 mediawiki (docker), I got it to show a map using OSM. But when I try to set a marker, it appears the marker symbol is not found.
Any hints what i could check what is wrong? Many Thanks! Sbohner (talk) 15:18, 28 July 2022 (UTC)