Difference between revisions of "Template:API-editnotice"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
Joelmartin (talk | contribs) m (Text replacement - "<!--T:(.*)-->" to "") |
||
Line 4: | Line 4: | ||
| = | | = | ||
<div class="toccolours"> | <div class="toccolours"> | ||
− | <div style="text-align:center; font-size:larger; font-weight:bold" | + | <div style="text-align:center; font-size:larger; font-weight:bold"> Creating a new API documentation page<hr /></div> |
− | ; | + | ; MW version |
− | : | + | : Since which MediaWiki version is this api (sub)module available? ([[Release notes]]) |
− | ; | + | ; API-head |
− | : | + | : What's the prefix? Does this module require any rights or is it available to all anonymous users? Does it have to be POST'ed? |
− | ; | + | ; Description |
− | : | + | : Describe the module briefly in one or two sentences. |
− | ; | + | ; Parameters: |
− | ; | + | ; Error Codes: |
− | ; | + | ; Example(s): |
− | ; | + | ; Categories: |
</div> | </div> | ||
− | {{Note|1= | + | {{Note|1= You should consider using {{tl|Api help}} to transclude API documentation generated by Special:ApiHelp/''module-name'', instead of writing duplicate documentation for parameters, examples, etc. ([[phab:T89318]])}} |
| #default= | | #default= | ||
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:API-editnotice|noshift=1|uselang={{int:lang}}}} | {{#invoke:Template translation|renderTranslatedTemplate|template=Template:API-editnotice|noshift=1|uselang={{int:lang}}}} |
Revision as of 14:32, 21 December 2019
Creating a new API documentation page
- MW version
- Since which MediaWiki version is this api (sub)module available? (Release notes)
- API-head
- What's the prefix? Does this module require any rights or is it available to all anonymous users? Does it have to be POST'ed?
- Description
- Describe the module briefly in one or two sentences.
- Parameters
- Error Codes
- Example(s)
- Categories
You should consider using {{Api help}} to transclude API documentation generated by Special:ApiHelp/module-name, instead of writing duplicate documentation for parameters, examples, etc. (phab:T89318)

Template:API-addnew uses this to guide a wiki editor creating a new API page.