mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-09-23 18:29:55 +00:00
Merge "Improve API examples"
This commit is contained in:
commit
e507a3e972
|
@ -1,13 +1,14 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": [
|
||||
"EpicPupper",
|
||||
"Zoranzoki21"
|
||||
]
|
||||
},
|
||||
"apihelp-templatedata-description": "Fetch data stored by the TemplateData extension.",
|
||||
"apihelp-templatedata-summary": "Fetch data stored by the TemplateData extension.",
|
||||
"apihelp-templatedata-example-1": "Return TemplateData for [[Template:Stub]] and [[Template:Example]], with results if the templates do not exist or do exist but have no TemplateData",
|
||||
"apihelp-templatedata-example-2": "Return TemplateData for [[Template:Stub]] and [[Template:Example]], with no results if the templates do not exist or do exist but have no TemplateData",
|
||||
"apihelp-templatedata-example-1": "Return TemplateData for [[Template:Foobar]], with results if the template does not exist or exists but has no TemplateData",
|
||||
"apihelp-templatedata-example-2": "Return TemplateData for [[Template:Phabricator]], with no results if the template does not exist or exists but has no TemplateData",
|
||||
"apihelp-templatedata-param-includeMissingTitles": "Return data about titles even if they are missing or lack TemplateData. By default titles are only returned if they exist and have TemplateData.",
|
||||
"apihelp-templatedata-param-doNotIgnoreMissingTitles": "Return data about titles even if they are missing or lack TemplateData. By default (for backwards compatibility) titles are only returned if they exist and have TemplateData.",
|
||||
"apihelp-templatedata-param-lang": "Return localized values in this language. By default all available translations are returned.",
|
||||
|
|
|
@ -271,9 +271,9 @@ class ApiTemplateData extends ApiBase {
|
|||
*/
|
||||
protected function getExamplesMessages() {
|
||||
return [
|
||||
'action=templatedata&titles=Template:Stub|Template:Example&includeMissingTitles=1'
|
||||
'action=templatedata&titles=Template:Foobar&includeMissingTitles=1'
|
||||
=> 'apihelp-templatedata-example-1',
|
||||
'action=templatedata&titles=Template:Stub|Template:Example'
|
||||
'action=templatedata&titles=Template:Phabricator'
|
||||
=> 'apihelp-templatedata-example-2',
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue