Erweiterung:MsInsert

From mediawiki.org
This page is a translated version of the page Extension:MsInsert and the translation is 57% complete.
MediaWiki-Erweiterungen
MsInsert
Freigabestatus: stabil
Einbindung Benutzer-Schnittstelle
Beschreibung Fügt ein Dropdown-Menü hinzu, um den Inhalt bestimmter Seiten in den Editor einzufügen
Autor(en) Martin Schwindl, Martin Keyler
Betreuer Sophivorus
Letzte Version 3.2 (2020-04-16)
MediaWiki 1.21+
PHP 5.3+
Lizenz GNU General Public License 2.0 oder neuer
Herunterladen
  • $wgTemplates
Quarterly downloads 6 (Ranked 141st)
Übersetze die MsInsert-Erweiterung, wenn sie auf translatewiki.net verfügbar ist

The MsInsert extension adds a dropdown menu to the editor (both the Erweiterung:WikiEditor and the regular editor) that allows you to insert into the wikitext the content of any wiki page listed in the dropdown menu.

Die Wikiseiten werden aus LocalSettings.php in das Dropdown-Menü eingefügt.

Installation

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens MsInsert im Ordner extensions/ ablegen.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MsInsert
  • Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
    wfLoadExtension( 'MsInsert' );
    
  • Yes Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.

Konfiguration

To add a page to the dropdown menu, add it to the $wgTemplates array in your LocalSettings.php, like so:

$wgTemplates = [ 'Template:Test', 'Main Page', 'Talk:Main Page' ];

Oder alternativ:

$wgTemplates[] = 'Template:Test';
$wgTemplates[] = 'Main Page';
$wgTemplates[] = 'Talk:Main Page';

If the page does not exist yet, then it will not be added to the dropdown menu, even if it's listed in the $wgTemplates array. By default, the array is empty.

Verwendung

Once a page has been added to the $wgTemplates, it will appear listed in the dropdown menu whenever you edit a page. By selecting it in the dropdown menu, the extension will fetch its contents and insert them into the wikitext, wherever you had the cursor.

Siehe auch