MediaWiki/extensions: Difference between revisions

List of possible extension types borrowed from http://www.mediawiki.org/wiki/Template:Extension#type under that clauses of GFDL
m (typo)
(List of possible extension types borrowed from http://www.mediawiki.org/wiki/Template:Extension#type under that clauses of GFDL)
Line 1: Line 1:
= Types of extensions =
implementation type
The implementation strategy(s) employed in building this extension. This parameter is used to create categories that help programmers find examples of various MediaWiki specific implementation strategies or patterns. Although the values of this parameter sometimes coincide with the use case or purpose of an extension, that is not reason for this parameter. If the values you have chosen for this parameter do not adequately identify the purpose or possible use cases, we recommend you add additional category links as needed.
* [[mw:parser]] - catchall for uncategorized parser extensions. If you have written a parser extension, please use one of the following more specific types:
**[[mw:link]] - customized link markup, e.g. [[mw:...]]
**[[mw:parser function]] - custom parameterized template markup, e.g. {{#name: ... }}
**[[mw:tag]] - custom XML tag markup, e.g. <tagname>...</tagname>
**[[mw:variable]] - custom unparameterized template markup, e.g. <nowiki>{{NAME}}</nowiki>
**[[mw:extended syntax]] - Extensions that add non-standard wiki syntax (i.e. not tags, parser functions, or variables).
   
* [[mw:access]] - catchall for user access extensions, that is, extensions that create, authenticate, grant permissions, revoke permissions, or monitor the activity of users. If you have written an access extension, please use one of the following more specific types:
**[[mw:user activity]] - extensions that monitor user activity (logins, logouts, new user creation, etc.)
**[[mw:user identity]] - extensions that create and delete users, and/or verify the identity of a user
**[[mw:user rights]] - extensions to the rights management system, e.g. changes to the way rights are assigned, API, maintenance tools (does not include extensions that merely name the rights needed to use the features of that extension; for this purpose use the rights parameter)
* interface - catchall for uncategorized user interface extensions.
**[[mw:media]] - extensions that permit the embedding of multimedia content on wiki pages by registering a file extension with $wgMediaHandlers.
**[[mw:mywiki]] - extensions that provide infrastructure so that users may personalize their MediaWiki experience and/or assist in the management of that infrastructure
**[[mw:notify]] - extensions that email users, broadcast messages and provide other forms of community notification
**[[mw:page action]] - extensions that enhance or modify page actions. This includes anything that implements an action that reads, writes, searches for, creates, renames, deletes, redirects or discusses a page. It does not include rights (use user rights) or logs (use user activity).
**[[mw:search]] - extensions that search through and select articles for users.
**[[mw:skin]] - extensions adding CSS or JavaScript, or implementing hook functions to change the look and feel of MediaWiki via the skins framework.
**[[mw:ajax]] - extensions that use Ajax programming techniques.
**[[mw:special]] - extensions that subclass the SpecialPage class, use one of its hooks, or patch one or more functions in SpecialPage.php. See Manual:Special pages for more information.
   
* [[mw:other]]
**[[mw:api]] - extensions that add a new API module or extend a core API module.
**[[mw:hook]] - Hook extension - defines a new hook - see hook1, etc. below if you want to define hooks used by your extension
*[[mw:pfunc]] - same as parser function
= Current =
= Current =


Line 109: Line 144:


Obviously does what it says. Enables per-namespace pre-loadable ( into the edit box ) texts for new articles i.e. we can have a skeleton for creating a new [[product]], [[brand]], [[company]], [[area]], [[country]] and [[NGO]] etc. no need to [[avoid copy-paste|copy-paste]]. Whether the template given for an article can be given if not all things are split into separate namespaces is possible is not know.
Obviously does what it says. Enables per-namespace pre-loadable ( into the edit box ) texts for new articles i.e. we can have a skeleton for creating a new [[product]], [[brand]], [[company]], [[area]], [[country]] and [[NGO]] etc. no need to [[avoid copy-paste|copy-paste]]. Whether the template given for an article can be given if not all things are split into separate namespaces is possible is not know.
----
<small> List of possible extension types borrowed from http://www.mediawiki.org/wiki/Template:Extension#type under that clauses of GFDL</small>
9,842

edits