Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/78667


Change subject: Fix an example in wbeditentity...
......................................................................

Fix an example in wbeditentity...

Change-Id: I2aec930a0a01f3800ba61381ca735bddfbb1b3d4
---
M repo/includes/api/EditEntity.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/67/78667/1

diff --git a/repo/includes/api/EditEntity.php b/repo/includes/api/EditEntity.php
index cc8c9c0..0a0644f 100644
--- a/repo/includes/api/EditEntity.php
+++ b/repo/includes/api/EditEntity.php
@@ -518,8 +518,8 @@
                        => 'Create a new item and set labels for de and en',
                        
'api.php?action=wbeditentity&new=property&data={"labels":{"en-gb":{"language":"en-gb","value":"Propertylabel"}},"descriptions":{"en-gb":{"language":"en-gb","value":"Propertydescription"}},"datatype":"string"}'
                        => 'Create a new property containing the json data, 
returns extended with the item structure',
-                       
'api.php?action=wbeditentity&id=q42&data={"sitelinks":{"nowiki":"København","svwiki":"Köpenhamn"}}'
-                       => 'Sets sitelinks for nowiki and svwiki, overwriting 
them if they already exist',
+                       
'api.php?action=wbeditentity&id=q42&data={"sitelinks":{"nowiki":{"site":"nowiki","title":"København"}}}'
+                       => 'Sets sitelinks for nowiki, overwriting them if they 
already exist',
                );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/78667
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2aec930a0a01f3800ba61381ca735bddfbb1b3d4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to