Extension:TestLanguageNameGrammar

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
TestLanguageNameGrammar
Release status: experimental
Implementation Special page
Description A special page that shows all language names transformed using a given {{GRAMMAR}} form
Author(s) Amir E. Aharoni (Amire80talk)
Latest version 20150704WeThePeople (2015-07-04)
MediaWiki 1.26+
Database changes No
License GNU General Public License 2.0 or later
Download
Translate the TestLanguageNameGrammar extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

TestLanguageNameGrammar is a very simple extension that shows a special page, Special:TestLanguageNameGrammar, which ask the user for a language and a {{GRAMMAR}} form and shows a list of all known language names transformed using this {{GRAMMAR}} form.

Installation[edit]

The extension can be retrieved directly from Git [?]:

  • Browse code
  • Some extensions have tags for stable releases.
  • Each branch is associated with a past MediaWiki release. There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).

Extract the snapshot and place it in the extensions/TestLanguageNameGrammar/ directory of your MediaWiki installation.

If you are familiar with git and have shell access to your server, you can also obtain the extension as follows:

cd extensions/
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/TestLanguageNameGrammar.git
  • Download and place the file(s) in a directory called TestLanguageNameGrammar in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'TestLanguageNameGrammar' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'TestLanguageNameGrammar' );, you need to use:

require_once "$IP/extensions/TestLanguageNameGrammar/TestLanguageNameGrammar.php";