mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-15 03:35:20 +00:00
API: Remove unused parameter exvariant
All API calls supports the generic parameter variant. With I8a31dfd3cf2a3e8f768907084d26a77f198ccbe3 in core this parameter is documented and generates no warning anymore. Bug: T117529 Change-Id: Ic7e6f1df99c67ad4132c22503d99345611af271a
This commit is contained in:
parent
ad435fb4e1
commit
579fae4c38
|
@ -10,6 +10,5 @@
|
||||||
"apihelp-query+extracts-param-intro": "Return only content before the first section.",
|
"apihelp-query+extracts-param-intro": "Return only content before the first section.",
|
||||||
"apihelp-query+extracts-param-plaintext": "Return extracts as plain text instead of limited HTML.",
|
"apihelp-query+extracts-param-plaintext": "Return extracts as plain text instead of limited HTML.",
|
||||||
"apihelp-query+extracts-param-sectionformat": "How to format sections in plaintext mode:\n;plain:No formatting.\n;wiki:Wikitext-style formatting (== like this ==).\n;raw:This module's internal representation (section titles prefixed with <ASCII 1><ASCII 2><section level><ASCII 2><ASCII 1>).",
|
"apihelp-query+extracts-param-sectionformat": "How to format sections in plaintext mode:\n;plain:No formatting.\n;wiki:Wikitext-style formatting (== like this ==).\n;raw:This module's internal representation (section titles prefixed with <ASCII 1><ASCII 2><section level><ASCII 2><ASCII 1>).",
|
||||||
"apihelp-query+extracts-param-variant": "Convert content into this language variant.",
|
|
||||||
"apihelp-query+extracts-example-1": "Get a 175-character extract"
|
"apihelp-query+extracts-example-1": "Get a 175-character extract"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,5 @@
|
||||||
"apihelp-query+extracts-param-intro": "{{doc-apihelp-param|query+extracts|intro}}",
|
"apihelp-query+extracts-param-intro": "{{doc-apihelp-param|query+extracts|intro}}",
|
||||||
"apihelp-query+extracts-param-plaintext": "{{doc-apihelp-param|query+extracts|plaintext}}",
|
"apihelp-query+extracts-param-plaintext": "{{doc-apihelp-param|query+extracts|plaintext}}",
|
||||||
"apihelp-query+extracts-param-sectionformat": "{{doc-apihelp-param|query+extracts|sectionformat}}",
|
"apihelp-query+extracts-param-sectionformat": "{{doc-apihelp-param|query+extracts|sectionformat}}",
|
||||||
"apihelp-query+extracts-param-variant": "{{doc-apihelp-param|query+extracts|variant}}",
|
|
||||||
"apihelp-query+extracts-example-1": "{{doc-apihelp-example|query+extracts}}"
|
"apihelp-query+extracts-example-1": "{{doc-apihelp-example|query+extracts}}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -372,11 +372,6 @@ class ApiQueryExtracts extends ApiQueryBase {
|
||||||
/** @todo Once support for MediaWiki < 1.25 is dropped, just use ApiBase::PARAM_HELP_MSG directly */
|
/** @todo Once support for MediaWiki < 1.25 is dropped, just use ApiBase::PARAM_HELP_MSG directly */
|
||||||
defined( 'ApiBase::PARAM_HELP_MSG' ) ? ApiBase::PARAM_HELP_MSG : '' => 'api-help-param-continue',
|
defined( 'ApiBase::PARAM_HELP_MSG' ) ? ApiBase::PARAM_HELP_MSG : '' => 'api-help-param-continue',
|
||||||
),
|
),
|
||||||
// Used implicitly by LanguageConverter
|
|
||||||
'variant' => array(
|
|
||||||
ApiBase::PARAM_TYPE => 'string',
|
|
||||||
ApiBase::PARAM_DFLT => false,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -397,7 +392,6 @@ class ApiQueryExtracts extends ApiQueryBase {
|
||||||
" raw - This module's internal representation (section titles prefixed with <ASCII 1><ASCII 2><section level><ASCII 2><ASCII 1>",
|
" raw - This module's internal representation (section titles prefixed with <ASCII 1><ASCII 2><section level><ASCII 2><ASCII 1>",
|
||||||
),
|
),
|
||||||
'continue' => 'When more results are available, use this to continue',
|
'continue' => 'When more results are available, use this to continue',
|
||||||
'variant' => 'Convert content into this language variant`',
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue