Podręcznik:$wgSpecialPages

This page is a translated version of the page Manual:$wgSpecialPages and the translation is 29% complete.
Other languages:
English • ‎français • ‎magyar • ‎polski • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語
Rozszerzenia: $wgSpecialPages
A list of custom special pages.
Wprowadzono w wersji:1.7.0 (r15031)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:see below
Domyślna wartość:[]

Szczegóły

$wgSpecialPages stores a list of custom special pages defined for a MediaWiki installation. The array is keyed by a non-localized id for the special page. The value assigned to each key is an ObjectFactory specifier (MediaWiki 1.34+), or one of the following:

  • łańcuch: a string containing the name of a subclass of SpecialPage .
  • tablica: an array where the first element is the name of the subclass and all remaining elements are parameters that should be passed to the constructor of that subclass. (This format was deprecated in MW 1.18 and is no longer recognized as of MW 1.32.)
  • callback: since MW 1.24, Gerrit change 152755 expected to return a SpecialPage instance. Useful for full control over the special page's construction parameters.
  • an actual SpecialPage object. (przestarzałe od 1.34)

Aby uzyskać więcej informacji zobacz SpecialPage.php