Help talk:Sitelinks

Latest comment: 3 days ago by Marsupium in topic Commons question

Badges

edit

The lead section says sitelinks can have badges, but badges are future features as described in the dedicated section. Should it be corrected? --fryed-peach (talk) 07:51, 15 April 2013 (UTC)Reply

That part is taken from Wikidata:Glossary#Sitelinks, and still states that sitelinks can have badges. And Badges are there marked as future feature as well. Anyway: no objection against correction. HenkvD (talk) 17:57, 15 April 2013 (UTC)Reply
  Done For now I commented it out. --fryed-peach (talk) 01:54, 16 April 2013 (UTC)Reply

All namespaces except User:

edit

I don't understand why e.g. User_talk: can get a Wikidata-entry, but User: isn't allowed to. Where's the reason? Is there already the intention to show the other-language-links according to the status of the single-user-login nor what? Thx, for answering.
--Kai Burghardt (talk) 20:04, 4 May 2013 (UTC)Reply

"User_talk: can get a Wikidata-entry" - That's very strange because in general no talk pages have Wikidata entries. --Michgrig (talk) 10:46, 13 May 2013 (UTC)Reply

Change "code" to "site"

edit

As far as I can see, the screenshot is out of date, as I think the "code" (eg 'en') has been replaced by 'enwiki', no? --ColinFine (talk) 17:03, 19 July 2013 (UTC)Reply

You are right, but other things have changed as well, like it is called "Wikipedia pages linked to this item" now, [edit|remove] is [edit], and in a few days "Wikivoyage pages linked to this item" will be added. As Wikidata is in constant development it is bound to be a litle out of date. Code for Wikivoyage will be enwikivoyage etc. Feel free to update. HenkvD (talk) 17:50, 19 July 2013 (UTC)Reply

Updates as part of documentation overhaul

edit

Hi all, I recently made substantial edits to Help:Sitelinks as part of a larger sitewide documentation overhaul (more info on this here).

To compare my edits with the previous version please see the diffs here

Major changes include the following:

  • removed mention of badges (as they are a future feature that has not yet been implemented)
  • removed old screenshot - I have replaced with some newer ones and added an image that explains how sitelinks vs interlanguage links work
  • changed all mention of 'interwiki links' to 'sitelinks' for consistency
  • updated content so it now refers to Wikimedia sites more generally vs. just Wikipedia which was the case before
  • provided info on interwiki conflicts - i.e. what they are
  • added an example of naming sitelinks for main namespace and non-main namespace links
  • moved content around to differentiate between instructions that are for Wikidata side of things and those that are for WMF sites side of things (i.e. suppression of Wikidata links, manually using anchors for interlanguage links, etc.)
  • explicitly mentioned that it's only possible to add a sitelink to one item - otherwise there will be an error message

Please let me know if you have any concerns about these changes or suggestions on further improving the documentation. Here are issues I would also like specific feedback on:

  • what needs to be done to get this page from a proposed to an accepted guideline like Help:Description?
  • should badges be in there?
  • are there too many/too few screenshots? Are the ones in there helpful?

Thanks. -Thepwnco (talk) 19:08, 20 June 2014 (UTC)Reply

Here are my observations again:
  • In my opinion, from the first paragraph, everything (including the graphics) except the first sentence may be erased. It does not really provide useful information about the nature of site links. The history of site links can be part of the Wikidata project's Wikipedia article. Furthermore, site links are not used for identification and it is quite valid to create Wikidata items without providing site links. Somebody, correct me if I am wrong, but Wikidata's nature is to be a bit more granular than Wikipedia. Having Wikipedia articles and Wikidata items in a 1:1 relationship is kind of pointless.
  • Not many people seem to take care of the Help pages. As much as possible, I would refrain from listing content whose change is quite likely, like listing the currently supported Wikimedia site. Probably, also the French site link example at the bottom of the page is problematic and, maybe, the solution there should be explained more in detail without an actual example.
  • There is some information which is too technical or, at least, phrased in a too technical way: "Wikidata sitelinks do not support anchors (links to a specific section of a page) which are represented by the "#" character on Wikimedia sites." Personally, I would rather put the technical term (anchors) in parentheses and the second part of the sentence is simply confusing - especially for users less technically versatile.
  • I had to read the Beatles example three times before getting it. "Furthermore, it's not even possible [...]" sounds more like criticism. If it is not possible to link to sections and everybody would really like to - why is there no reason given why someone cannot link to sections?
  • In my opinion, the screenshot description is not correct. To be precise, only the form for adding another site link is highlighted. The existing site links are in default state.
  • To be even more precise, "Sitelinks can be added for Wikimedia sites and in more 200 languages" is a bit misleading and sounds a bit odd. Each of the Wikimedia sites features one language or pseudo-language (e.g. simple English) per definition.
  • Just wondering what does "Only add a sitelink for a language and a Wikimedia site if a page on that language version of the Wikimedia site already exists." mean? Is it possible to create empty site links?
  • The information at Interlanguage links with anchors should also be mentioned somehow at the stage where sitelinks to sections are negated. It is possible - just not via Wikidata...
  • There probably should be an additional screenshot of how the sitelinks look like on another Wikimedia site - basically the result of the sitelink listing in Wikidata. The screenshot should be from the page that is connected to the item the current screenshot is of.
  • Maybe there should be some information about bages and how one has to assign them at the moment (most likely a link to the Wikipedia documentation is fair enough) with just mentioning that this will change as well at some point.
