Talk:Key:wikipedia

From OpenStreetMap Wiki
Jump to: navigation, search

Contents

Old discussion from proposal

Copied from Proposed features/External links.

Use this to indicate the english wikipedia's page name for a city (or town, village, etc.)

Comment: But maybe sometimes it is not suitable to concern about only English Wikipedia. There should be a way to select any language which is most related. --Messi 19:09, 19 July 2008 (UTC)

See also: Collaboration with Wikipedia#Link to Wikipedia articles from within the OSM map data

Note wikipedia articles names will often differ from the names within the name tag.

Special-case: wikipedia=yes to indicate that the wikipedia article has the same name as the city.

For other features, use the tag to indicate that something has its own wikipedia article


Comment: I wish it should it be:

I agree to this. There's no reason why English Wikipedia should be preferred. -- Eckhart 13:14, 19 November 2006 (UTC)
I think English Wikipedia should be default, but when the page is in another language the language should be mentioned. A good idea is to write the URL in value part.
wikipedia=http://en.wikipedia.org/wiki/Moscow
or
wikipedia:de=http://de.wikipedia.org/wiki/Moskau
--Messi 19:09, 19 July 2008 (UTC)
There is no reason to make the English Wikipedia the default one. Depending on the country of the POI, the "default" language should be chosen (see also the name=* feature). Making one language the default over the locally used language carries the thought of one language being superior to others. That's surely not what we want here in OSM. It's already a problem on projects like Wikimedia Commons. Additionally, I think that devices or computer programms using the data are able to offer the user only those languages he's interested in and/or currently using. That even applies to all the websites, as the preferred language is transferred in the HTTP request. -- MapFlea 07:30, 12 November 2008 (UTC)
This (wikipedia:xx=yyyy) seems to me the best sollution. I also agree, that no language should be the default one. Leave it to the User to decide! --Peter.doerrie 13:29, 30 January 2009 (UTC)

I think using the URL in the wikipedia tag is the best way to proceed, as this gives an explicit link to the article (e.g. see the London node in the data browser, now that URLs are turned into links) and it includes the language in the URL already so there isn't a need to explicitly specify which version of Wikipedia is being referred to. I've added links in this fashion to most of the places in London (like in this changeset) and the Isle of Man. I believe pointing to the URL gets us a step closer to including OpenStreetMap in the Linked Data cloud as well. --Dankarran 23:55, 30 May 2009 (UTC)

You need to explicitly specify the language since different language Wikipedia articles will have different names. It would be nice to include, for each language, both an article name and URL, since otherwise renders will need to include code to transform an article name into a URL, or vice versa, and if the algorithm for this ever changes on the Wikipedia side it would break all existing applications if the transform is implicitly assumed to be constant by the openstreetmap data. ChrisB 14:14, 9 June 2009 (UTC)


Would it be possible to get access to wikipedia's interlanguage links, rather than duplicate their translation effort on OSM?

Totaly agree, but there should be a way to select the main wiki language. Maybe sometimes it is preferred to link to another language of wikipedia except English. --Messi 19:09, 19 July 2008 (UTC)
There are currently an effort in order to fix the interwiki problem at Wikimedia projects. The proposed solution there is to link each project to a neutral page, avoiding multiple cross-references. This would be and ideal solution to apply to OSM data, but is not working now. --jynus (discusión) 10:16, 16 August 2008 (UTC)

Another proposed syntax (the better one)

I'd like to ask everybody to reconsider the choice of wikipedia:xx=Title or wikipedia=URL syntax and instead use wikipedia=xx:Title. Beside being in wide use, this form addresses all of the problems earlier mentioned: the redundancy of title translations and the redundancy in specifying more parts of the URL than are needed, both of which create problems for parsers. A link to any translation of a page is actually a link to the whole group of pages in different languages, it's just a perception that it links to a page in a particular language (in maths those groups are called abstraction classes, if we consider a wikipedia interlink as an equivalence relation). Also there is a pretty good reason to make the English wikipedia the default: it has the highest number of pages, an order of magnitude higher than most other wikipedias, so I propose the form wikipedia=Title be equivalent with wikipedia=en:Title. Note the stuffing "http://<whatever>.wikipedia.org/wiki/" in front of the xx:Title form redirects to http://xx.wikipedia.org/wiki/Title page (it's one of the nice wikipedia mechanisms) so you get directly to a page about the object, and it's one click away from the page in your desired language, if one exists. This redirection can be trivially done automatically, there are parsers all around for wikipedia pages. (Balrog 03:07, 20 September 2009 (UTC))

