MediaWiki
1.34.0
|
Static Public Member Functions | |
static | equals ( $ns1, $ns2) |
Returns whether the specified namespaces are the same namespace. More... | |
static | exists ( $index) |
Returns whether the specified namespace exists. More... | |
static | getAssociated ( $index) |
Get the associated namespace. More... | |
static | getCanonicalIndex ( $name) |
Returns the index for a given canonical name, or NULL The input must be converted to lower case first. More... | |
static | getCanonicalName ( $index) |
Returns the canonical (English) name for a given index. More... | |
static | getCanonicalNamespaces () |
Returns array of all defined namespaces with their canonical (English) names. More... | |
static | getCategoryLinkType ( $index) |
Returns the link type to be used for categories. More... | |
static | getContentNamespaces () |
Get a list of all namespace indices which are considered to contain content. More... | |
static | getNamespaceContentModel ( $index) |
Get the default content model for a namespace This does not mean that all pages in that namespace have the model. More... | |
static | getRestrictionLevels ( $index, User $user=null) |
Determine which restriction levels it makes sense to use in a namespace, optionally filtered by a user's rights. More... | |
static | getSubject ( $index) |
Get the subject namespace index for a given namespace Special namespaces (NS_MEDIA, NS_SPECIAL) are always the subject. More... | |
static | getSubjectNamespaces () |
List all namespace indices which are considered subject, aka not a talk or special namespace. More... | |
static | getTalk ( $index) |
Get the talk namespace index for a given namespace. More... | |
static | getTalkNamespaces () |
List all namespace indices which are considered talks, aka not a subject or special namespace. More... | |
static | getValidNamespaces () |
Returns an array of the namespaces (by integer id) that exist on the wiki. More... | |
static | hasGenderDistinction ( $index) |
Does the namespace (potentially) have different aliases for different genders. More... | |
static | hasSubpages ( $index) |
Does the namespace allow subpages? More... | |
static | hasTalkNamespace ( $index) |
Does this namespace ever have a talk namespace? More... | |
static | isCapitalized ( $index) |
Is the namespace first-letter capitalized? More... | |
static | isContent ( $index) |
Does this namespace contain content, for the purposes of calculating statistics, etc? More... | |
static | isMovable ( $index) |
Can pages in the given namespace be moved? More... | |
static | isNonincludable ( $index) |
It is not possible to use pages from this namespace as template? More... | |
static | isSubject ( $index) |
Is the given namespace is a subject (non-talk) namespace? More... | |
static | isTalk ( $index) |
Is the given namespace a talk namespace? More... | |
static | isWatchable ( $index) |
Can pages in a namespace be watched? More... | |
static | subjectEquals ( $ns1, $ns2) |
Returns whether the specified namespaces share the same subject. More... | |
static | wantSignatures ( $index) |
Might pages in this namespace require the use of the Signature button on the edit toolbar? More... | |
Definition at line 27 of file MWNamespace.php.
|
static |
Returns whether the specified namespaces are the same namespace.
int | $ns1 | The first namespace index |
int | $ns2 | The second namespace index |
Definition at line 118 of file MWNamespace.php.
|
static |
Returns whether the specified namespace exists.
int | $index |
Definition at line 100 of file MWNamespace.php.
Referenced by Scribunto_LuaTitleLibrary\checkNamespace().
|
static |
Get the associated namespace.
For talk namespaces, returns the subject (non-talk) namespace For subject (non-talk) namespaces, returns the talk namespace
int | $index | Namespace index |
Definition at line 88 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
Returns the index for a given canonical name, or NULL The input must be converted to lower case first.
string | $name | Namespace name |
Definition at line 166 of file MWNamespace.php.
|
static |
Returns the canonical (English) name for a given index.
int | $index | Namespace index |
Definition at line 155 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
Returns array of all defined namespaces with their canonical (English) names.
Definition at line 145 of file MWNamespace.php.
Referenced by ReplaceAll\getNamespaces(), and ReplaceAll\listNamespaces().
|
static |
Returns the link type to be used for categories.
This determines which section of a category page titles in the namespace will appear within.
int | $index | Namespace index |
Definition at line 336 of file MWNamespace.php.
|
static |
Get a list of all namespace indices which are considered to contain content.
Definition at line 237 of file MWNamespace.php.
|
static |
Get the default content model for a namespace This does not mean that all pages in that namespace have the model.
int | $index | Index to check |
Definition at line 306 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
Determine which restriction levels it makes sense to use in a namespace, optionally filtered by a user's rights.
Definition at line 320 of file MWNamespace.php.
|
static |
Get the subject namespace index for a given namespace Special namespaces (NS_MEDIA, NS_SPECIAL) are always the subject.
int | $index | Namespace index |
Definition at line 76 of file MWNamespace.php.
Referenced by SpecialReplaceText\namespaceTables(), and Scribunto_LuaSiteLibrary\register().
|
static |
List all namespace indices which are considered subject, aka not a talk or special namespace.
See also MWNamespace::isSubject
Definition at line 247 of file MWNamespace.php.
|
static |
Get the talk namespace index for a given namespace.
int | $index | Namespace index |
Definition at line 65 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
List all namespace indices which are considered talks, aka not a subject or special namespace.
See also MWNamespace::isTalk
Definition at line 257 of file MWNamespace.php.
|
static |
Returns an array of the namespaces (by integer id) that exist on the wiki.
Used primarily by the api in help documentation.
Definition at line 175 of file MWNamespace.php.
|
static |
Does the namespace (potentially) have different aliases for different genders.
Not all languages make a distinction here.
int | $index | Index to check |
Definition at line 279 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
Does the namespace allow subpages?
int | $index | Index to check |
Definition at line 229 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
Does this namespace ever have a talk namespace?
int | $index | Namespace ID |
Definition at line 187 of file MWNamespace.php.
|
static |
Is the namespace first-letter capitalized?
int | $index | Index to check |
Definition at line 267 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
Does this namespace contain content, for the purposes of calculating statistics, etc?
int | $index | Index to check |
Definition at line 198 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
Can pages in the given namespace be moved?
int | $index | Namespace index |
Definition at line 34 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
It is not possible to use pages from this namespace as template?
int | $index | Index to check |
Definition at line 291 of file MWNamespace.php.
Referenced by Scribunto_LuaEngine\expandTemplate(), and Scribunto_LuaSiteLibrary\register().
|
static |
Is the given namespace is a subject (non-talk) namespace?
int | $index | Namespace index |
Definition at line 45 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
Is the given namespace a talk namespace?
int | $index | Namespace index |
Definition at line 55 of file MWNamespace.php.
Referenced by Scribunto_LuaSiteLibrary\register().
|
static |
Can pages in a namespace be watched?
int | $index |
Definition at line 219 of file MWNamespace.php.
|
static |
Returns whether the specified namespaces share the same subject.
eg: NS_USER and NS_USER wil return true, as well NS_USER and NS_USER_TALK will return true.
int | $ns1 | The first namespace index |
int | $ns2 | The second namespace index |
Definition at line 133 of file MWNamespace.php.
|
static |
Might pages in this namespace require the use of the Signature button on the edit toolbar?
int | $index | Index to check |
Definition at line 209 of file MWNamespace.php.