Manual:MWNamespace.php/zh

MWNamespace.php包含MWNamespace类，仅包含一个用于处理命名空间的静态函数的实用类，编码了基于索引的所有命名空间的“魔法”行为.

方法

 * : Returns array of all defined namespaces with their canonical (English) names.
 * : Returns the canonical (English) name for a given index
 * : Returns an array of the namespaces (by integer id) that exist on the wiki. Used primarily by the api in help documentation. This function calls  without using the rebuild option and it then excludes the negative number namespaces, e.g. -1 (special page).