Manual:ListVariants.php
MediaWiki version: | ≥ 1.24 |
MediaWiki file: listVariants.php | |
---|---|
Location: | maintenance/language/ |
Source code: | master • 1.43.1 • 1.42.6 • 1.39.12 |
Classes: | ListVariants |
Details
listVariants.php file is a maintenance script that lists all language variants.
Options/Arguments
Argument | Description | Required? |
---|---|---|
--flat | Output variants in a flat list | Optional |
--json | Output variants as JSON | Optional |
Usage
php maintenance/run.php language/listVariants [ --flat| --json ]
Terminal
{{#parsoid\0fragment:0}}
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.