Difference between revisions of "Template:API-head"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<languages/>" to "")
m (Text replacement - "</>" to "")
Line 6: Line 6:
 
<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> This module cannot be used as a <tvar|generator>{{ll|API:generator|nsp=0}}</>.</small>|yes=<br /><small> This module can be used as a <tvar|generator>{{ll|API:generator|nsp=0}}</>.</small>}}</td>
+
<td 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 <tvar|generator>{{ll|API:generator|nsp=0}}.</small>|yes=<br /><small> This module can be used as a <tvar|generator>{{ll|API:generator|nsp=0}}.</small>}}</td>
 
</tr><tr>
 
</tr><tr>
 
<th> Prefix</th>
 
<th> Prefix</th>

Revision as of 15:07, 21 December 2019


Template documentation

Usage

Displays a box providing more information about an API module.

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

Examples

{{API-head
|version=1.11
|prefix=sr
|rrights=None
|postonly=No
|description=Perform a full text search
|generator=yes
}}
{{API-head
|module=edit
|version=1.13
|prefix=
|rrights=edit
|postonly=Yes
|description=
|query=no
}}