Random knowledge donator (talk) 19:40, 25 June 2014 (UTC)Reply

RfC about proper sitelinkage when an item is the subject of multiple interwiki articles

edit

I propose making the outcome of this RfC part of the Help:Sitelinks page.--Anders Feder (talk) 15:16, 21 March 2015 (UTC)Reply

edit

I saw that WikiProject U.S. Roads (Q1890587) has an "Other sites" sitelink to Wikidata:WikiProject Roads/United States, but when I tried to add a similar link to Wikidata:WikiProject Open Access on Wikidata:WikiProject Open Access (Q19794158), I did not get that to save. Any pointers? --Daniel Mietchen (talk) 22:00, 10 April 2015 (UTC)Reply

edit

There are articles in the wikisource main page – not the wiki in a specific language. How to use them? https://wikisource.org/wiki/Author:Tom%C3%A1s_%C3%93_Criomhthain Ogmios (Tratsch) 09:11, 9 May 2015 (UTC)Reply

How to get Wikidata sitelinks for s:mul:Author:Tomás Ó Criomhthain or anything else at multilingual Wikisource is an excellent question that seems to now be a known reported issue (see tracking sidebar; apparently this was created after your question).

According to Multilingual Wikisource (Q18198097) the Wikimedia language code (P424) is "mul" and the Wikimedia database name (P1800) is "sourceswiki". Typically Wikidata editors can use one to get to the other, e.g., in Wikidata sitelinks section of an item, an editor can enter "en" into the wiki specifier box under "Wikipedia" subsection and an editor can enter the page name there resulting in a Wikidata site link to "enwiki". I know an editor can also enter other site codes under the "Other sites" subsection but it does not take "sourceswiki" and "mul" under "Wikisource" subsection also does not seem to work.

Uzume (talk) 06:47, 9 January 2020 (UTC)Reply

Querying badges

edit

