Tim Starling has uploaded a new change for review.

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

Change subject: API: Rename disablepp and introduce disabletidy
......................................................................

API: Rename disablepp and introduce disabletidy

* Rename disablepp to disablelimitreport, since it does not disable the
  preprocessor (which is what PP stands for in "NewPP").
* Introduce new option "disabletidy" for T89331
* Suppress the use of the parser cache when options are specified that
  affect the output but are not in ParserOptions::optionsHash(). This
  was already broken, but the damage was fairly limited since the
  options rarely caused user-visible changes. It would break very badly
  if I use the disabletidy option for what I am intending.

Change-Id: I4b0e55fe34e237a68450f583bf59bab7dd703a29
---
M includes/api/ApiParse.php
M includes/api/i18n/en.json
M includes/api/i18n/es.json
M includes/api/i18n/fr.json
M includes/api/i18n/gl.json
M includes/api/i18n/he.json
M includes/api/i18n/pt-br.json
M includes/api/i18n/qqq.json
M includes/api/i18n/uk.json
M includes/api/i18n/vi.json
M includes/api/i18n/zh-hans.json
11 files changed, 72 insertions(+), 32 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/44/233344/1

diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php
index 1b8f6d9..a997add 100644
--- a/includes/api/ApiParse.php
+++ b/includes/api/ApiParse.php
@@ -169,9 +169,23 @@
 
                                $popts = $this->makeParserOptions( $pageObj, 
$params );
 
