Podręcznik:$wgLocalInterwikis

This page is a translated version of the page Manual:$wgLocalInterwikis and the translation is 20% complete.
Outdated translations are marked like this.
Other languages:
English • ‎español • ‎magyar • ‎polski • ‎português do Brasil • ‎日本語
Interwiki: $wgLocalInterwikis
Array of interwiki prefixes for this wiki.
Wprowadzono w wersji:1.23.0 (git #6cbdf65b)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(array of strings)
Domyślna wartość:[]

Szczegóły

Array for multiple $wgLocalInterwiki values, in case there are several interwiki prefixes that point to the current wiki. If $wgLocalInterwiki is set, its value is prepended to this array, for backwards compatibility (until MW 1.34.x).

Recent changes feeds use only the first entry in this array (or $wgLocalInterwiki, if it is set). Zobacz $wgRCFeeds .

Example

The setting to this configuration parameter for a wiki at <test.example.org> which is being liked to with the interwiki prefixes 'test', 'foo' and 'bar':

$wgLocalInterwikis = [
	'test',
	'foo',
	'bar'
];

In case only 'test' is used as an interwiki prefix:

$wgLocalInterwikis = [
	'test'
];