Handbuch:Abschnittsbearbeitung
Section editing is the practice of editing a particular section on a page by clicking on the "Bearbeiten" (or "Quelltext bearbeiten") link next to a subheading.
Limitations
The Page Previews will only show the part of the article that might be problematic for the text... Wording or formatting can be more difficult to choose without content before or after the editable section.
Aktivieren und Deaktivieren von Abschnittlinks
Section editing is a default feature of MediaWiki but can be disabled in a number of ways, as is explained below. Disabling is especially useful when a heading is created from within a template: the normal wiki section-edit would in this case edit the template code, which is normally counterintuitive to the user.
Konfiguration
editsection
ist ein Benutzerrecht, welches in deiner LocalSettings.php -Datei verwendet werden kann.
For instance, to hide the section edit links for users who are not logged in, change the value of the $wgLocalSettings.php configuration option:
Bearbeite LocalSettings.php und füge folgende Zeile hinzu:
#disable section edit links for anonymous viewers
$wgDefaultUserOptions ['editsection'] = false;
MediaWiki:Common.css: .mw-editsection { display:none!important; }
editsectiononrightclick
("0" by default) is a user right that allows editors to edit sections by right-clicking on the subheading (JavaScript feature).
Magic word
The Magic word __NOEDITSECTION__ can be used to hide all section edit links on a particular page.
This magic word is transcludable, meaning that it can be embedded in a template in order to disable section editing on all pages where this template is used.
Placing and styling section links
-
Screenshot of the Vector extension's placement and styling of section edit links
-
Screenshot of how Wikipedia currently displays section edit links
-
Screenshot of how Wikia has moved and styled section edit links
CSS
In Vector and other skins, the section link has the following CSS class:
.mw-editsection