As an example http://en.wikipedia.org/wiki/es:OSM redirects to the Spanish page about OSM. From there you get links to all other languages that have a page about OSM. (Balrog 03:07, 20 September 2009 (UTC))

Hi. Thanks for your suggestions. I'm not convinced by the benefits of using wikipedia=xx:Title over wikipedia:xx=Title though. The main advantage seems to be that it's slightly easier for parsers to use (seeing as you can take advantage of the redirect you outlined), but I don't see this as a huge advantage, as it's pretty trivial to translate wikipedia:xx=Title into http://xx.wikipedia.org/wiki/Title. If you can demonstrate that this scheme is already more common in OSM than wikipedia:xx=Title, then it'd be worth mentioning on the page. So far, I've never seen it in use.
I think the bigger question would be: Should an object have more than one wikipedia tag entry? I.e. should it have e.g. both wikipedia:en=Blah1 and wikipedia:de=Blah2? If "Blah1" and "Blah2" refer to the "same" article and thus can be obtained from inter-wiki links, then the wikipedia=DE:Blah2 makes sense. If however there is a reason to link to different articles in different languages that would not be linked by inter-wiki links as they aren't equivalent articles, then the wikipedia:en tags would make be needed. This is similar to e.g. the maxspeed debates, where the maxspeed:mph key makes little sense, as the speedlimit expressed in miles per hour and expressed in km/h are always the same. On the other hand, the wikipedia:de syntax seems to have a reasonable number of occurrences already (couple of thousands), so perhaps it is best to leave it like that. Amm 23:03, 07 February 2010 (UTC)
I agree that it's not necessary to link to multiple languages though (as mentioned on the page). There may sometimes be reasons not to link to the English version though - perhaps a page only exists in a different language, or simply that the mapper/tagger is more familiar with that language. Frankie Roberto 22:31, 21 September 2009 (UTC)


Have the developer of the database in mind. For Wikipedia=lang:xyz you need only one column in the database and it work if you simple link to en.wikipedia.org. I create in the moment a tool that link from OSM to Wikipedia [1] and also http://olm.openstreetmap.de doing this so we need a solution. So I will change this. --Kolossos 19:40, 29 January 2010 (UTC)
Sorry, I want to revert what I say. There is too much data basis still existing than to change it. And I see a chance to fullfill all the columns with the help of wikipedia interwikilinks.
The next thing is that we can't be sure that a pure "wikipedia=article" is not a mistake because it doesn't link correct to english wikipedia, so I proposal to prohibit this and give it to a mistake to keep right. So only "Wikipeda:lang=article" and "Wikipedia:lang=URL" would be allowed. What do think about this idea. --Kolossos 22:24, 4 February 2010 (UTC)
I don't have current statistics, but in November 2009 there were more wikipedia=<lang>:Title tags than wikipedia:<lang>=Title (79563 versus 42005), so I would rather prohibit the wikipedia:lang=* tag instead of wikipedia=*, but perhaps neither. --Balrog 23:51, 29 March 2010 (UTC)

Visualisation

http://openstreetmap.pl/wp (dead link?) displays a map with the different possible forms of external links, especially wikipedia links. This site is an example of how these tags can be used, and how languages should be treated. It's only tested with Firefox. The supported forms are:

It doesn't matter whether "_" (underscore) or " " (space) is used in the page titles.

The website tries to ignore the language of the link and always link directly to the wikipedia language defined by the browser, so for example an object tagged with wikipedia=en:Spain will link to http://es.wikipedia.org/wiki/España or http://de.wikipedia.org/wiki/Spanien depending just on user language. It uses wikipedia's own inter-wiki links for this.

Why we should not deprecate wikipedia=*

I disagree with this edit. First, the reason given for it isn't conclusive: The discussion on talk-de was about whether we should abolish wikipedia:lang=*. There were objections against doing that, so we should probably keep those tags for now. Not deprecating wikipedia:lang=*, however, doesn't mean that we have to deprecate wikipedia=lang:*!

What people on talk-de did agree on was that Wikipedia's interlanguage links can be used to provide localized Wikipedia articles where they exist. Unless we want to act against that consensus, we actually cannot abolish wikipedia=lang:*: If there is more than one wikipedia:lang=* tag (and that possibility is the one reason to keep them, after all), it would be impossible to select the article to retrieve the interlanguage links from!

