Open main menu

Changes

1,891 bytes added ,  04:11, 19 February 2016
m
1 revision imported: All the templates from MediaWiki.com
<noinclude>
<languages/>
</noinclude>{| {{Databox-layout|style=margin:{{dir|{{pagelang}}|5px 12px 5px 0|5px 0 5px 12px}};}}
! {{Databox-head}}|{{{module|{{BASEPAGENAME}}}}}
|-
| colspan="2" style="text-align: center; padding: 0.3em; font-style: italic;" | {{{description|}}}{{#switch: {{{generator|}}} |#default=<br /><small>This module cannot be used as a {{ll|API:generator|nsp=0}}.</small>|yes=<br /><small>This module can be used as a {{ll|API:generator|nsp=0}}.</small>}}
|-
! Prefix
| {{#switch: {{lc:{{{prefix|none}}}}} |none=''none'' |#default={{{prefix}}} }}
|-
! Required rights
| {{#switch: {{lc:{{{rrights|none}}}}} |none=''none'' |#default={{{rrights}}} }}
|-
! Post only?
| {{#switch: {{lc:{{{postonly|no}}}}} |no=No |#default=Yes }}
|-
! Generated help
| [//{{{site|www.mediawiki.org}}}/w/api.php?action=help&modules={{#ifeq: {{lc:{{{query|{{{generator|}}}}}}}} | yes |query+}}{{lc:{{{module|{{IfNotTranslation|{{PAGENAMEE}}|{{BASEPAGENAMEE}}}}}}}}} Current]
{{#if:{{{version|}}}|
{{!}}-
! Version added
{{!}} {{ {{TNTN|MW version}} |version={{{version|?}}}|compact=yes|comment=and after}}
}}
|}<noinclude>
<div class="toccolours">
== Usage ==
{{clear}}
Displays a box providing more information about an API module.

See also {{tl|ApiEx}} which transcludes the generated API documentation

== Eixemplos ==
{{TNT|API-head
|version=1.11
|prefix=sr
|rrights=None
|postonly=No
|description=Perform a full text search
|generator=yes
}}
<pre>
{{TNT|API-head
|version=1.11
|prefix=sr
|rrights=None
|postonly=No
|description=Perform a full text search
|generator=yes
}}
</pre>
{{clear}}
{{TNT|API-head
|module=edit
|version=1.13
|prefix=
|rrights=edit
|postonly=Yes
|description=
|query=no
}}
<pre>
{{TNT|API-head
|module=edit
|version=1.13
|prefix=
|rrights=edit
|postonly=Yes
|description=
|query=no
}}
</pre>
{{clear}}
</div>
[[Category:API templates{{translation}}]]
</noinclude>