I would like to obtain the list of enwiki featured articles (before mining it, but that's not the question).

I imagine I could get it by writing something like link[enwiki]{claim[???:Q17437796]} (Q17437796 is featured article badge (Q17437796)) but at that point I'm blocked. Is this the correct way indeed ? How to do it ?

Thank you !

Tinm (talk) 14:54, 24 October 2015 (UTC)Reply

edit

Is there any guidance on whether it is a good idea to add sitelinks to Wikipedia articles in the draft namespace? My opinion is that it would be very useful to be able to do so, as the data would help to develop the article while in its infancy. I've noticed that although it is possible to do this, the interwiki links to not display on the draft article. This makes it harder to use other language versions when writing the article. MSGJ (talk) 10:19, 4 January 2016 (UTC)Reply

edit

I consider myself to be reasonably intelligent, but I cannot for the life of me figure out how you break a link between, say, the English wiki page and the French page.

That is: I'm on the English page for something, and I spot that the language link for French links to the wrong article over at the French wikipedia. Furthermore, it's not that the link is merely wrong, it should not go there at all.

Somebody thought the english concept E and the french concept F is the same thing, or similar enough. I disagree and want to boldly undo that link.

So I want to delete the link (break the EN <-> FR chain), not merely edit the link to point to some other French article. I do not want to delete the English article. I do not want to delete the French article. I do not want to delete the wikidata item.

The English page is fine. Its link to the wikidata item is fine. (That is, the wikidata item represents the concept E just fine. It just isn't appropriate for the concept F)

I want to stop the English page from showing the link to any french page in the Languages column to the left. I guess that means I want to uncouple the French page from the wikidata item.

HOW DO I DO THAT?

This was earlier exceedingly simple. Now it seems exceedingly impossible. The help pages doesn't even seem to mention it, much less discuss it.

Any insight much appreciated, CapnZapp (talk) 10:50, 9 October 2016 (UTC)Reply

Crossposted here: https://en.wikipedia.org/wiki/Wikipedia_talk:Wikidata#removing_a_language_sitelink
edit

"Sitelinks thereby improve upon this system by having everything centralized in Wikidata." Good intention. Unfortunately it does add problems to WP authors.

Example: In german WP de:Honda Fireblade describes a series of motorbikes that were called en:Honda CBR900RR in the english world. So it would make sense to have interlanguage links pointing to each other article. Now when I click "edit link" below the existing interlanguage links of the latter page, I fail to add "Honda Fireblade" for a "de" entry because of this error:

  • The link dewiki: Honda Fireblade is already used by item Q1626597.

Q1626597 is a wikidata entry for the english en:Honda Fireblade, which is just a redirect to the above en-article.
The WP side of this IMHO makes perfect sense, but the wikidata refusal to accept the interlanguage link - not. It seems wikidata tries to enforce a concept that is not thought through. It's not the first time that I stumbled over this problem, and I guess I'm not the only one. Sounds like a misconception to me (but I'm willing to learn).
--Bernd.Brincken (talk) 23:11, 25 March 2017 (UTC)Reply

@Bernd.Brincken:There's currently an RFC about allowing links to redirects, that would allow you to have interwiki links in a case like this: https://www.wikidata.org/wiki/Wikidata:Requests_for_comment/Allow_the_creation_of_links_to_redirects_in_Wikidata ChristianKl (talk) 16:48, 8 June 2017 (UTC)Reply
Great, let's pray for the forces of light to prevail. --Bernd.Brincken (talk) 10:08, 9 June 2017 (UTC)Reply

Why one-per-one only?

edit

For several decades, I'm again and again asking that who ruled this unfair limit, and why it can't break. --Liuxinyu970226 (talk) 13:00, 2 June 2018 (UTC)Reply

I am against having multiple site links per wiki per item. On the other hand, I am not against having a translation system for these sitelinks and it might be good to have some method to automatically prefix item sitelink links to multilingual wikis using something like Special:MyLanguage/. For example, although one can interwiki link to mw:Extension:Wikibase Client and mw:Extension:Wikibase Client/ja, I do not think Extension:Wikibase Client (Q21679293) should have sitelink links for both of these. However, I do think it would be useful for the sitelink to be resolved as if it linked to mw:Special:MyLanguage/Extension:Wikibase Client allowing users with Japanese set as their language on the Mediawiki wiki to automatically arrive at mw:Extension:Wikibase Client/ja. —Uzume (talk) 20:54, 9 January 2020 (UTC)Reply

Wiktionary

edit

Does Wikidata support sitelinks to Wiktionary?

If not, why not?

If so, shouldn't this help page mention Wiktionary?

If links can be created, what's the secret code to use for Wiktionary?

Why does the section named "Wiktionary" need a secret code anyway?

Inquiring minds want to know. --RexxS (talk) 14:18, 27 March 2019 (UTC)Reply

You can add sitelinks for Wiktionary on an Item here just like for Wikipedia. They have a section in the sitelink area if an Item. But this is mainly for help and project pages. The main namespace on Wiktionary is handled differently. The sitelinks there are generated automatically. This is because the Wiktionaries link among each other based on having the same page title (as opposed to being about the same concept like on Wikipedia). For example "tree" on English Wiktionary links to "tree" on French Wiktionary. Hope that helps. --Lydia Pintscher (WMDE) (talk) 20:08, 30 March 2019 (UTC)Reply
edit

Hello, when one renames a Wikipedia page, the corresponding sitelink on the corresponding Wikidata item's page is updated. By example, on frWiki, I have moved the article Kumano Kodō to Kumano kodō (see frWiki's move log). On frWiki, the log's date for this action is 01:45, 15 February 2019. The date of the Wikidata's update of the Kumano Kodō item (Q17050475) is 23:45, 14 February 2019‎. The Wikidata's revision is credited to my frWiki account : ContributorQ. But I did not make the Wikidata's update. How does the automatic WD's update work ? --ContributorQ (talk) 13:32, 22 April 2019 (UTC)Reply

The update happens automatically after a page is moved/deleted. And it was designed this way. By the way, check your timezone preferences. Matěj Suchánek (talk) 15:57, 22 April 2019 (UTC)Reply
Thanks for your answer.
This is the statement I've made above. My question is : how does it work ? Is it a Mediawiki's option ? Which Mediawiki module ?
Bots like Hazard-Bot and BetaBot do the same job as well ? Why ? --ContributorQ (talk) 17:05, 22 April 2019 (UTC)Reply
It's a feature of Wikibase. Whenever you move a page, this update happens in the background. Because when you rename a page, you want to keep the interwiki and this does it for you and saves time. The bots you mention seem not to do that anymore (thanks to this feature). Matěj Suchánek (talk) 17:24, 22 April 2019 (UTC)Reply
Thank you very much to have taken the time to bring me a clear and precise answer. All the best. --ContributorQ (talk) 21:29, 22 April 2019 (UTC)Reply
edit

Hello everyone! I would like to automatically obtain an interlanguage link given an item ID and a language (e.g. something like {{#sitelinkfrom:Q37517|en}} or {{#sitelinkfrom:Q37517|w|en}}, which should return Class (biology)). Does a magic word like this exist? If it doesn't, is it possible to implement this with Lua or do you know if there already exist some module that performs this task? --Horcrux (talk) 19:19, 28 March 2020 (UTC)Reply

This is possible with Lua. w:cs:Modul:Wikidata contains a function for this (getSitelink). --Matěj Suchánek (talk) 10:09, 29 March 2020 (UTC)Reply
Thank you very much! --Horcrux (talk) 11:33, 29 March 2020 (UTC)Reply

Link to a section of an article

edit

Hello, I was trying to anchor the part "pt:Recursividade (ciência da computação)#Funções recursivas em cauda to the article en:Tail call, however I could not achieve it. I could not find out how to anchor as you propose here (see below) as there is no explanation at all how to do it and I could not found anything related with language in the source codes. Maybe some help?

edit

Screenshot of "Languages" (Wikidata sitelinks) highlighted on a Wikimedia page

In the previous system of interlanguage links, an anchor link was used when a Wikimedia site did not have an exact match in another language for a corresponding page, but did have a page that dealt in part with the same subject. As discussed above, Wikidata does not support anchors as sitelinks, so interlanguage links with anchors must be retained locally on the Wikimedia sites (not Wikidata) if desired.

An example of this practice is the English Wikipedia page on "survival function". An equivalent page on "survival function" also exists on the Spanish Wikipedia and Sundanese Wikipedia, but there is no equivalent page for it on the French Wikipedia.

Instead a link pointing to a section of a page (also called an anchor) in the French Wikipedia Analyse de survie#Fonction de survie is placed locally in the wikitext of the page on the English Wikipedia.

While the "Languages" section on the left side menu of the survival function page on English Wikipedia displays links for all languages, only the Spanish and Sudanese ones are provided by Wikidata (via the item page for survival function (Q2915096)). The French one is generated locally from the anchor link.

 – The preceding unsigned comment was added by Flanby (talk • contribs) at 15:19‎, 9. December 2020 (UTC).

w:Help:Interlanguage_links#Local links, point 4 hints how to do it. --Matěj Suchánek (talk) 13:56, 10 December 2020 (UTC)Reply

Commons question

edit

I see no discussion here of sitelinking to a Commons category vs. a Commons gallery (in Commons' mainspace). Is that somewhere else? Can we at least link it from here? - Jmabel (talk) 03:08, 9 February 2021 (UTC)Reply

Three years later I've just come here with the same question. I can't find any documentation of the current practice. (It might be summed up something like this: If a Wikimedia category (Q4167836) item exists for a topic, the sitelink to the Commons category should be on that item. If a Commons gallery page exists for a topic, the item for the topic itself has its Commons sitelink to that gallery page. If neither a Wikimedia category (Q4167836) item nor a Commons gallery page exists for a topic, the Commons category can be used as the Commons sitelink.) --Marsupium (talk) 21:32, 12 November 2024 (UTC)Reply

Page renames

edit

Help:Sitelinks#Page_renames tries to explain what happens. Please expand/correct as needed. I also asked for input at Wikidata:Project_chat#Page_renames_at_Wikipedia/Wikisource,_etc. --- Jura 11:09, 23 November 2021 (UTC)Reply

wmru

edit

How to add link to wmru:? 217.117.125.83 18:58, 5 May 2022 (UTC)Reply

It isn't a supported site, so it isn't possible to do it the native way. --Matěj Suchánek (talk) 12:40, 6 May 2022 (UTC)Reply
@Matěj Suchánek: OK. Then, why is WikiBase Client installed there? 217.117.125.83 17:03, 8 May 2022 (UTC)Reply
Wikibase Client allows to access data from a repository which is actually possible without sitelinks. Having Wikibase Client clearly does not mean the site will implicitly be connected to Wikidata. I'd ask the site operators what they intended to use Wikibase for. --Matěj Suchánek (talk) 08:52, 16 May 2022 (UTC)Reply
However, this doesn’t seem to be a supported use case—otherwise the Add links link could be suppressed. Looking at the code, it’s not currently possible (unless one sets $wgWBClientSettings['namespaces'] to contain only invalid namespaces, like $wgWBClientSettings['namespaces'] = [-1], but that’s clearly a hack and not a supported configuration). —Tacsipacsi (talk) 19:03, 16 May 2022 (UTC)Reply
II think it would make sense to be able to add chapter wikis when they are hosted on wikimedia.org. For example, there are some templates that originated on those wikis (like Template:Browse (Q121769785) from wmse:Mall:Bläddra), and it would be great to have interwikilinks for those. Ainali (talk) 11:45, 4 October 2024 (UTC)Reply
edit

With Wikidata:Sitelinks to redirects being a thing now, I suppose the section suggesting a workaround should probably be removed? El Grafo (talk) 08:12, 14 November 2022 (UTC)Reply

edit

Hello all. This here title in capitals because there is no clear indication of it anywhere I looked and I'll assuredly win a bet on the highest proportion of people who come here to find that out, get frustrated because they don't find it and rightfully annoyed at the world's running (that's the operative word) trend towards the increasing technocracy segregation, and angry at facing a prime example of what's taken down all civilizations everywhere. Why is it so hard for people to think "simple"?? What's in capitals here should 1) be the title of a section which should 2) be the very first paragraph of the page, 3) written with simple words, 4) possibly with some pictures and 5) definitely with no technical shenanigans.
While we're at it, there shouldn't have to be so much waste of time either just to reach this article page for no good result: why not a link on the shared wikidata page (like this one), leading to actual help about "How-to"? (And no telling "the 'Configure' link is that help": no it's not.

At the start of all this is the need to link Fr "Grattons" with En "Cracklings", via this wikimedia page here. I've lived in both countries and I can guarantee that it's exactly the same thing, made the same way and just as nice in either country. And the link is still not done. Except now it's become more important to end what engenders a feeling of ridiculous inadequacy and all the nasty stuff that comes with it. Must add that said wikimedia pages are particularly prone to engendering such feeling and that's no good at all. Pueblo89 (talk) 09:02, 14 June 2023 (UTC)Reply

Redirect unable to add

edit

I want add fr:Cordon médiatique to Q124365470, but that doesnt work. Please help me, thanks. How can I mark the fr-redirect? --Fan-vom-Wiki (talk) 13:36, 29 January 2024 (UTC)Reply

  Done Special:Diff/2064616267 Mbch331 (talk) 14:42, 29 January 2024 (UTC)Reply
ah, thank you!! Now, I see the option "sitelink to redirect" :) --Fan-vom-Wiki (talk) 14:50, 29 January 2024 (UTC)Reply
It's part of the badges. Mbch331 (talk) 15:04, 29 January 2024 (UTC)Reply
thanks --Fan-vom-Wiki (talk) 15:07, 29 January 2024 (UTC)Reply
edit

I think we should add to this page the tools that allow to automatically redirect users to the wikilink of a certain project in the user's language, for example

Danysan1 (talk) 12:46, 10 March 2024 (UTC)Reply

sure BrokenSegue (talk) 18:18, 10 March 2024 (UTC)Reply
Return to "Sitelinks" page.