Line 1: |
Line 1: |
| <noinclude> | | <noinclude> |
| <languages/> | | <languages/> |
− | </noinclude>{{#switch:<translate></translate> | + | </noinclude>{{#switch:<translate> |
| | = | | | = |
| <div class="toccolours"> | | <div class="toccolours"> |
− | <div style="text-align:center; font-size:larger; font-weight:bold"><translate><!--T:1--> Creating a new API documentation page</translate><hr /></div> | + | <div style="text-align:center; font-size:larger; font-weight:bold"><translate><!--T:1--> Creating a new API documentation page<hr /></div> |
− | ; <translate><!--T:2--> MW version</translate> | + | ; <translate><!--T:2--> MW version |
− | : <translate><!--T:3--> Since which MediaWiki version is this api (sub)module available?</translate> ([[Release notes]]) | + | : <translate><!--T:3--> Since which MediaWiki version is this api (sub)module available? ([[Release notes]]) |
− | ; <translate><!--T:4--> API-head</translate> | + | ; <translate><!--T:4--> API-head |
− | : <translate><!--T:5--> What's the prefix?</translate> <translate><!--T:6--> Does this module require any rights or is it available to all anonymous users?</translate> <translate><!--T:7--> Does it have to be POST'ed?</translate> | + | : <translate><!--T:5--> What's the prefix? <translate><!--T:6--> Does this module require any rights or is it available to all anonymous users? <translate><!--T:7--> Does it have to be POST'ed? |
− | ; <translate><!--T:8--> Description</translate> | + | ; <translate><!--T:8--> Description |
− | : <translate><!--T:9--> Describe the module briefly in one or two sentences.</translate> | + | : <translate><!--T:9--> Describe the module briefly in one or two sentences. |
− | ; <translate><!--T:10--> Parameters</translate>: | + | ; <translate><!--T:10--> Parameters: |
− | ; <translate><!--T:11--> Error Codes</translate>: | + | ; <translate><!--T:11--> Error Codes: |
− | ; <translate><!--T:12--> Example(s)</translate>: | + | ; <translate><!--T:12--> Example(s): |
− | ; <translate><!--T:13--> Categories</translate>: | + | ; <translate><!--T:13--> Categories: |
| </div> | | </div> |
− | {{Note|1=<translate><!--T:14--> 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.</translate> ([[phab:T89318]])}} | + | {{Note|1=<translate><!--T:14--> 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}}}} |