Extension:NumberOfWikis

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
NumberOfWikis

Release status:Extension status stable

ImplementationTemplate:Extension#type Variable
DescriptionTemplate:Extension#description Adds {{NUMBEROFWIKIS}} magic word to show the number of wikis on ShoutWiki
Author(s)Template:Extension#username Jack Phoenix
Latest versionTemplate:Extension#version 0.2
LicenseTemplate:Extension#license Public domain
Download
ExampleTemplate:Extension#example ShoutWiki
Hooks usedTemplate:Extension#hook
MagicWordwgVariableIDsManual:Hooks/MagicWordwgVariableIDs
ParserGetVariableValueSwitchManual:Hooks/ParserGetVariableValueSwitch

Translate the NumberOfWikis extension if it is available at translatewiki.net

Check usage and version matrix.

NumberOfWikis extension adds a new magic word, NUMBEROFWIKIS, to show the number of wikis on ShoutWiki. The extension fetches the amount of wikis from the wiki_list database table, excluding all deleted wikis. This value is cached for a day.

This extension is currently very ShoutWiki-specific.

If Extension:CentralAuth is enabled this extension does not need to be enabled as the magic world is already defined by CentralAuth. This is also the case for Extension:SiteMatrix.

Installation[edit]

  • Download and place the file(s) in a directory called NumberOfWikis in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'NumberOfWikis' );
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.