A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Best_practices_for_extensions below:

Best practices for extensions - MediaWiki

This page documents the current best practices for developing extensions to MediaWiki. Unless specified otherwise, these also apply to skins.

Each item is given a rating to reflect its relative importance. The rating uses keywords as defined by RFC 2119. Here is what they mean in context:

Overall, the extension's file layout should be organized: consistent naming, directory structure that is logical and not messy.

Overall, follow the MediaWiki coding conventions for PHP , JavaScript , CSS , and any other languages that are in-use and have applicable code conventions.

Various aspects of language support are also known as Localisation (L10n), internationalization (i18n), multilingualization, and globalization. Overall, your extension should be fully usable and compatible with non-English and non-left-to-right languages.

Refer to Accessibility guide for developers . Note that those are not yet integrated into the guidelines and for the purposes of the extension best practices may be considered as OPTIONAL, pending further discussion.

See also Security for developers .

TODO: Should extensions be creating user groups in their default configuration? Or should we recommend leaving new rights unassigned or assigned to core groups by default?

As a general principle, do not re-implement or compete with functionality already provided by MediaWiki core.

This page was first drafted during the 2017 Wikimania Hackathon.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4