About [[MediaWiki:Apihelp-wbsetsitelink-example-3/sv]]
!!IGNORE THIS THE ONE ABOVE IS THE SEEMS MOST CORRECT!!
Edited the messages: Though I amended it slightly:
example-1 : Add a sitelink on the English page "Hydrogen" to the item with ID "Q42", if the site link does not exist
example-2 : Add a sitelink on the English page "Hydrogen" to the item with ID "Q42", if the site link does not exist, with an edit summary of "World domination will be mine soon!"
example-3 : Add a sitelink on the German page "Wasserstoff" to the item with the sitelink to the English page "Hydrogen", if the site link does not exist
Do we really talk about setting the sitelink on the Wikipedia page? The actual edit is to the Wikidata page which is linked to the Wikipedia page, or am I getting confused?
Nope, you're right.The sitelink is added to the Wikidata page. But the edits refer to an 'article' or 'entity'. So I don't think it changes the context.
Hmmm... now that I think about it. You can interpret the sentence differently. Here's what went on in my mind...
- #1 and #2 would be more correct if you remove the '(article)'. But I put it there so that newbies aren't confused. (Hence, the brackets).
- #3 seems correct in it's current form. You specify the destination page (link-site/title) and the parent page (site/title), and any other data, and the program works out the rest.
I just realised I misread your "!!IGNORE THIS" (and ignored the one above instead)
- Yes removing "(article)" from #1 and #2 should make these fine.
- Yes #3 should also be correct.
Possibly we should be talking about German Wikipedia (instead of just German)... but I think that might be overkill.
Guess everyone makes mistakes.
- I removed the '(articles)', and
- added articles (a/an/the, not the word 'articles') where necessary (everywhere).