Difference between revisions of "Template:Extension/doc"
Jump to navigation
Jump to search
Template:Extension/doc (view source)
Revision as of 05:27, 16 September 2007
, 05:27, 16 September 2007→Content parameters: expanded hook parameter documentation
>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). |