Jump to content

Handbuch:$wgArticleCountMethod

From mediawiki.org
This page is a translated version of the page Manual:$wgArticleCountMethod and the translation is 41% complete.
Outdated translations are marked like this.
Statistik und Inhaltsanalyse: $wgArticleCountMethod
Method used to determine if a page in a content namespace should be counted as a valid content page (article).
Eingeführt in Version:1.18.0 (r88113)
Entfernt in Version:Weiterhin vorhanden
Erlaubte Werte:(Zeichenkette) oder null
Standardwert:'link' (1.24+)
null (1.18-1.23)

Details

Method used to determine if a page in a content namespace should be counted as a valid content page (article).

Redirect pages will never be counted as valid content pages (articles).

Diese Variable kann die folgenden Werte haben:

  • 'link' - Die Seite muss einen Wikilink enthalten, um als gültig betrachtet zu werden.
  • 'comma' - Die Seite muss ein Komma enthalten, um als gültig betrachtet zu werden. Diese Methode wurde in MediaWiki 1.31 entfernt. It is now equivalent to 'any'.
  • 'any' - all pages (that are not redirects) are considered as valid articles
  • Any other value will have the same result as 'any'.

The "wikilink" alluded to above must be an "internal-style" link formed by using [[double brackets]] wiki markup (the link may be provided by transclusion and need not point to an existing page). Such links create entries in the pagelinks table, which is what actually gets checked to determine whether a page contains wikilinks.

Other types of links, including "external" links (formed with [single brackets]), interwiki links (to pages on other wikis), category links (which place pages into categories), and file links (which display files) do not count when using the 'link' method.

Changing this variable will not retroactively affect the existing count. To update it, you will need to run the maintenance/updateArticleCount.php script.

Siehe auch