Difference between revisions of "Template:API-head"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "<translate>" to "")
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages/>
 
<languages/>
</noinclude>{{#switch:<translate></translate>
+
</noinclude>{{#switch:</translate>
 
| =
 
| =
 
<table {{Databox-layout|style=margin:{{dir|{{pagelang}}|5px 12px 5px 0|5px 0 5px 12px}};}}><tr>
 
<table {{Databox-layout|style=margin:{{dir|{{pagelang}}|5px 12px 5px 0|5px 0 5px 12px}};}}><tr>
 
<th {{Databox-head}}>{{{module|{{BASEPAGENAME}}}}}</th>
 
<th {{Databox-head}}>{{{module|{{BASEPAGENAME}}}}}</th>
 
</tr><tr>
 
</tr><tr>
<td colspan="2" style="text-align:center; padding:0.3em; font-style:italic">{{{description|}}}{{#switch: {{{generator|}}} |#default=<br /><small><translate><!--T:1--> This module cannot be used as a <tvar|generator>{{ll|API:generator|nsp=0}}</>.</translate></small>|yes=<br /><small><translate><!--T:2--> This module can be used as a <tvar|generator>{{ll|API:generator|nsp=0}}</>.</translate></small>}}</td>
+
<td colspan="2" style="text-align:center; padding:0.3em; font-style:italic">{{{description|}}}{{#switch: {{{generator|}}} |#default=<br /><small><!--T:1--> This module cannot be used as a <tvar|generator>{{ll|API:generator|nsp=0}}</>.</translate></small>|yes=<br /><small><!--T:2--> This module can be used as a <tvar|generator>{{ll|API:generator|nsp=0}}</>.</translate></small>}}</td>
 
</tr><tr>
 
</tr><tr>
<th><translate><!--T:3--> Prefix</translate></th>
+
<th><!--T:3--> Prefix</translate></th>
<td>{{#switch: {{lc:{{{prefix|none}}}}} |none=''<translate><!--T:4--> none</translate>'' |#default={{{prefix}}} }}</td>
+
<td>{{#switch: {{lc:{{{prefix|none}}}}} |none=''<!--T:4--> none</translate>'' |#default={{{prefix}}} }}</td>
 
</tr><tr>
 
</tr><tr>
<th><translate><!--T:5--> Required rights</translate></th>
+
<th><!--T:5--> Required rights</translate></th>
<td>{{#switch: {{lc:{{{rrights|none}}}}} |none=''<translate><!--T:6--> none</translate>'' |#default={{{rrights}}} }}</td>
+
<td>{{#switch: {{lc:{{{rrights|none}}}}} |none=''<!--T:6--> none</translate>'' |#default={{{rrights}}} }}</td>
 
</tr><tr>
 
</tr><tr>
<th><translate><!--T:7--> Post only?</translate></th>
+
<th><!--T:7--> Post only?</translate></th>
<td>{{#switch: {{lc:{{{postonly|no}}}}} |no=<translate><!--T:8--> No</translate> |#default=<translate><!--T:9--> Yes</translate> }}</td>
+
<td>{{#switch: {{lc:{{{postonly|no}}}}} |no=<!--T:8--> No</translate> |#default=<!--T:9--> Yes</translate> }}</td>
 
</tr><tr>
 
</tr><tr>
<th><translate><!--T:12--> Generated help</translate></th>
+
<th><!--T:12--> Generated help</translate></th>
<td>[//{{{site|www.mediawiki.org}}}/w/api.php?action=help&modules={{#ifeq: {{lc:{{{query|{{{generator|}}}}}}}} | yes |query+}}{{lc:{{{module|{{IfNotTranslation|{{PAGENAMEE}}|{{BASEPAGENAMEE}}}}}}}}} <translate><!--T:13--> Current</translate>]</td>
+
<td>[//{{{site|www.mediawiki.org}}}/w/api.php?action=help&modules={{#ifeq: {{lc:{{{query|{{{generator|}}}}}}}} | yes |query+}}{{lc:{{{module|{{IfNotTranslation|{{PAGENAMEE}}|{{BASEPAGENAMEE}}}}}}}}} <!--T:13--> Current</translate>]</td>
 
{{#if:{{{version|}}}|
 
{{#if:{{{version|}}}|
 
</tr><tr>
 
</tr><tr>
<th><translate><!--T:14--> Version added</translate></th>
+
<th><!--T:14--> Version added</translate></th>
 
<td>{{MW version|version={{{version|?}}}|compact=yes|comment=and after}}</td>
 
<td>{{MW version|version={{{version|?}}}|compact=yes|comment=and after}}</td>
 
}}
 
}}
Line 34: Line 34:
 
{{Documentation|content=
 
{{Documentation|content=
  
<translate>
+
 
 
== Usage == <!--T:10-->
 
== Usage == <!--T:10-->
 
</translate>
 
</translate>
Line 41: Line 41:
  
 
See also {{tl|ApiEx}} which transcludes the generated API documentation
 
See also {{tl|ApiEx}} which transcludes the generated API documentation
<translate>
+
 
 
== Examples == <!--T:11-->
 
== Examples == <!--T:11-->
 
</translate>
 
</translate>

Revision as of 03:54, 21 December 2019


{{#switch: | =










{{#ifeq:|nocat|

 |

| #default=

 Lua error: expandTemplate: template loop detected.
Template documentation

Usage

Displays a box providing more information about an API module.

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

Examples

Lua error: expandTemplate: template loop detected.

Lua error: expandTemplate: template loop detected.

Lua error: expandTemplate: template loop detected.

Lua error: expandTemplate: template loop detected.

Template documentation

Usage

</translate>

Displays a box providing more information about an API module.

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

Examples

</translate> {{#switch: | =










{{#ifeq:nocat|nocat|

 |

| #default=

 Lua error: expandTemplate: template loop detected.
Template documentation

Usage

Displays a box providing more information about an API module.

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

Examples

Template loop detected: Template:API-head

Template loop detected: Template:API-head

Template loop detected: Template:API-head

Template loop detected: Template:API-head

{{API-head
|version=1.11
|prefix=sr
|rrights=None
|postonly=No
|description=Perform a full text search
|generator=yes
}}

{{#switch: | =










{{#ifeq:nocat|nocat|

 |

| #default=

 Lua error: expandTemplate: template loop detected.
Template documentation

Usage

Displays a box providing more information about an API module.

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

Examples

Template loop detected: Template:API-head

Template loop detected: Template:API-head

Template loop detected: Template:API-head

Template loop detected: Template:API-head

{{API-head
|module=edit
|version=1.13
|prefix=
|rrights=edit
|postonly=Yes
|description=
|query=no
}}