메뉴얼:$wgContentNamespaces

This page is a translated version of the page Manual:$wgContentNamespaces and the translation is 72% complete.
Namespaces: $wgContentNamespaces
Namespaces which are considered to contain real content, or articles
이 변수가 소개된 버전:1.7.0 (r14738)
이 변수가 사라진 버전:계속해서 쓰이고 있음
허용값:(이름공간 인덱스 배열)
기본값:[ NS_MAIN ]

설명

$wgContentNamespaces커스텀 이름공간을 다음 기능을 위한 유용한 콘텐츠를 포함하는 것으로 인식될 수 있도록 합니다:

Extension:Popups, Special:Random, Special:Statistics, Special:AncientPages, Special:DeadendPages, Special:FewestRevisions, Special:LonelyPages, Special:MostCategories, Special:MostInterwikis, Special:RandomPage, Special:ShortPages, Special:LongPages, Special:UncategorizedPages, Special:WithoutInterwiki, {{NUMBEROFARTICLES}}, Notifications[1]

또한 랜덤 페이지와 위키의 문서 수를 집계하는데에 포함되는 문서들의 범위를 지정하는데에 유용합니다. 또한 __NOINDEX__나 __NOFOLLOW__ 같은 매직워드가 커스텀 이름공간에서 작동하지 않도록 하는 $wgExemptFromUserRobotsControl 의 기본 값을 설정합니다.

기본 네임스페이스는 인덱스에서 참조하는 이 배열의 다른 네임스페이스와 마찬가지로 콘텐츠 네임스페이스로 간주됩니다.

예시:

$wgContentNamespaces = [ 0, 12, 112 ];

또는

$wgContentNamespaces = [ NS_MAIN, NS_HELP, NS_PROJECT, NS_CUSTOMNAMESPACE ];
이 변수를 변경했다면 Special:Statistics과 {{NUMBEROFARTICLES}}을 업데이트 하기 위해서 updateArticleCount.php 을 실행시켜야 합니다.

이는 완전일치 검색 엔진이 기본적으로 검색하는 이름공간을 조정하지는 않습니다. $wgNamespacesToBeSearchedDefault 을 이용해서 독립적으로 설정해야 합니다.

The set of content namespaces for a wiki can be retrieved via the siteinfo API endpoint, e.g. action=query&meta=siteinfo&siprop=namespaces, and filter for namespaces with "content": true.

같이 보기

  1. Page link notifications work for content namespace pages