-                               // Potentially cached
-                               $p_result = $this->getParsedContent( $pageObj, 
$popts, $pageid,
-                                       isset( $prop['wikitext'] ) );
+                               // Don't pollute the parser cache when setting 
options that aren't
+                               // in ParserOptions::optionsHash()
+                               $suppressCache =
+                                       $params['disablepp'] ||
+                                       $params['disablelimitreport'] ||
+                                       $params['preview'] ||
+                                       $params['sectionpreview'] ||
+                                       $params['disabletidy'];
+
+                               if ( $suppressCache ) {
+                                       $this->content = $this->getContent( 
$pageObj, $pageid );
+                                       $p_result = 
$this->content->getParserOutput( $titleObj, null, $popts );
+                               } else {
+                                       // Potentially cached
+                                       $p_result = $this->getParsedContent( 
$pageObj, $popts, $pageid,
+                                               isset( $prop['wikitext'] ) );
+                               }
                        }
                } else { // Not $oldid, $pageid, $page. Hence based on $text
                        $titleObj = Title::newFromText( $title );
@@ -464,13 +478,17 @@
        protected function makeParserOptions( WikiPage $pageObj, array $params 
) {
 
                $popts = $pageObj->makeParserOptions( $this->getContext() );
-               $popts->enableLimitReport( !$params['disablepp'] );
+               $popts->enableLimitReport( !$params['disablepp'] && 
!$params['disablelimitreport'] );
                $popts->setIsPreview( $params['preview'] || 
$params['sectionpreview'] );
                $popts->setIsSectionPreview( $params['sectionpreview'] );
                $popts->setEditSection( !$params['disableeditsection'] );
+               if ( $params['disabletidy'] ) {
+                       $popts->setTidy( false );
+               }
 
                return $popts;
        }
+
 
        /**
         * @param WikiPage $page
@@ -480,14 +498,9 @@
         * @return ParserOutput
         */
        private function getParsedContent( WikiPage $page, $popts, $pageId = 
null, $getWikitext = false ) {
-               $this->content = $page->getContent( Revision::RAW ); //XXX: 
really raw?
+               $this->content = $this->getContent( $page, $pageId );
 
                if ( $this->section !== false && $this->content !== null ) {
-                       $this->content = $this->getSectionContent(
-                               $this->content,
-                               !is_null( $pageId ) ? 'page id ' . $pageId : 
$page->getTitle()->getPrefixedText()
-                       );
-
                        // Not cached (save or load)
                        return $this->content->getParserOutput( 
$page->getTitle(), null, $popts );
                }
@@ -506,6 +519,27 @@
        }
 
        /**
+        * Get the content for the given page and the requested section.
+        *
+        * @param WikiPage $page
+        * @param int $pageId
+        * @return Content
+        */
+       private function getContent( WikiPage $page, $pageId = null ) {
+               $content = $page->getContent( Revision::RAW ); //XXX: really 
raw?
+
+               if ( $this->section !== false && $content !== null ) {
+                       $content = $this->getSectionContent(
+                               $content,
+                               !is_null( $pageId ) ? 'page id ' . $pageId : 
$page->getTitle()->getPrefixedText()
+                       );
+               }
+               return $content;
+       }
+
+       /**
+        * Extract the requested section from the given Content
+        *
         * @param Content $content
         * @param string $what Identifies the content in error messages, e.g. 
page title.
         * @return Content|bool
@@ -763,7 +797,9 @@
                                ApiBase::PARAM_TYPE => 'string',
                        ),
                        'disablepp' => false,
+                       'disablelimitreport' => false,
                        'disableeditsection' => false,
+                       'disabletidy' => false,
                        'generatexml' => array(
                                ApiBase::PARAM_DFLT => false,
                                ApiBase::PARAM_HELP_MSG => array(
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index d3189c6..fdc56b4 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -302,16 +302,18 @@
        "apihelp-parse-paramvalue-prop-iwlinks": "Gives interwiki links in the 
parsed wikitext.",
        "apihelp-parse-paramvalue-prop-wikitext": "Gives the original wikitext 
that was parsed.",
        "apihelp-parse-paramvalue-prop-properties": "Gives various properties 
defined in the parsed wikitext.",
-       "apihelp-parse-paramvalue-prop-limitreportdata": "Gives the limit 
report in a structured way. Gives no data, when <var>$1disablepp</var> is set.",
-       "apihelp-parse-paramvalue-prop-limitreporthtml": "Gives the HTML 
version of the limit report. Gives no data, when <var>$1disablepp</var> is 
set.",
+       "apihelp-parse-paramvalue-prop-limitreportdata": "Gives the limit 
report in a structured way. Gives no data, when <var>$1disablelimitreport</var> 
is set.",
+       "apihelp-parse-paramvalue-prop-limitreporthtml": "Gives the HTML 
version of the limit report. Gives no data, when 
<var>$1disablelimitreport</var> is set.",
        "apihelp-parse-paramvalue-prop-parsetree": "The XML parse tree of 
revision content (requires content model <code>$1</code>)",
        "apihelp-parse-param-pst": "Do a pre-save transform on the input before 
parsing it. Only valid when used with text.",
        "apihelp-parse-param-onlypst": "Do a pre-save transform (PST) on the 
input, but don't parse it. Returns the same wikitext, after a PST has been 
applied. Only valid when used with <var>$1text</var>.",
        "apihelp-parse-param-effectivelanglinks": "Includes language links 
supplied by extensions (for use with <kbd>$1prop=langlinks</kbd>).",
        "apihelp-parse-param-section": "Only retrieve the content of this 
section number or when <kbd>new</kbd> generate a new section.\n\n<kbd>new</kbd> 
section is only honored when specifying <var>text</var>.",
        "apihelp-parse-param-sectiontitle": "New section title when 
<var>section</var> is <kbd>new</kbd>.\n\nUnlike page editing, this does not 
fall back to <var>summary</var> when omitted or empty.",
-       "apihelp-parse-param-disablepp": "Omit the preprocessor report (\"NewPP 
limit report\") from the parser output.",
+       "apihelp-parse-param-disablelimitreport": "Omit the limit report 
(\"NewPP limit report\") from the parser output.",
+       "apihelp-parse-param-disablepp": "Deprecated alias for 
disablelimitreport",
        "apihelp-parse-param-disableeditsection": "Omit edit section links from 
the parser output.",
+       "apihelp-parse-param-disabletidy": "Do not run HTML cleanup (e.g. tidy) 
on the parser output.",
        "apihelp-parse-param-generatexml": "Generate XML parse tree (requires 
content model <code>$1</code>; replaced by <kbd>$2prop=parsetree</kbd>).",
        "apihelp-parse-param-preview": "Parse in preview mode.",
        "apihelp-parse-param-sectionpreview": "Parse in section preview mode 
(enables preview mode too).",
diff --git a/includes/api/i18n/es.json b/includes/api/i18n/es.json
index 8ad55b3..85e2482 100644
--- a/includes/api/i18n/es.json
+++ b/includes/api/i18n/es.json
@@ -263,8 +263,8 @@
        "apihelp-parse-paramvalue-prop-iwlinks": "Da los enlaces interwiki del 
texto analizado.",
        "apihelp-parse-paramvalue-prop-wikitext": "Da el wikitexto original que 
se había analizado.",
        "apihelp-parse-paramvalue-prop-properties": "Da varias propiedades 
definidas en el wikitexto analizado.",
-       "apihelp-parse-paramvalue-prop-limitreportdata": "Da el informe del 
límite de forma estructurada. No da datos si <var>$1disablepp</var> está 
establecido.",
-       "apihelp-parse-paramvalue-prop-limitreporthtml": "Da la versión HTML 
del informe del límite. No da datos si <var>$1disablepp</var> está 
establecido.",
+       "apihelp-parse-paramvalue-prop-limitreportdata": "Da el informe del 
límite de forma estructurada. No da datos si <var>$1disablelimitreport</var> 
está establecido.",
+       "apihelp-parse-paramvalue-prop-limitreporthtml": "Da la versión HTML 
del informe del límite. No da datos si <var>$1disablelimitreport</var> está 
establecido.",
        "apihelp-parse-param-effectivelanglinks": "Incluye enlaces de idiomas 
proporcionados por las extensiones (para utilizar con 
<kbd>$1prop=langlinks</kbd>).",
        "apihelp-parse-param-preview": "Analizar en modo de vista previa.",
        "apihelp-parse-param-sectionpreview": "Analizar sección en modo de 
vista previa (activa el modo de vista previa).",
diff --git a/includes/api/i18n/fr.json b/includes/api/i18n/fr.json
index 70cc0e4..f2832ab 100644
--- a/includes/api/i18n/fr.json
+++ b/includes/api/i18n/fr.json
@@ -294,15 +294,15 @@
        "apihelp-parse-paramvalue-prop-iwlinks": "Fournit les liens interwikis 
dans le wikitexte analysé.",
        "apihelp-parse-paramvalue-prop-wikitext": "Fournit le wikitexte 
d’origine qui a été analysé.",
        "apihelp-parse-paramvalue-prop-properties": "Fournit les diverses 
propriétés définies dans le wikitexte analysé.",
-       "apihelp-parse-paramvalue-prop-limitreportdata": "Fournit le rapport de 
limite d’une manière structurée. Ne fournit aucune donnée, si 
<var>$1disablepp</var> est positionné.",
-       "apihelp-parse-paramvalue-prop-limitreporthtml": "Fournit la version 
HTML du rapport de limite. Ne fournit aucune donnée, si <var>$1disablepp</var> 
est positionné.",
+       "apihelp-parse-paramvalue-prop-limitreportdata": "Fournit le rapport de 
limite d’une manière structurée. Ne fournit aucune donnée, si 
<var>$1disablelimitreport</var> est positionné.",
+       "apihelp-parse-paramvalue-prop-limitreporthtml": "Fournit la version 
HTML du rapport de limite. Ne fournit aucune donnée, si 
<var>$1disablelimitreport</var> est positionné.",
        "apihelp-parse-paramvalue-prop-parsetree": "L’arbre d’analyse XML du 
contenu de la révision (nécessite le modèle de contenu <code>$1</code>)",
        "apihelp-parse-param-pst": "Faire une transformation avant 
enregistrement de l’entrée avant de l’analyser. Valide uniquement quand utilisé 
avec du texte.",
        "apihelp-parse-param-onlypst": "Faire une transformation avant 
enregistrement (PST) de l’entrée, mais ne pas l’analyser. Renvoie le même 
wikitexte, après que la PST a été appliquée. Valide uniquement quand utilisé 
avec <var>$1text</var>.",
        "apihelp-parse-param-effectivelanglinks": "Inclut les liens de langue 
fournis par les extensions (à utiliser avec <kbd>$1prop=langlinks</kbd>).",
        "apihelp-parse-param-section": "Récupérer uniquement le contenu de ce 
numéro de section ou quand <kbd>nouveau</kbd> génère une nouvelle 
section.\n\nLa <kbd>nouvelle</kbd> section est mise à l’honneur uniquement 
quand <var>text</var> est spécifié.",
        "apihelp-parse-param-sectiontitle": "Nouveau titre de section quand 
<var>section</var> vaut <kbd>nouveau</kbd>.\n\nÀ la différence de la 
modification de page, cela ne revient pas à <var>summary</var> quand il est 
omis ou vide.",
-       "apihelp-parse-param-disablepp": "Omettre le rapport du préprocesseur 
(« rapport de limite du nouveau PP ») de la sortie de l’analyseur.",
+       "apihelp-parse-param-disablelimitreport": "Omettre le rapport du 
préprocesseur (« rapport de limite du nouveau PP ») de la sortie de 
l’analyseur.",
        "apihelp-parse-param-disableeditsection": "Omettre les liens de 
modification de section de la sortie de l’analyseur.",
        "apihelp-parse-param-generatexml": "Générer un arbre d’analyse XML 
(nécessite le modèle de contenu <code>$1</code> ; remplacé par 
<kbd>$2prop=parsetree</kbd>).",
        "apihelp-parse-param-preview": "Analyser en mode aperçu.",
diff --git a/includes/api/i18n/gl.json b/includes/api/i18n/gl.json
index 521a359..13629d6 100644
--- a/includes/api/i18n/gl.json
+++ b/includes/api/i18n/gl.json
@@ -282,15 +282,15 @@
        "apihelp-parse-paramvalue-prop-iwlinks": "Devolve as ligazóns interwiki 
do texto wiki analizado.",
        "apihelp-parse-paramvalue-prop-wikitext": "Devolve o texto wiki 
orixinal que foi analizado.",
        "apihelp-parse-paramvalue-prop-properties": "Obter varias propiedades 
definidas no texto wiki analizado.",
-       "apihelp-parse-paramvalue-prop-limitreportdata": "Devolve o informe de 
límite de forma estruturada. Non devolve datos cando <var>$1disablepp</var> 
está fixado.",
-       "apihelp-parse-paramvalue-prop-limitreporthtml": "Devolve a versión 
HTML do informe de límite. Non devolve datos cando <var>$1disablepp</var> está 
fixado.",
+       "apihelp-parse-paramvalue-prop-limitreportdata": "Devolve o informe de 
límite de forma estruturada. Non devolve datos cando 
<var>$1disablelimitreport</var> está fixado.",
+       "apihelp-parse-paramvalue-prop-limitreporthtml": "Devolve a versión 
HTML do informe de límite. Non devolve datos cando 
<var>$1disablelimitreport</var> está fixado.",
        "apihelp-parse-paramvalue-prop-parsetree": "Árbores de análise XML do 
contido da revisión (precisa o modelo de contido <code>$1</code>)",
        "apihelp-parse-param-pst": "Fai unha transformación antes de gardar a 
entrada antes de analizala. Válida unicamente para usar con texto.",
        "apihelp-parse-param-onlypst": "Facer unha transformación antes de 
gardar (PST) a entrada, pero sen analizala. Devolve o mesmo wikitexto, despois 
de que a PST foi aplicada. Só válida cando se usa con <var>$1text</var>.",
        "apihelp-parse-param-effectivelanglinks": "Inclúe ligazóns de idioma 
proporcionadas polas extensións (para usar con <kbd>$1prop=langlinks</kbd>).",
        "apihelp-parse-param-section": "Recuperar unicamente o contido deste 
número de sección ou cando <kbd>new</kbd> xera unha nova sección.\n\nA sección 
<kbd>new</kbd> só é atendida cando se especifica <var>text</var>.",
        "apihelp-parse-param-sectiontitle": "Novo título de sección cando 
<var>section</var> é <kbd>new</kbd>.\n\nA diferenza da edición de páxinas, non 
se oculta no <var>summary</var> cando se omite ou está baleiro.",
-       "apihelp-parse-param-disablepp": "Omitir o informe de preprocesador 
(\"Informe de límite NewPP\") da saída do analizador.",
+       "apihelp-parse-param-disablelimitreport": "Omitir o informe de 
preprocesador (\"Informe de límite NewPP\") da saída do analizador.",
        "apihelp-parse-param-disableeditsection": "Omitir as ligazóns de 
edición de sección da saída do analizador.",
        "apihelp-parse-param-generatexml": "Xenerar unha árbore de análise XML 
(necesita o modelo de contido <code>$1</code>; substituído por 
<kbd>$2prop=parsetree</kbd>).",
        "apihelp-parse-param-preview": "Analizar en modo vista previa.",
diff --git a/includes/api/i18n/he.json b/includes/api/i18n/he.json
index 53b91f3..dedaf8a 100644
--- a/includes/api/i18n/he.json
+++ b/includes/api/i18n/he.json
@@ -283,15 +283,15 @@
        "apihelp-parse-paramvalue-prop-iwlinks": "מתן קישורי בינוויקי בקוד 
הוויקי המפוענח.",
        "apihelp-parse-paramvalue-prop-wikitext": "מתן קוד הוויקי המקורי 
שפוענח.",
        "apihelp-parse-paramvalue-prop-properties": "נותן מאפיינים שונים 
שמוגדרים בקוד הוויקי המפוענח.",
-       "apihelp-parse-paramvalue-prop-limitreportdata": "נותן דו\"ח הגבלות 
בדרך מובנית. לא נותן שום נתונים כאשר מוגדר <var>$1disablepp</var>.",
-       "apihelp-parse-paramvalue-prop-limitreporthtml": "נותן את גרסת ה־HTML 
של דו\"ח ההגבלות. לא נותן שום נתונים כאשר מוגדר <var>$1disablepp</var>.",
+       "apihelp-parse-paramvalue-prop-limitreportdata": "נותן דו\"ח הגבלות 
בדרך מובנית. לא נותן שום נתונים כאשר מוגדר <var>$1disablelimitreport</var>.",
+       "apihelp-parse-paramvalue-prop-limitreporthtml": "נותן את גרסת ה־HTML 
של דו\"ח ההגבלות. לא נותן שום נתונים כאשר מוגדר 
<var>$1disablelimitreport</var>.",
        "apihelp-parse-paramvalue-prop-parsetree": "עץ פענוח XML של תוכן הגרסה 
(דורש מודל תוכן <code>$1</code>)",
        "apihelp-parse-param-pst": "לעשות התמרה לפני שמירה על הקלט לפני פענוחו. 
תקין רק בשימוש עם טקסט.",
        "apihelp-parse-param-onlypst": "לעשות התמרה לפני שמירה (pre-save 
transform‏, PST) על הקלט, אבל לא לפענח אותו. מחזיר את אותו קוד הוויקי אחרי החלת 
PST. תקף רק בשימוש עם <var>$1text</var>.",
        "apihelp-parse-param-effectivelanglinks": "כולל קישור שפה שמספקות 
הרחבות (לשימוש עם <kbd>$1prop=langlinks</kbd>).",
        "apihelp-parse-param-section": "לאחזר את התוכן של הפסקה עם המספר הזה, 
או, אם זה <kbd>new</kbd>, ליצור פסקה חדשה.\n\n<kbd>new</kbd> יכובד רק בעת ציון 
<var>text</var>.",
        "apihelp-parse-param-sectiontitle": "כותרת פסקה חדשה כאשר 
<var>section</var> הוא <kbd>new</kbd>.\n\nבניגוד לעריכת דף, זה לא מתגבה 
ל־<var>summary</var> כשזה מושמט אם ריק.",
-       "apihelp-parse-param-disablepp": "להשמיט את דו\"ח הקדם־מעבד (\"NewPP 
limit report\") מפלט המפענח.",
+       "apihelp-parse-param-disablelimitreport": "להשמיט את דו\"ח הקדם־מעבד 
(\"NewPP limit report\") מפלט המפענח.",
        "apihelp-parse-param-disableeditsection": "להשמיט את קישורי עריכת 
הפסקאות מפלט המפענח.",
        "apihelp-parse-param-generatexml": "יצירת עץ פענוח של XML (נדרש מודל 
תוכן <code>$1</code>; מוחלף ב־<kbd>$2prop=parsetree</kbd>).",
        "apihelp-parse-param-preview": "לפענח במצב תצוגה מקדימה.",
diff --git a/includes/api/i18n/pt-br.json b/includes/api/i18n/pt-br.json
index 82e05ff..a476b7a 100644
--- a/includes/api/i18n/pt-br.json
+++ b/includes/api/i18n/pt-br.json
@@ -155,7 +155,7 @@
        "apihelp-parse-paramvalue-prop-iwlinks": "Fornece links interwiki no 
wikitexto analisado.",
        "apihelp-parse-paramvalue-prop-wikitext": "Fornece o wikitexto original 
que foi analisado.",
        "apihelp-parse-paramvalue-prop-properties": "Fornece várias 
propriedades definidas no wikitexto analisado.",
-       "apihelp-parse-paramvalue-prop-limitreportdata": "Fornece o relatório 
limite de uma forma estruturada. Não informa dado, quando<var>$1disablepp</var> 
se definido.",
+       "apihelp-parse-paramvalue-prop-limitreportdata": "Fornece o relatório 
limite de uma forma estruturada. Não informa dado, 
quando<var>$1disablelimitreport</var> se definido.",
        "apihelp-parse-example-page": "Analisa uma página.",
        "apihelp-parse-example-text": "Analisa wikitexto.",
        "apihelp-parse-example-texttitle": "Analisa wikitexto, especificando o 
título da página.",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 5ac1e0d..ef803f5 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -292,8 +292,10 @@
        "apihelp-parse-param-effectivelanglinks": 
"{{doc-apihelp-param|parse|effectivelanglinks}}",
        "apihelp-parse-param-section": "{{doc-apihelp-param|parse|section}}",
        "apihelp-parse-param-sectiontitle": 
"{{doc-apihelp-param|parse|sectiontitle}}",
+       "apihelp-parse-param-disablelimitreport": 
"{{doc-apihelp-param|parse|disablelimitreport}}",
        "apihelp-parse-param-disablepp": 
"{{doc-apihelp-param|parse|disablepp}}",
        "apihelp-parse-param-disableeditsection": 
"{{doc-apihelp-param|parse|disableeditsection}}",
+       "apihelp-parse-param-disabletidy": 
"{{doc-apihelp-param|parse|disabletidy}}",
        "apihelp-parse-param-generatexml": 
"{{doc-apihelp-param|parse|generatexml|params=* $1 - Value of the constant 
CONTENT_MODEL_WIKITEXT|paramstart=2}}",
        "apihelp-parse-param-preview": "{{doc-apihelp-param|parse|preview}}",
        "apihelp-parse-param-sectionpreview": 
"{{doc-apihelp-param|parse|sectionpreview}}",
diff --git a/includes/api/i18n/uk.json b/includes/api/i18n/uk.json
index 37935cd..3b1a15d 100644
--- a/includes/api/i18n/uk.json
+++ b/includes/api/i18n/uk.json
@@ -280,15 +280,15 @@
        "apihelp-parse-paramvalue-prop-iwlinks": "Дає інтервікі-посилання в 
аналізованому вікітексті.",
        "apihelp-parse-paramvalue-prop-wikitext": "Дає вихідний вікітекст, який 
було аналізовано.",
        "apihelp-parse-paramvalue-prop-properties": "Дає різні властивості, 
визначені в аналізованому вікітексті.",
-       "apihelp-parse-paramvalue-prop-limitreportdata": "Дає звіт по 
обмеженнях у структурованому вигляді. Не видає даних, якщо встановлено 
<var>$1disablepp</var>.",
-       "apihelp-parse-paramvalue-prop-limitreporthtml": "Дає HTML-версію звіту 
по обмеженнях. Не видає даних, якщо встановлено <var>$1disablepp</var>.",
+       "apihelp-parse-paramvalue-prop-limitreportdata": "Дає звіт по 
обмеженнях у структурованому вигляді. Не видає даних, якщо встановлено 
<var>$1disablelimitreport</var>.",
+       "apihelp-parse-paramvalue-prop-limitreporthtml": "Дає HTML-версію звіту 
по обмеженнях. Не видає даних, якщо встановлено 
<var>$1disablelimitreport</var>.",
        "apihelp-parse-paramvalue-prop-parsetree": "Синтаксичне дерево XML 
вмісту версії (передбачає модель вмісту <code>$1</code>)",
        "apihelp-parse-param-pst": "Зробіть трансформацію вхідних даних перед 
збереженням і аналізом. Дійсне лише при використанні з текстом.",
        "apihelp-parse-param-onlypst": "Зробіть трансформацію вхідних даних 
перед збереженням (PST), але не аналізуйте. Видає той самий вікітекст, після 
застосування PST. Дійсне лише у разі використання з <var>$1text</var>.",
        "apihelp-parse-param-effectivelanglinks": "Включає мовні посилання, 
додані розширеннями (для використання з <kbd>$1prop=langlinks</kbd>).",
        "apihelp-parse-param-section": "Видає вміст лише розділу з цим номером 
або при <kbd>new</kbd> створенні нового розділу.\n\n<kbd>new</kbd> розділ 
відзначається лише при вказанні тексту <var>text</var>.",
        "apihelp-parse-param-sectiontitle": "Заголовок нового розділу, коли 
<var>section</var> має значення <kbd>new</kbd>.\n\nНа відміну від редагування 
сторінки, це не повертається до <var>summary</var>, якщо пропустити чи лишити 
порожнім.",
-       "apihelp-parse-param-disablepp": "Пропустити звіт препроцесора («NewPP 
limit report») на виході аналізу.",
+       "apihelp-parse-param-disablelimitreport": "Пропустити звіт препроцесора 
(«NewPP limit report») на виході аналізу.",
        "apihelp-parse-param-disableeditsection": "Пропустити посилання на 
редагування розділів на виході аналізу.",
        "apihelp-parse-param-generatexml": "Генерувати синтаксичне дерево XML 
(передбачає модель вмісту <code>$1</code>; замінено на 
<kbd>$2prop=parsetree</kbd>).",
        "apihelp-parse-param-preview": "Аналізувати у режимі попереднього 
перегляду.",
diff --git a/includes/api/i18n/vi.json b/includes/api/i18n/vi.json
index 3ffc792..53bc4e81 100644
--- a/includes/api/i18n/vi.json
+++ b/includes/api/i18n/vi.json
@@ -127,7 +127,7 @@
        "apihelp-paraminfo-param-helpformat": "Định dạng chuỗi trợ giúp.",
        "apihelp-parse-param-summary": "Lời tóm lược để phân tích.",
        "apihelp-parse-param-section": "Chỉ truy xuất nội dung của số phần này; 
nếu có <kbd>new</kbd> thì tạo phần mới.\n\nPhần <kbd>new</kbd> chỉ được chấp 
nhận khi định rõ <var>text</var>.",
-       "apihelp-parse-param-disablepp": "Bỏ qua thông báo bộ tiền xử lý 
(“NewPP limit report”) khi cho ra kết quả bộ xử lý.",
+       "apihelp-parse-param-disablelimitreport": "Bỏ qua thông báo bộ tiền xử 
lý (“NewPP limit report”) khi cho ra kết quả bộ xử lý.",
        "apihelp-parse-example-page": "Phân tích trang.",
        "apihelp-parse-example-text": "Phân tích văn bản wiki.",
        "apihelp-parse-example-texttitle": "Phân tích văn bản wiki theo tên 
trang.",
diff --git a/includes/api/i18n/zh-hans.json b/includes/api/i18n/zh-hans.json
index e905c7b..75f4d75 100644
--- a/includes/api/i18n/zh-hans.json
+++ b/includes/api/i18n/zh-hans.json
@@ -287,14 +287,14 @@
        "apihelp-parse-paramvalue-prop-indicators": "提供页面上使用的页面状态指示器的HTML。",
        "apihelp-parse-paramvalue-prop-iwlinks": "在被解析的wiki文本中提供跨wiki链接。",
        "apihelp-parse-paramvalue-prop-wikitext": "提供被解析的原始wiki文本。",
-       "apihelp-parse-paramvalue-prop-limitreportdata": 
"以结构化的方式提供限制报告。如果<var>$1disablepp</var>被设定则不提供数据。",
-       "apihelp-parse-paramvalue-prop-limitreporthtml": 
"提供限制报告的HTML版本。当<var>$1disablepp</var>被设置时不会提供数据。",
+       "apihelp-parse-paramvalue-prop-limitreportdata": 
"以结构化的方式提供限制报告。如果<var>$1disablelimitreport</var>被设定则不提供数据。",
+       "apihelp-parse-paramvalue-prop-limitreporthtml": 
"提供限制报告的HTML版本。当<var>$1disablelimitreport</var>被设置时不会提供数据。",
        "apihelp-parse-paramvalue-prop-parsetree": 
"修订内容的XML解析树(需要内容模型<code>$1</code>)",
        "apihelp-parse-param-pst": "在解析输入前,对输入做一次保存前变换处理。仅当使用文本时有效。",
        "apihelp-parse-param-effectivelanglinks": 
"包含由扩展提供的语言链接(用于与<kbd>$1prop=langlinks</kbd>一起使用)。",
        "apihelp-parse-param-section": 
"只检索此段数的内容,或只当<kbd>new</kbd>生成新的段落时检索。\n\n<kbd>new</kbd>段落只当指定<var>text</var>时受尊重。",
        "apihelp-parse-param-sectiontitle": 
"当<var>section</var>为<kbd>new</kbd>时新段落标题。\n\n不像页面编辑,当省略或为空时将不会备选为<var>summary</var>。",
-       "apihelp-parse-param-disablepp": "从解析器输出中省略预处理器报告(“NewPP limit 
report”)。",
+       "apihelp-parse-param-disablelimitreport": "从解析器输出中省略预处理器报告(“NewPP limit 
report”)。",
        "apihelp-parse-param-disableeditsection": "从解析器输出中省略编辑段落链接。",
        "apihelp-parse-param-generatexml": 
"生成XML解析树(需要内容模型<code>$1</code>;被<kbd>$2prop=parsetree</kbd>所取代)。",
        "apihelp-parse-param-preview": "在预览模式下解析。",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b0e55fe34e237a68450f583bf59bab7dd703a29
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Tim Starling <[email protected]>

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

Reply via email to