About [[MediaWiki:Apihelp-wbsetsitelink-example-3/sv]]

Jump to navigation Jump to search

This is somewhat convoluted.

Assuming I understod it correclty the follwoing would be clearer:

  • Add a sitelink to the German page "Wasserstoff" on the item with the sitelink to the English page "Hydrogen", if the site link does not exist


Similarly MediaWiki:Apihelp-wbsetsitelink-example-1/en could then be clarified to:

  • Add a sitelink to the English page "Hydrogen" for the item with ID "Q42", if the site link does not exist
Lokal Profil (talk)21:49, 18 December 2014

And for MediaWiki:Apihelp-wbsetsitelink-example-2/en:

  • Add a sitelink to the English page "Hydrogen" for the item with ID "Q42", if the site link does not exist, with an edit summary of "World domination will be mine soon!"
Lokal Profil (talk)21:50, 18 December 2014
 

Those messages are used here. Judging from the results obtained by clicking the example section
MediaWiki:Apihelp-wbsetsitelink-example-3/en would be better written like this:
Add a sitelink to German article "Wasserstoff" on English article "Hydrogen", if sitelink does not exist

1 and 2 then become:
Add a sitelink to English article "Hydrogen" on entity (article) with id "Q42", if sitelink does not exist
Add a sitelink to English article "Hydrogen" on entity (article) with id "Q42", if sitelink does not exist. Also add summary "World domination will be mine soon!"

JadeMaveric (talk)04:51, 2 January 2016

!!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

JadeMaveric (talk)09:08, 1 January 2016

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?

Lokal Profil (talk)10:41, 3 January 2016

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. #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).
  2. #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.
JadeMaveric (talk)14:10, 4 January 2016

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: Users.


You can view and copy the source of this page.

Return to Thread:Support/About MediaWiki:Apihelp-wbsetsitelink-example-3/sv/reply (6).

Guess everyone makes mistakes.

  • I removed the '(articles)', and
  • added articles (a/an/the, not the word 'articles') where necessary (everywhere).
JadeMaveric (talk)16:28, 8 January 2016