Jump to content

User talk:So9q

Page contents not supported in other languages.
Add topic
From Wikivoyage
Latest comment: 3 years ago by So9q in topic Long lists

Welcome

[edit]

Hello, So9q! Welcome to Wikivoyage.

To help get you started contributing, we've created a tips for new contributors page, full of helpful links about policies and guidelines and style, as well as some important information on copyleft and basic stuff like how to edit a page. If you need help, check out Help, or post a message in the travellers' pub. New users are also welcome to post any questions or concerns to the arrivals lounge. If you are familiar with Wikipedia, take a look over some of the differences here. If you want to contribute with information about the place where you live, see Wikivoyage:Welcome, locals.

We do need more people who know about outdoor life in the Nordic countries.

However, I removed your map showing Jämtlandstriangeln from Hiking in the Nordic countries. The article tries to cover a large area, and there are at least a dozen important trails that should be mentioned. Jämtlandstriangeln may be one of these, but the map was of little general use. Please instead tell about the trail in a way similar to how the other trails are presented. You could write a stub article (or a complete one, of course, if you have the time!), link that, and link the article to the Swedish version.

I'd also be happy if you took a look at our coverage on Swedish trails (at least Kungsleden, Padjelantaleden and Nordkalottleden have articles) and parks (Laponia is probably the best developed) – and Hiking in the Nordic countries from a Swedish perspective. Any comments on these are welcome, on the articles' talk pages or mine.

LPfi (talk) 17:13, 19 March 2020 (UTC)Reply

Campsites

[edit]
  • Hi there. Don't sweat the simple stuff please. Read wiaa and ttcf and WV:Listings, and please please, don't try to list a link to an aggregator; make a listing for each one of the campsites instead. Above the editing window, there's a button with a bed; please use it. Non-compliant editings will be reverted. Thanks for understanding Ibaman (talk) 14:37, 23 September 2020 (UTC)Reply
Hi there again! I'm glad to see you understand the wiki code and are able to devise smart solutions to this pickle. I'm not at all familiar with any of it, and hope some of the code-smart admins will appear shortly to help. Be welcome to tweak around. Cheers Ibaman (talk) 18:09, 23 September 2020 (UTC)Reply
Hi :) Thanks for being so kind. Which pickle? (generating listings from a wikidata query?). I like coding and study informatics so I know my way around some JS, Python, wikicode and the Wikidata API. I hope to be able to help improve the Swedish entries with campsites. There are more than 1000 of them and many are really nice and worth a visit. I started https://www.wikidata.org/wiki/Wikidata:WikiProject_Campsites not long ago, and there is a lot of data from Swedish authorities being opened up now that I have not had time to import it all yet. :)--So9q (talk) 18:19, 23 September 2020 (UTC)Reply
let's keep in the Pub now, I pinged the guys that know how to help. Ibaman (talk) 18:32, 23 September 2020 (UTC)Reply

Map of campsites doesn't work, is rawhtml permitted?

[edit]
Swept in from the pub

I just made this change: https://en.wikivoyage.org/w/index.php?title=H%C3%A4rn%C3%B6sand&oldid=4068115 I have modeled and photoed some campsites I know of in the municipality and would like to share them on Wikivoyage on an interactive map based on a search query from WD. How is the best way to go about presenting this on Wikivoyage?--So9q (talk) 14:22, 23 September 2020 (UTC)Reply

Thanks for your contributions. Please make a listing for each one of the campsites, that's the Wikivoyage way. Ibaman (talk) 14:41, 23 September 2020 (UTC)Reply
I found out that listing are automatically added to article maps with color coded numbers. Very nice solution to a complex problem. :)--So9q (talk) 20:38, 23 September 2020 (UTC)Reply

Listings generator from WD queries

[edit]
Swept in from the pub

I read and understand the structure now, LGTM. Is there a WD->WV listings exporter/generator? There are a LOT of campsites in just Sweden, it is not feasible to type in all this manually IMO.--So9q (talk) 14:50, 23 September 2020 (UTC) I found out that the listings editor is okay for entering a new campsite, but as these do not have wikipedia entries, the editor complains about the name not being filled in which is a bug IMO. Reported here.--So9q (talk) 18:21, 23 September 2020 (UTC)Reply

Hello there again. There's been a lot of talk about WD - WV integration tools lately, as a matter of fact. I lack the code skills to be of much help here; @Wrh2: and @AlasdairW:, would you please give a hand? Ibaman (talk) 18:26, 23 September 2020 (UTC)Reply
When I have used the listings editor to get data on a new listing from WD, I type (or copy & paste) the venue name and enter the WD value before trying to Sync. I mainly use the WD sync to get the lat/long and WP article details, with it sometimes giving URL too. However I am usually only adding a few listings, so I am not sure how I can help here. For a campsite listing it is useful to add some information that may not be in WD, like price, number of pitches and facilities. AlasdairW (talk) 20:01, 23 September 2020 (UTC)Reply
I think the data about pitches and facilities (excluding the price) should be in WD. Anyway the campsites I would like to add are the ones found with this search query from WD.--So9q (talk) 20:36, 23 September 2020 (UTC)Reply
I whipped together the quick python script below that converts from this query to Wikivoyage listings. The result can be seen on Härnösand:
#!/usr/bin/env python3
# License: GPLv3
# Author: So9q

import csv
from datetime import datetime

# Example output
# * {{sleep
# | name=Lomtjärnberget
# | lat=62.588214 | long=17.851131
# | wikidata=Q96578823
# | lastedit=2020-09-23
# }}

with open('campsites.csv') as csv_file:
    csv_reader = csv.reader(csv_file, delimiter=',')
    line_count = 0
    for row in csv_reader:
        if line_count == 0:
            print(f'Column names are {", ".join(row)}')
            line_count += 1
        else:
            print("* {{sleep")
            print(f"| name={row[1]}")
            print(f"| lat={row[3]} | lon={row[4]}")
            print(f"| wikidata={row[0].replace('http://www.wikidata.org/entity/','')}")
            print(f"| lastedit={datetime.now().strftime('%Y-%m-%d')}")
            print("}}")
            line_count += 1
    print(f'Processed {line_count} lines.')

Nice. One thing I wonder. In Härnösand most of these "campsites" are lean-to shelters, and at least a few had an image suggesting the terrain was not suitable for pitching a tent. I suppose most readers would expect a campsite to be something else. Is there some way to tell the lean-tos apart from regular campsites (so that a note on what they are can be added)? –LPfi (talk) 08:21, 24 September 2020 (UTC)Reply

Good point! Yes and no. I created these two items (see section subclass) to model it, but it really depends on how big a tent you want to put up and how you define "suitable". I think its better to provide lots of photos from different angles and of the surroundings, for the user to make up his own mind. Do you have a suggestion for how to model it in an unsubjective way?--So9q (talk) 21:28, 24 September 2020 (UTC)Reply
I think these listings need a few words of subjective description. If it is fair a subjective description is welcome here. A "campsite" could be a site with spaces for caravans and campervans and an onsite bar, or just an area of grass. So "bare ground for pitching a tent and open cooking shelter, no electricity or mains water" might describe some of what is in the photos. The listings also need some details of how to reserve (website, phone number etc), or say if you just turn up. AlasdairW (talk) 21:59, 24 September 2020 (UTC)Reply

Missing WD items on Gävle article

[edit]
Swept in from the pub

Hi, the Gävle article has a lot of listings but not a single one points to WD. Would it be acceptable to copy this data (lat, lon, name, website) to WD via a script? WDYT?--So9q (talk) 21:41, 24 September 2020 (UTC)Reply

Why not, as long as the guys at WD won't frown upon it... -- andree.sk(talk) 07:03, 25 September 2020 (UTC)Reply
The museums are probably all in scope for Wikidata, while restaurants and cafés usually are not, if I've understood this right. The scope is however still in change, becoming more broad. –LPfi (talk) 09:32, 25 September 2020 (UTC)Reply

Long lists

[edit]

Thanks for adding listings, but adding "43 public baths from WD" to a single article is a bit over-the-top. Stockholm has districts, so these should be distributed among them, and in any case we don't want long lists. If there are more than 9 listings of a single type for an article, you should probably check whether just listing them them makes sense, or whether the list rather should be put somewhere and linked from the talk page, so that the listings can be added by hand. –LPfi (talk) 08:41, 29 May 2021 (UTC)Reply

@LPfi: oh,'s ok. I was not aware of that policy, but it makes sense. The data in WD is not subdivided in districts so that's not a trivial task.--So9q (talk) 22:17, 29 May 2021 (UTC)Reply