[MediaWiki-commits] [Gerrit] mediawiki...WikiObjectModel[master]: Add apihelp messages to pass unit tests
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/369979 ) Change subject: Add apihelp messages to pass unit tests .. Add apihelp messages to pass unit tests Bug: T155034 Change-Id: I7a3d1cec3c88fab158674f924f8f226308a19c72 --- M i18n/en.json M i18n/qqq.json M includes/apis/WOM_GetObjectModel.php M includes/apis/WOM_GetWikiResult.php M includes/apis/WOM_OutputObjectModel.php M includes/apis/WOM_Query.php M includes/apis/WOM_SetObjectModel.php M includes/apis/WOM_WikiObjectApi.php 8 files changed, 116 insertions(+), 150 deletions(-) Approvals: Umherirrender: Looks good to me, approved jenkins-bot: Verified diff --git a/i18n/en.json b/i18n/en.json index 7c24802..c3f3072 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -4,5 +4,60 @@ }, "objecteditor": "Object Editor", "wom_editor": "Object Model", - "wom-desc": "Easy Page Object Model for wiki user" + "wom-desc": "Easy Page Object Model for wiki user", + "apihelp-womset-summary": "Call to set object values to MW page, by Wiki Object Model.", + "apihelp-womset-param-title": "Title of the page to modify.", + "apihelp-womset-param-verb": "Action verb to set to change wiki object instances.", + "apihelp-womset-param-xpath": "DOM-like xpath to locate WOM object instances (http://www.w3schools.com/xpath/xpath_syntax.asp)\n* verb = update, xpath to elements to be updated\n* verb = attribute, xpath to elements, the attribute will be updated\n* verb = insert, the element will be inserted right before the element specified by xpath\n* verb = append, the element will be appended right to the element children elements specified by xpath\n* verb = remove, xpath to element to be removed\n* verb = removeall, xpath to elements to be removed.", + "apihelp-womset-param-text": "Value to set\nverb = attribute, attribute_name=attribute_value", + "apihelp-womset-param-summary": "Edit summary.", + "apihelp-womset-param-rid": "Revision id of specified page - by default latest updated revision (0) is used.", + "apihelp-womset-param-force_update": "Force to update even if the revision id does not match the latest edition\n* force_update = false, return \"revision not match\" exception if rid is not the latest one\n* force_update = true, update anyway.", + "apihelp-womset-param-token": "Edit token. You can get one of these through prop=info.", + "apihelp-womset-param-minor": "Minor edit.", + "apihelp-womset-param-notminor": "Non-minor edit.", + "apihelp-womset-param-bot": "Mark this edit as bot.", + "apihelp-womset-param-basetimestamp": "Timestamp of the base revision (gotten through prop=revisions&rvprop=timestamp). Used to detect edit conflicts; leave unset to ignore conflicts.", + "apihelp-womset-param-starttimestamp": "Timestamp when you obtained the edit token. Used to detect edit conflicts; leave unset to ignore conflicts.", + "apihelp-womset-param-nocreate": "Throw an error if the page doesn't exist.", + "apihelp-womset-param-watch": "Add the page to your watchlist.", + "apihelp-womset-param-unwatch": "Remove the page from your watchlist.", + "apihelp-womset-param-watchlist": "Unconditionally add or remove the page from your watchlist, use preferences or do not change watch.", + "apihelp-womset-param-captchaid": "CAPTCHA ID from previous request.", + "apihelp-womset-param-captchaword": "Answer to the CAPTCHA.", + "apihelp-womset-param-md5": "The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.", + "apihelp-womget-summary": "Call to get object values to Wiki Object Model.", + "apihelp-womget-param-title": "Title of the page to modify.", + "apihelp-womget-param-xpath": "DOM-like xpath to locate WOM object instances (http://www.w3schools.com/xpath/xpath_syntax.asp).", + "apihelp-womget-param-type": "Type to fetch useful wiki object data:", + "apihelp-womget-paramvalue-type-wiki": "Get wiki text of specified object.", + "apihelp-womget-paramvalue-type-count": "Get objects count with specified xpath.", + "apihelp-womget-paramvalue-type-xml": "View \"encoded objects' xml\" with specified xpath, usually use with format=xml", + "apihelp-womget-param-rid": "Revision id of specified page - by default latest updated revision (0) is used.", + "apihelp-womapi-summary": "Call to execute MW apis upon Wiki objects inside title.", + "apihelp-womapi-param-title": "Title of the page to modify.", + "apihelp-womapi-param-xpath": "DOM-like xpath to locate WOM object instances (http://www.w3schools.com/xpath/xpath_syntax.asp).", + "apihelp-womapi-param-wommap": "Settings to map WOM result on parameter(s) of api actions\n\"|\
[MediaWiki-commits] [Gerrit] mediawiki...WikiObjectModel[master]: Add apihelp messages to pass unit tests
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/369979 ) Change subject: Add apihelp messages to pass unit tests .. Add apihelp messages to pass unit tests Bug: T155034 Change-Id: I7a3d1cec3c88fab158674f924f8f226308a19c72 --- M i18n/en.json M i18n/qqq.json M includes/apis/WOM_GetObjectModel.php M includes/apis/WOM_GetWikiResult.php M includes/apis/WOM_OutputObjectModel.php M includes/apis/WOM_Query.php M includes/apis/WOM_SetObjectModel.php M includes/apis/WOM_WikiObjectApi.php 8 files changed, 112 insertions(+), 148 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiObjectModel refs/changes/79/369979/1 diff --git a/i18n/en.json b/i18n/en.json index 7c24802..5018fdc 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -4,5 +4,59 @@ }, "objecteditor": "Object Editor", "wom_editor": "Object Model", - "wom-desc": "Easy Page Object Model for wiki user" + "wom-desc": "Easy Page Object Model for wiki user", + "apihelp-womset-summary": "Call to set object values to MW page, by Wiki Object Model.", + "apihelp-womset-param-title": "Title of the page to modify.", + "apihelp-womset-param-verb": "Action verb to set to change wiki object instances.", + "apihelp-womset-param-xpath": "DOM-like xpath to locate WOM object instances (http://www.w3schools.com/xpath/xpath_syntax.asp)\n* verb = update, xpath to elements to be updated\n* verb = attribute, xpath to elements, the attribute will be updated\n* verb = insert, the element will be inserted right before the element specified by xpath\n* verb = append, the element will be appended right to the element children elements specified by xpath\n* verb = remove, xpath to element to be removed\n* verb = removeall, xpath to elements to be removed.", + "apihelp-womset-param-text": "Value to set\nverb = attribute, attribute_name=attribute_value", + "apihelp-womset-param-summary": "Edit summary.", + "apihelp-womset-param-rid": "Revision id of specified page - by default latest updated revision (0) is used.", + "apihelp-womset-param-force_update": "Force to update even if the revision id does not match the latest edition\n* force_update = false, return "revision not match" exception if rid is not the latest one\n* force_update = true, update anyway.", + "apihelp-womset-param-token": "Edit token. You can get one of these through prop=info.", + "apihelp-womset-param-minor": "Minor edit.", + "apihelp-womset-param-notminor": "Non-minor edit.", + "apihelp-womset-param-bot": "Mark this edit as bot.", + "apihelp-womset-param-basetimestamp": "Timestamp of the base revision (gotten through prop=revisions&rvprop=timestamp). Used to detect edit conflicts; leave unset to ignore conflicts.", + "apihelp-womset-param-starttimestamp": "Timestamp when you obtained the edit token. Used to detect edit conflicts; leave unset to ignore conflicts.", + "apihelp-womset-param-nocreate": "Throw an error if the page doesn't exist.", + "apihelp-womset-param-watch": "Add the page to your watchlist.", + "apihelp-womset-param-unwatch": "Remove the page from your watchlist.", + "apihelp-womset-param-watchlist": "Unconditionally add or remove the page from your watchlist, use preferences or do not change watch.", + "apihelp-womset-param-captchaid": "CAPTCHA ID from previous request.", + "apihelp-womset-param-captchaword": "Answer to the CAPTCHA.", + "apihelp-womset-param-md5": "The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.", + "apihelp-womget-summary": "Call to get object values to Wiki Object Model.", + "apihelp-womget-param-title": "Title of the page to modify.", + "apihelp-womget-param-xpath": "DOM-like xpath to locate WOM object instances (http://www.w3schools.com/xpath/xpath_syntax.asp).", + "apihelp-womget-param-type": "Type to fetch useful wiki object data:", + "apihelp-womget-paramvalue-type-wiki": "Get wiki text of specified object.", + "apihelp-womget-paramvalue-type-count": "Get objects count with specified xpath.", + "apihelp-womget-paramvalue-type-xml": "View \"encoded objects' xml\" with specified xpath, usually use with format=xml", + "apihelp-womget-param-rid": "Revision id of specified page - by default latest updated revision (0) is used.", + "apihelp-womapi-summary": "Call to execute MW apis upon Wiki objects inside title.", + "apihelp-womapi-param-title": "Title of the page to modify.", + "apihelp-womapi-param-xpath": "DOM-like xpath to locate WOM object instances (http://www.w3schools.com/xpath/xpath_syntax.asp).", + "apihelp-womapi-param-wommap": "Settings to map WOM result on parameter(s)