MediaWiki Extensions
| tbd @ |
|---|
Background
This page contains lists of MediaWiki Extensions, most of which have been or are in use at Wiki Aventurica. For some of them we have deployed Bugfixes.
In every MediaWiki there is a page called Special:Version. It contains an automatic list of all installed extensions - which is often a good way to find interesting extensions for your own wiki. Examples: German Wikipedia, English Wikipedia, English Wiktionary
Usually, extensions are activated by adding the following code to Localsettings:
wfLoadExtension( '<ExtensionName>' );
Example for Extension:CodeEditor:
wfLoadExtension( 'CodeEditor' );
Developing Extensions
Manual:Developing extensions is a good way to start if you want to develop your own extension.
Extension:BoilerPlate is the basic framework you should start from, and Extension:Examples contains some simple examples.
Extensions for all MediaWikis
These extensions are in my opinion almost always useful, even for private wikis.
bundled extensions
| Extension | Area of application | Function | Usage in WA | Configuration in WA-Localsettings |
|---|---|---|---|---|
| CategoryTree | User Interface | improves categories | example: Kategorie:!Hauptkategorie | |
| CodeEditor | User Interface | improvements like syntax highlighting for JavaScript and CSS | mainly MediaWiki:Common.js and MediaWiki:Common.css | |
| Echo | User Interface | notification system | cooperative editing | $wgDefaultUserOptions["echo-subscriptions-email-mention"] = false;
$wgDefaultUserOptions["echo-subscriptions-email-article-linked"] = false;
|
| Gadgets | User Interface | enables Special:Gadgets (Spezial:Helferlein) | gives more control over the UI to users | $wgGroupPermissions['interface-admin']['gadgets-edit'] = true;
$wgGroupPermissions['interface-admin']['gadgets-definition-edit'] = true;
|
| InputBox | Programming: parser tag | enables creation of input boxes | example: Chronologica Aventurica | |
| LoginNotify | Security | adds notification for failed logins | security choice for users | $wgLoginNotifyCookieDomain = 'wiki-aventurica.de';
|
| ParserFunctions | Programming: parser function | enables logical functions and string handling | important for template programming | $wgPFEnableStringFunctions = true;
|
| Thanks | User Interface | enables users to send "thanks" notifications for edits to other users | cooperative editing | |
| VisualEditor | User Interface | WYSIWYG editor as alternative to the wikitext editor | editor choice for users | |
| WikiEditor | User Interface | adds toolbar to wikitext editor | editor choice for users | $wgWikiEditorRealtimePreview = true;
|
other extensions
| Extension | Area of application | Function | Usage in WA | Configuration in WA-Localsettings |
|---|---|---|---|---|
| CodeMirror | User Interface | syntax highlighting in wikitext editor | editor choice for users | $wgDefaultUserOptions['usecodemirror'] = 1;
|
| DarkMode | Skins | enables switching to "Dark Mode" | skin choice for users | |
| EmbedVideo (fork) | User Interface | enables playing uploaded audio and video files, as well as GDPR compliant embedding of videos from external sources | example: Vorlage:Youtube-boxed | $wgEmbedVideoFetchExternalThumbnails = false;
|
| MobileFrontend | Skins | enables the skin "Minerva Neue", intended for smartphones | skin choice for users | $wgMFEnableMobilePreferences = true;
|
| MultiBoilerplate | User Interface | enables Special:Boilerplates (Spezial:Verfügbare Textvorlagen) | example: MediaWiki:Multiboilerplate | |
| Paragraph-based Edit Conflict Interface | User Interface | better edit conflict handling | cooperative editing | wfLoadExtension( 'TwoColConflict' );
|
| Variables | Programming: variables | enables defining variables for template programming | examples: Kategorie:Vorlage mit Variable |
Extensions for public MediaWikis
These extensions are in my opinion mainly useful for public wikis.
bundled extensions
| Extension | Area of application | Function | Usage in WA | Configuration in WA-Localsettings |
|---|---|---|---|---|
| AbuseFilter | Anti-spam | enables creation of custom filters | most flexible anti-spam tool for MediaWiki, see Spezial:Missbrauchsfilter; if Extension:ConfirmEdit blocks bots from creating accounts, it is even possible to exempt logged in users from filters | $wgAbuseFilterActions['throttle'] = true;
$wgAbuseFilterActions['warn'] = true;
$wgAbuseFilterActions['disallow'] = true;
$wgAbuseFilterActions['blockautopromote'] = true;
$wgAbuseFilterActions['block'] = true;
$wgAbuseFilterActions['rangeblock'] = false;
$wgAbuseFilterActions['degroup'] = false;
$wgAbuseFilterActions['tag'] = true;
$wgAbuseFilterActions['showcaptcha'] = true; #Extension:ConfirmEdit
$wgAbuseFilterCentralDB = 'dewa';
$wgAbuseFilterEmergencyDisableThreshold['default'] = 0.50;
$wgAbuseFilterEmergencyDisableCount['default'] = 100;
$wgAbuseFilterLogIPMaxAge = 7 * 24 * 3600;
$wgAbuseFilterLogPrivateDetailsAccess = true;
$wgAbuseFilterPrivateDetailsForceReason = true;
$wgAbuseFilterIsCentral = true;
|
| ConfirmEdit | Anti-spam | enables various captchas | captcha is only enabled for Special:CreateAccount, everything else is handled by AbuseFilter in order to keep disruption for regular users to a minimum | $wgTurnstileSiteKey and $wgTurnstileSecretKey can be included directly in LocalSettings.php, but we include it from another file outside the web root.
wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/Turnstile' ]);
$wgCaptchaClass = MediaWiki\Extension\ConfirmEdit\Turnstile\Turnstile::class;
#$wgTurnstileSiteKey= ''; #should be included already together with other confidential data
#$wgTurnstileSecretKey= ''; #should be included already together with other confidential data
$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true;
$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = false;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;
$wgCaptchaTriggers['badloginperuser'] = true;
$wgCaptchaTriggers['contactpage'] = true; #Extension:ContactPage
$wgCaptchaBadLoginAttempts = 3;
$wgCaptchaBadLoginExpiration = 3600; // 3600 seconds = 60 minutes
$wgCaptchaBadLoginPerUserAttempts = 3;
$wgCaptchaBadLoginPerUserExpiration = 3600; // 3600 seconds = 60 minutes
$wgRateLimits['badcaptcha']['newbie'] = [ 10, 600 ]; // 600 seconds = 10 minutes
We used to have QuestyCaptcha, but this has been broken by LLMs. |
| SpamBlacklist | Anti-spam | prevents adding links which fit some custom regular expression | examples: MediaWiki:Spam-blacklist, MediaWiki:Spam-whitelist | $wgLogSpamBlacklistHits = true;
$wgGroupPermissions['sysop']['sboverride'] = true;
|
| TitleBlacklist | Anti-spam | prevents creation of pages with names which fit some custom regular expression | examples: MediaWiki:Titleblacklist, MediaWiki:Titlewhitelist | $wgGroupPermissions['sysop']['tboverride'] = true;
|
other extensions
| Extension | Area of application | Function | Usage in WA | Configuration in WA-Localsettings |
|---|---|---|---|---|
| ContactPage | Legal Requirements | adds Special:Contact | German law requires Wiki Aventurica:Impressum to have another method of contact, and a contact form like Spezial:Kontakt fits the requirement | $wgContactConfig['default'] = [
'RecipientEmail' => 'admin@wiki-aventurica.de',
'RecipientName' => 'Admin',
'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required
'SenderName' => null,
'RequireDetails' => true,
'IncludeIP' => true, #benötigt, um Spammer zu blockieren, solange wir kein gutes, einfaches Captcha haben
'MustBeLoggedIn' => false,
'MustHaveEmail' => false, // True means the user submitting the form must have an associated email address
'NameReadonly' => false,
'EmailReadonly' => false,
'SubjectReadonly' => false,
'UseCustomBlockMessage' => false,
'Redirect' => null,
'RLModules' => [], // Resource loader modules to add to the form display page.
'RLStyleModules' => [], // Resource loader CSS modules to add to the form display page.
'AdditionalFields' => [
'Text' => [
'label-message' => 'emailmessage',
'type' => 'textarea',
'required' => true
],
'Privacy' => [
'label-message' => 'contactpage-privacy',
'type' => 'check',
#'default' => false,
'required' => true
]
],
'FieldsMergeStrategy' => null
];
also needs |
| CookieWarning | Legal Requirements | adds a small banner informing the user about cookies; GDPR compliant only if the wiki only uses necessary cookies | MediaWiki:Cookiewarning-more-link | $wgCookieWarningEnabled = true;
|
| Favorites | User Interface | adds Special:FavoriteList (Spezial:FavoritenListe) | enables users to mark wiki pages as favorites | $wgUseIconFavorite = true; #Add a Star icon for selecting favorites
$wgFavoritesPersonalURL = true; #Add a "My Favorites" link to the personal URLs area
This extension is not maintained well and needs some Bugfixes. |
| NewSignupPage | Legal Requirements | adds a checkbox on Special:CreateAccount for acceptance of the wiki's rules and privace policy | MediaWiki:Newsignuppage-loginform-tos | $wgNewSignupPageToSURL = "https://de.wiki-aventurica.de/wiki/Wiki_Aventurica:Richtlinien";
$wgNewSignupPagePPURL = "https://de.wiki-aventurica.de/wiki/Wiki_Aventurica:Datenschutz";
|
Extended MediaWiki installation
These extensions could be more or less useful, depending on your wiki.
bundled extensions
| Extension | Area of application | Function | Usage in WA | Configuration in WA-Localsettings |
|---|---|---|---|---|
| CiteThisPage | User Interface | adds Special:CiteThisPage (Spezial:Zitierhilfe) | helps with citing a wiki page | |
| Math | Programming: parser tag | enables formatting of mathematical formulas | examples: Kategorie:DSA aus mathematischer Sicht | $wgMathValidModes = [ 'source', 'png', 'latexml', 'native', 'mathml' ];
$wgDefaultUserOptions['math'] = 'native';
|
| MultimediaViewer | User Interface | enables a larger view of pictures without visiting the file description page | we assume that file description pages are not that interesting for most users | |
| PageImages | Optimizing | chooses one of the pictures in a page and stores it in the page infos | example: info:Gareth | |
| PdfHandler | User Interface | enables viewing PDF files | examples: Kategorie:Textdatei | This extension possibly needs the installation of software packages on the system.
$wgPdfInfo = '/usr/bin/pdfinfo';
$wgPdftoText = '/usr/bin/pdftotext';
|
| Replace Text | Administration | adds Special:ReplaceText (Spezial:Text ersetzen) | enables wiki-wide Search&Replace functionality via the job queue | |
| SecureLinkFixer | Optimizing | changes certain http links into https links in the html source code | probably not needed in WA, but does not hurt either | |
| SyntaxHighlight | Programming: parser tag | enables syntax highlighting for code | examples: Bugfixes | The file extensions/SyntaxHighlight_GeSHi/pygments/pygmentize needs to have execute permissions for the owner (744).
|
| TemplateData | Programming: parser tag | enables providing structured information about templates, which then can be used by the VisualEditor | (still needs to be implemented) | |
| TemplateStyles | Programming: parser tag | enables adding CSS styles directly to templates, moving them out of MediaWiki:Common.css | examples: Kategorie:TemplateStyle | $wgTemplateStylesAllowedUrls = [
"audio" => [
"<^https://de\\.wiki-aventurica\\.de/de/images/>"
],
"image" => [
"<^https://de\\.wiki-aventurica\\.de/de/images/>"
],
"svg" => [
"<^https://de\\.wiki-aventurica\\.de/de/images/[^?#]*\\.svg(?:[?#]|$)>"
],
"font" => [],
"namespace" => [
"<.>"
],
];
|
| TextExtracts | Optimizing | enables inclusion of wiki page content in other websites, for example via the Extension:InterwikiExtracts | example: use | api = https://de.wiki-aventurica.de/de/api.php (API path can be found in Spezial:Version)
|
other extensions
| Extension | Area of application | Function | Usage in WA | Configuration in WA-Localsettings |
|---|---|---|---|---|
| AJAXPoll | Programming: parser tag | enables polls | examples: Kategorie:Umfrage | $wgGroupPermissions['*']['ajaxpoll-vote'] = false;
$wgGroupPermissions['*']['ajaxpoll-view-results'] = true;
$wgGroupPermissions['*']['ajaxpoll-view-results-before-vote'] = true;
$wgGroupPermissions['user']['ajaxpoll-vote'] = true;
$wgGroupPermissions['user']['ajaxpoll-view-results'] = true;
$wgGroupPermissions['user']['ajaxpoll-view-results-before-vote'] = false;
|
| AntiSpoof | Anti-spam | prevents user names which are too close to already existing ones | user name trolling has never been a problem at WA, but installing this as a preventative measure does not hurt either | |
| CentralAuth | Administration | enables administration of a wiki farm | easier administration of sister wikis, simultaneous login | require_once( "$wgCustomIncludes/CentralAuthCustom.php" );
The included file can be found at CentralAuth. |
| CharInsert | User Interface | adds a toolbar beneath the edit window | example: MediaWiki:Edittools | |
| cldr | Multilingualism | enables using #language: in a way to output the name of a language in another language
|
example: {{#language:ja}} → 日本語{{#language:ja|en}} → Japanese
|
|
| CreatedPagesList | User Interface | adds Spezial:CreatedPagesList | enables quicker access to information | |
| CSS | Programming - parser function | enables adding CSS to single pages | example: edit:Willkommen im Wiki Aventurica! | |
| Description2 | Optimizing | enables adding the meta tag "description" to the html source code | example: Vorlage:Description | $wgEnableMetaDescriptionFunctions = true;
|
| Disambiguator | Administration | enables declaring a page to be a disambiguation page (used to be part of the MediaWiki core) | example: Vorlage:Begriffsklärung | |
| DismissableSiteNotice | User Interface | enables users hiding the MediaWiki:Sitenotice | increase MediaWiki:Sitenotice id, if there is a new Sitenotice to be shown | |
| DynamicPageList4 | Programming: parser function | enables creation of automatic page lists | examples: Kategorie:Automatische Liste auf Unterseite | $wgDPLFunctionalRichness = 2;
$wgDPLMaxCategoryCount = 60;
|
| Editcount | Programming | adds Special:Editcount (Spezial:Beitragszähler) | examples: Wiki Aventurica:Vielschreiber, Wiki Aventurica:Badges | |
| HeaderFooter | User Interface | enables adding code above or below wiki pages on a per-namespace basis | example: MediaWiki:Hf-nsheader-Hilfe | |
| HitCounters | User Interface | enables page access numbers (used to be part of the MediaWiki core) | examples: wde:Wiki Aventurica:Statistikdaten, wde:Wiki Aventurica:Wikistatistik | |
| ImageMap | Programming: parser tag | enables linking parts of pictures | (not used in WA at the moment, but potentially useful) | |
| InterwikiExtracts | Programming: parser function | enables including text from other MediaWikis, if they have Extension:TextExtracts installed | (not used in WA at the moment, but potentially useful) | |
| Kartographer | Programming: parser tag | enables using OpenStreetMap, or to install a custom map service | (not used in WA at the moment, but potentially useful for Spielersuche, Konvent or DSA-Läden, or to install a map service for the ingame map) | |
| Maintenance | Verwaltung | enables the execution of some maintenance scripts from the wiki UI | easier maintenance | |
| MediaFunctions | Programming: variables | enables variables for file metadata like Exif tags | (not used in WA at the moment, but potentially useful) | |
| MediaWikiChat | User Interface | adds Special:Chat | offering users who do not like Wiki Aventurica:Discord an alternative | $wgChatLinkUsernames = true;
$wgChatOnlineTimeout = 1500;
$wgGroupPermissions['suppress']['viewpmlog'] = true;
|
| Multi-Category Search | User Interface | adds Special:MultiCategorySearch | enables searching for intersections of categories | maintained by us |
| MyVariables | Programming: variables | adds a variety of variables | (not used in WA at the moment, but potentially useful) | |
| NamespaceRelations | User Interface | enables connecting namespaces | example: Hilfe:Namensraum (connected with project namespace) | $wgNamespaceRelations = [
'hilfelink' => [
'namespace' => 4,
'target' => 12,
'query' => 'preload=Hilfe:Wiki_Aventurica/Preload&editintro=Hilfe:Wiki_Aventurica/Editintro'
],
'hilfedisk' => [
'namespace' => 4,
'target' => 13,
]
];
|
| PageAuthors | Programming: variables | enables magic word {{PAGEAUTHORS}}
|
(not used in WA at the moment, but potentially useful) | $wgPageAuthorsIgnoreMinorEdits = false;
$wgPageAuthorsLinkUserPages = true;
|
| Patroller | Administration | adds Special:Patroller | enables faster patrolling of new edits for sysops | |
| Progressbar | Programming: parser tag | enables creation of a progressbar | examples: formerly on Wiki Aventurica:Unterstützung | maintained by us |
| Quiz | Programming: parser tag | enables creating quiz questions | examples: RatCon 2010/Quiz Magister der Magister, RatCon 2011/Quiz Magister der Magister, RatCon 2012/Quiz | |
| RandomSelection | Programming: parser function | enables a function which will randomly select a given parameter for output | (not used in WA at the moment, but potentially useful) | |
| RegexFunctions | Programming: parser function | adds various functions for regular expressions | (not used in WA at the moment, but potentially useful) | |
| RottenLinks | Administration | adds Special:RottenLinks | search for dead links | $wgRottenLinksExcludeWebsites = [
"de.wiki-aventurica.de",
"en.wiki-aventurica.de",
"fr.wiki-aventurica.de",
"it.wiki-aventurica.de",
"nl.wiki-aventurica.de",
"ru.wiki-aventurica.de",
];
|
| RSS | Programming: parser tag | enables inclusion of RSS feeds | example: Hauptseite | $wgRSSUrlWhitelist = [
'https://pnpnews.de/feed/',
'https://nuntiovolo.de/feed/',
'https://nandurion.de/feed/',
'https://ulisses-spiele.de/feed/',
];
$wgRSSDateDefaultFormat = "j.n.Y H:i:s";
$wgRSSAllowLinkTag = true;
|
| Subpage Fun | Programming: variables | adds variables for subpages | example: Vorlage:Ifsub | |
| TabberNeue | Programming: parser tag | enables presentation of information in tabs | example: Vorlage:Regeltabs | |
| UploadWizard | User Interface | adds Special:UploadWizard (Spezial:Hochladeassistent) | upgrade to Special:Upload | require_once( "$wgCustomIncludes/UploadWizardCustom.php" );
The included file can be found at UploadWizard. |
| UserFunctions | Programming: variables | adds user-specific variables | (not used in WA at the moment, but potentially useful for the UI) | $wgUFAllowedNamespaces[NS_HELP] = true;
$wgUFEnabledPersonalDataFunctions = [
'nickname',
];
|
| UserMerge | Administration | adds Special:UserMerge (Spezial:Benutzerkonten_vereinigen) | deletion of spam accounts (via Benutzer:Spam), deletion of user accounts on request (via Benutzer:Anonym), and the merging of user accounts if the user can prove that both belong to them | $wgGroupPermissions['bureaucrat']['usermerge'] = true;
$wgUserMergeProtectedGroups = [ 'sysop' ]; #optional - default is 'sysop'
|
| VoteNY | Programming: parser tag | enables rating a page | (not used in WA at the moment, but potentially could supplant Wiki Aventurica:Bewertung) | |
| Widgets | Programming: parser function | enables creation and embedding of widgets | (not used in WA at the moment, but potentially useful, see Kategorie:Widget) |
Extensions not installed at WA
The following extensions are popular, but were intentionally not installed at Wiki Aventurica.
| Extension | Reasoning |
|---|---|
| GoogleCustomWikiSearch |
|
| CrawlerProtection |
|