$this->msg( 'pageinfo-length' ), $lang->formatNum( $title->getLength() )
];
+ // Page namespace
+ $pageNamespace = $title->getNsText();
+ if ( $pageNamespace ) {
+ $pageInfo['header-basic'][] = [ $this->msg( 'pageinfo-namespace' ), $pageNamespace ];
+ }
+
// Page ID (number not localised, as it's a database ID)
$pageInfo['header-basic'][] = [ $this->msg( 'pageinfo-article-id' ), $id ];
"pageinfo-display-title": "Display title",
"pageinfo-default-sort": "Default sort key",
"pageinfo-length": "Page length (in bytes)",
+ "pageinfo-namespace": "Namespace",
"pageinfo-article-id": "Page ID",
"pageinfo-language": "Page content language",
"pageinfo-language-change": "change",
"pageinfo-display-title": "The title that is displayed when the page is viewed.",
"pageinfo-default-sort": "The key by which the page is sorted in categories by default.",
"pageinfo-length": "The length of the page, in bytes.",
+ "pageinfo-namespace": "The name of the namespace of the page.",
"pageinfo-article-id": "The numeric identifier of the page.\n{{Identical|Page ID}}",
"pageinfo-language": "Language in which the page content is written.",
"pageinfo-language-change": "Link text for a link to Special:PageLanguage. The link will be wrapped in parenthesis.\n{{Identical|Change}}",