User:Church of emacs/Manual:$wgShowPageOnRedlink
From MediaWiki.org
| Site customization: Church of emacs | |
|---|---|
| View page instead of edit interface when visiting a red link |
|
| Introduced in version: | 1.16.0 (r56730) |
| Removed in version: | still in use |
| Allowed values: | boolean or array |
| Default value: | false |
Other settings: Alphabetical | By Function
View page instead of edit interface when visiting a red link. There are three ways to define this variable:
- Set $wgShowPageOnRedlink to true (false is default)
- Set $wgShowPageOnRedlink['usergroup'] to false. If a user is member of at least one usergroup for which the variable has been set to false, the edit interface will be shown. Otherwise the page is shown.
- Set $wgShowPageOnRedlink['usergroup'][NS_XY] to false. Same as 2., but you can specify the namespace. The namespace is a numerical value (namespace index), you can use constants such as NS_MAIN or NS_USER_TALK.
If you use an array (2. or 3.), the default will be true (for 1. it's false). In 2. and 3. there is no way to overwrite a value 'false' once it has already been set (this is due to the undefined order of usergroups).
[edit] Examples
Anonymous user should be shown the page, not the edit interface:
-
$wgShowPageOnRedlink['user'] = false;
For all users, in the main namespace, the page should be shown, not the edit interface:
-
$wgShowPageOnRedlink['*'][NS_MAIN] = false;
| Language: | English |
|---|