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