Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
lc.php File Reference

Go to the source code of this file.

Functions

 wfAddNamespace ( $id, $name, $constant=null)
 Helper function for adding namespace for message groups.
 

Detailed Description

Author
Niklas Laxström @license GPL-2.0-or-later

Definition in file lc.php.

Function Documentation

◆ wfAddNamespace()

wfAddNamespace ( $id,
$name,
$constant = null )

Helper function for adding namespace for message groups.

It defines constants for the namespace (and talk namespace) and sets up restrictions and some other configuration.

Parameters
int$idNamespace number
string$nameName of the namespace
string | null$constant(optional) name of namespace constant, defaults to NS_ followed by upper case version of $name, e.g., NS_MEDIAWIKI

Definition at line 19 of file lc.php.