Extension:TestLanguageNameGrammar

From Linux Web Expert

Revision as of 12:26, 27 December 2020 by imported>Baris6161TURK
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki extensions manual
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
Composer mediawiki/test-language-name-grammar
License GNU General Public License 2.0 or later
Download
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the TestLanguageNameGrammar extension if it is available at translatewiki.net
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

<translate> The extension can be retrieved directly from Git</translate> [?]:

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

<translate> Extract the snapshot and place it in the <tvar name=name>extensions/TestLanguageNameGrammar/</tvar> 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: </translate>

cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TestLanguageNameGrammar.git

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/TestLanguageNameGrammar</tvar>|Download]] and move the extracted <tvar name=name>TestLanguageNameGrammar</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TestLanguageNameGrammar
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'TestLanguageNameGrammar' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>