Difference between revisions of "Template:Extension/doc"
>Egfrank~mediawikiwiki (→Control parameters: clarification) |
>Egfrank~mediawikiwiki (→Content parameters: expanded hook parameter documentation) |
||
Line 98: | Line 98: | ||
Note: Many extensions have more than one type, if this applies to yours,replace <code><nowiki>|type=</nowiki></code> with <code><nowiki>|type1=|type2=|type3=...</nowiki></code>. You may define up to six types for an extension. | Note: Many extensions have more than one type, if this applies to yours,replace <code><nowiki>|type=</nowiki></code> with <code><nowiki>|type1=|type2=|type3=...</nowiki></code>. You may define up to six types for an extension. | ||
|- | |- | ||
| <span id="type">'''hook1'''</span><br/>''hook2''<br/>''hook3''<br/>''hook4''<br/>''hook5''<br/>''hook6''<br/><span id="type">hook7</span><br/>''hook8''<br/>''hook9''<br/>''hook10''|| '''name of each hook used by the extension''' | | <span id="type">'''hook1'''</span><br/>''hook2''<br/>''hook3''<br/>''hook4''<br/>''hook5''<br/>''hook6''<br/><span id="type">hook7</span><br/>''hook8''<br/>''hook9''<br/>''hook10'' | ||
|valign="top"| '''name of each hook used by the extension''' | |||
Entering values in this field is a good way to get exposure for your extension and help other developers. Each documented hook will automatically be added to a category listing extensions that use that hook. This category is autolinked to each hook so that programmers can easily find examples of extensions that use a particular hook. | |||
Please see [[Manual:Hooks]] and [[Extension hook registry]] for a list of valid values. For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on. | |||
|- | |- | ||
| author || The extension author's name, if different from their MediaWiki.org username. Free text. If omitted then the 'username' field will be used (if present). | | author || The extension author's name, if different from their MediaWiki.org username. Free text. If omitted then the 'username' field will be used (if present). |
Revision as of 05:27, 16 September 2007
Purpose
This template should be added to the main page of all extensions documented on this wiki (and only the main page). It will add a useful infobox using the information supplied (see below) and will automatically add the extension to Category:All extensions, plus the appropriate status and type categories.
Usage
Cut and paste: {{Extension|templatemode = |name = |status = |type = |author = |username = |image = |version = |update = |mediawiki = |download = |readme = |changelog = |description = |parameters = |rights = |example = }} For help with parameter values, see below. |
Lua error: callParserFunction: function "#translation" was not found.
|
Content parameters
This section describes parameters that govern infobox content. For help with templatemode and other control parameters, please see Template:SeeSection.
Control parameters
Using the infoboxExisting extension pagesIf you want to add the infobox to an existing page, copy and paste the code at the top of this page. Create a new extension articleIf you want to create a new extension page, enter the name below and click the button. A new page will be created with the infobox template already in place. <translate> A developer sharing their code in the MediaWiki code repository should expect:</translate>
|