Extension:TemplateSandbox/de

Dies ist die technische Dokumentation der Erweiterung. Es gibt auch eine Benutzer-Dokumentation.
Category:GPL licensed extensions/de
MediaWiki-Erweiterungen
TemplateSandbox
Freigabestatus: stabilCategory:Stable extensions/de
Einbindung Spezialseite Category:Special page extensions/de, Seitenaktivität Category:Page action extensions/de
Beschreibung Preview pages using sandboxed templates
Autor(en) Brad Jorsch (AnomieDiskussion)
Letzte Version 1.1.0 (continuous updates)
Kompatibilitätspolitik Snapshots werden zusammen mit MediaWiki veröffentlicht. Der Master ist nicht abwärtskompatibel.
Lizenz GNU General Public License 2.0 oder neuer
Herunterladen Category:Extensions in Wikimedia version control/de
Hilfe Help:Extension:TemplateSandbox/de
  • $wgTemplateSandboxEditNamespaces
Vierteljährliche Downloads 23 (Ranked 89th)
Public wikis using 1,040 (Ranked 233rd)
Übersetze die TemplateSandbox-Erweiterung, wenn sie auf translatewiki.net verfügbar ist
Probleme Offene Aufgaben · Einen Fehler melden
Category:All extensions/de

The TemplateSandbox extension adds the ability to preview a page using sandboxed versions of templates, allowing for easy testing before making the sandbox code live. It also works with Scribunto modules.

Installation

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens TemplateSandbox im Ordner extensions/ ablegen.
    Entwickler und Code-Beitragende sollten stattdessen die Erweiterung von Git installieren, mit:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateSandbox
  • Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
    wfLoadExtension( 'TemplateSandbox' );
    
  • Configure as required.
  • Yes Erledigt – Navigiere zu Special:Version in deinem Wiki, um zu überprüfen, ob die Erweiterung erfolgreich installiert wurde.

Konfiguration

Parameter
  • $wgTemplateSandboxEditNamespaces - Namespaces in which to show the "Preview page with this template" box below the edit form. NS_TEMPLATE by default. Can be expanded to all namespaces by individual users using advancedtemplatesandbox.js.

Verwendung

The extension adds a new special page, Special:TemplateSandbox. To preview a page using sandboxed templates, do the following:

  1. Copy the templates to be tested under a common prefix. For example, you might copy Template:Foo to User:Example/sandbox/Template:Foo. Alternatively, you might create User:Example/sandbox/Template:Foo as a redirect to Template:Foo/sandbox.
  2. Go to Special:TemplateSandbox. Fill in the page or revision to be rendered, and the prefix you chose in step 1. It is possible to specify multiple prefixes (a prefix search path) by separating them using vertical bars, e.g., User:Example/sandbox1|User:Example/sandbox2.
  3. Click View.

The extension also adds a box at the bottom of the edit form for pages in the namespaces configured in $wgTemplateSandboxEditNamespaces. This allows for previewing some other page as it would appear were the template being edited saved with the current contents of the edit form. The box can be forced to appear in the edit form for any page by adding the query parameter wpTemplateSandboxShow to the URL.

Siehe auch

Category:Extensions used on Wikimedia/de#TemplateSandbox/de
Category:APIGetAllowedParams extensions/de Category:All extensions/de Category:AlternateEditPreview extensions/de Category:ApiMakeParserOptions extensions/de Category:EditPage::importFormData extensions/de Category:EditPage::showStandardInputs:options extensions/de Category:Extensions in Wikimedia version control/de Category:Extensions included in Canasta/de Category:Extensions included in Miraheze/de Category:Extensions included in MyWikis/de Category:Extensions included in Telepedia/de Category:Extensions included in WikiForge/de Category:Extensions used on Wikimedia/de Category:GPL licensed extensions/de Category:Page action extensions/de Category:Special page extensions/de Category:Stable extensions/de