Thus, there needs to be one "primary" wikipedia link, and the wikipedia=* key is the appropriate tool for that - precisely because of the fact that there can be only one of these. --Tordanik 22:03, 24 June 2010 (UTC)

Translation

Wer kann die Artikelseite auf Deutsch übersetzen? Danke, --Markus 07:25, 24 September 2010 (BST)

Mach ich. --Tordanik 12:34, 24 September 2010 (BST)

Primary language of choice - wp links in map data

from Ceyockey — During the uploading of Department and Municipality data for Colombia (see 2010 Colombia floods/ImportDept, for instance), I have been adding wikipedia=* with values of es:xxxxx. The presumption here is that tagging with language-specific links to wikipedia which conform to the main / official language of the country / locality where a map feature exists would be desirable versus tagging everything to either English or a polyglot of all available wp-languages. It would be useful if I could get some affirmation that this is generally in-line with consensus ... or that it flies in the face of consensus; either would be useful. Thanks. (15:27, 28 January 2011 (UTC))

Sounds fine, also if I prefer wikipedia:es=XXXXX ,but this makes not big different. --Kolossos 20:35, 6 February 2011 (UTC)
One thing which goes hand-in-hand with the use of single-language links into Wikipedia is that this should not be a dead-end for people following the link. I've found that somewhat more than 80% of all of the es:xxx articles for the Colombian municipalities are represented in the English Wikipedia and have inter-language links implemented (es→en and es←en). In those cases where the link is missing, best practice would be to implement the inter-language links in Wikipedia when putting the link into the OSM data. Should the 2nd language always be English? No; in my opinion, the 2nd language should be the editor's primary language or English if the editor's primary language is the language they are working in (for instance a native spanish speaker would verify the existence of the english link in a spanish article; a native german speaker would verify the existence of a german link in the spanish article). --Ceyockey 15:23, 13 March 2011 (UTC)

Scope for valid Wikipedia links

Should the Wikipedia tag only be used to link to an article which is about the actual feature on the ground (ie from Buckingham Palace in OSM to the article in Wikipedia about the palace)? If so, then I would suggest that these more general wikipedia links should be discouraged:

Personally I think Wikipedia links should probably only be used to link to an article which is very specific about to the relevant physical feature and probably only where it would be appropriate to add a geo-code to the relevant Wikipedia article linking back to the OSM feature? Any thoughts? Possibly we could recommend a new 'operator:wikipedia' tag for the above if people insist on including them.

-- PeterIto 16:03, 12 March 2012 (UTC)

Wikipedia links are for the "article about the feature". Not for articles merely related to the feature - such as articles about the feature's operator, the feature's architect, the category of things the feature belongs to (I have seen links to Wikipedia articles about a tree species...) or anything like that.
I don't really have a suggestion for tagging those "if you are interested in this place, our mappers think you might also want to read these more-or-less related Wikipedia articles" links, though. Maybe it's best to just avoid them entirely due to their subjectivity, but wikipedia:operator, wikipedia:architect, wikipedia:species, ... could be a compromise. --Tordanik 13:33, 13 March 2012 (UTC)
  • Thanks. I totally agree. The only question I have now is, should it be 'wikipedia:operation' or 'operator:wikipedia' (should someone insist in including it). Personally I think it should be the later. I will now clarify in the article that links should only be to an 'article about the feature'. PeterIto 13:02, 14 March 2012 (UTC)
I don't insist on either wikipedia:operator vs. operator:wikipedia, using wikipedia:operator as an example was simply based on existing tags such as source:name/addr/operator etc. without any particular reason for or against it. --Tordanik 13:53, 14 March 2012 (UTC)
Fine by me. I suspect that the namespace stacking is a bit random across OSM as yet, but lets stick with your proposed ordering. I am adjusted the article. PeterIto 16:27, 14 March 2012 (UTC)
  • Another thought. Would it be reasonable to suggest that where there is a main wikipedia link to a directly relevant article that secondary links should be discouraged? For example, if there is already a link from St Paul's to wikipedia then should one discourage the inclusion of a secondadry link to the architect? I suggest that we should discourage it, especially as the architect is linked from the infobox in wikipedia article. PeterIto 13:14, 14 March 2012 (UTC)
Personal tools
Namespaces
Variants
Actions
site
Toolbox