diff --git a/i18n/en.json b/i18n/en.json index 8c84b6a..d69c6da 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -13,5 +13,11 @@ "portable-infobox-xml-parse-error-tag-name-mismatch": "Opening and ending tag mismatch", "portable-infobox-xml-parse-error-tag-not-finished": "Premature end of tag", "portable-infobox-xml-parse-error-infobox-tag-attribute-unsupported": "Attribute \"$1\" is not supported in tag", - "allinfoboxes": "All infoboxes" -} \ No newline at end of file + "allinfoboxes": "All infoboxes", + "apihelp-infobox-summary": "This module provides infobox parser", + "apihelp-infobox-param-text": "Infobox to parse (xml string)", + "apihelp-infobox-param-title": "Title of page the text belongs to", + "apihelp-infobox-param-args": "Variable list to use during parse (json format)", + "apihelp-query+allinfoboxes-summary": "List all infoboxes", + "apihelp-query+infobox-summary": "Get infobox metadata" +} diff --git a/i18n/pl.json b/i18n/pl.json index 666e0f2..fbe49e9 100644 --- a/i18n/pl.json +++ b/i18n/pl.json @@ -13,5 +13,11 @@ "portable-infobox-xml-parse-error-tag-name-mismatch": "Niezgodność otwierającego i kończącego znacznika", "portable-infobox-xml-parse-error-tag-not-finished": "Przedwczesny koniec znacznika", "portable-infobox-xml-parse-error-infobox-tag-attribute-unsupported": "Atrybut \"$1\" nie jest obsługiwana w tagu ", - "allinfoboxes": "Wszystkie infoboksy" -} \ No newline at end of file + "allinfoboxes": "Wszystkie infoboksy", + "apihelp-infobox-summary": "Parsuje kod infoboksu", + "apihelp-infobox-param-text": "Infoboks do przeparsowania (w formacie XML)", + "apihelp-infobox-param-title": "Tytuł strony", + "apihelp-infobox-param-args": "Lista parametrów do użycia przy parsowaniu (w formacie JSON)", + "apihelp-query+allinfoboxes-summary": "Wymień wszystkie infoboksy", + "apihelp-query+infobox-summary": "Pobierz metadane infoboksu" +} diff --git a/i18n/qqq.json b/i18n/qqq.json index 6f68ba1..eef47f3 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -13,5 +13,11 @@ "portable-infobox-xml-parse-error-tag-name-mismatch": "XML Error: Opening and ending tag mismatch (for example: )", "portable-infobox-xml-parse-error-tag-not-finished": "XML Error: premature end of tag", "portable-infobox-xml-parse-error-infobox-tag-attribute-unsupported": "Unsupported attribute used inside tag. $1 param contains attribute name.", - "allinfoboxes": "Special:Allinfoboxes page title" -} \ No newline at end of file + "allinfoboxes": "Special:Allinfoboxes page title", + "apihelp-infobox-summary": "{{doc-apihelp-summary|infobox}}", + "apihelp-infobox-param-text": "{{doc-apihelp-param|infobox|text}}", + "apihelp-infobox-param-title": "{{doc-apihelp-param|infobox|title}}", + "apihelp-infobox-param-args": "{{doc-apihelp-param|infobox|args}}", + "apihelp-query+allinfoboxes-summary": "{{doc-apihelp-summary|query+allinfoboxes}}", + "apihelp-query+infobox-summary": "{{doc-apihelp-summary|query+infobox}}" +} diff --git a/includes/controllers/ApiPortableInfobox.php b/includes/controllers/ApiPortableInfobox.php index 2c2dedf..c5f3995 100644 --- a/includes/controllers/ApiPortableInfobox.php +++ b/includes/controllers/ApiPortableInfobox.php @@ -79,18 +79,6 @@ class ApiPortableInfobox extends ApiBase { ]; } - public function getParamDescription() { - return [ - 'text' => 'Infobox to parse (xml string)', - 'title' => 'Title of page the text belongs to', - 'args' => 'Variable list to use during parse (json format)', - ]; - } - - public function getDescription() { - return [ 'This module provides infobox parser' ]; - } - /** * Examples */