Extension:ExcludeRandom/de-formal

From mediawiki.org
This page is a translated version of the page Extension:ExcludeRandom and the translation is 18% complete.
MediaWiki extensions manual
ExcludeRandom
Release status: unmaintained
Implementation MyWiki
Description Allows pages to be excluded from Special:Random
Author(s) Matt Russell (ultradude25Diskussion)
Latest version 2.0.0 (2018-09-08)
MediaWiki 1.16+
PHP 5.1+
Database changes No
License BSD 3-clause "Modified" License
Download

  • $wgExcludeRandomPages

The ExcludeRandom extension allows pages to be excluded from Special:Random. For example, this could be useful for hiding in-complete translation pages that have been yet to be moved to their own sub-domain.

Installation

  • Die Download und die Datei(en) in ein Verzeichnis namens ExcludeRandom im Ordner extensions/ ablegen.
  • Folgenden Code am Ende Ihrer LocalSettings.php -Datei hinzufügen:
    wfLoadExtension( 'ExcludeRandom' );
    
  • Yes Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.

Konfiguration

$wgExcludeRandomPages
The list of pages to be excluded, in an array. * wildcard is supported (matches any amount of any characters).

Usage

$wgExcludeRandomPages = [ 'Main Page', '*/fr' ];

This will disallow Main Page and anything/fr from being selected by Special:Random.