Extension:TemplateWizard

From Linux Web Expert

Revision as of 13:52, 31 January 2024 by imported>K6ka (Undid edits by 114.142.172.27 (talk) to last version by Shirayuki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki extensions manual
TemplateWizard
Release status: stable
File:TemplateWizard help template en.png
Implementation User interface
Description Adds a popup dialog box for adding template code to wikitext.
Author(s) samwilsontalk
Latest version 0.1.0
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki >= 1.42
Database changes No
License MIT License
Download
README
Help Help:Extension:TemplateWizard
Example Available on Wikimedia wikis (including this one).
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the TemplateWizard extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The TemplateWizard extension adds a popup dialog box for adding template code to wikitext. End-user help for this extension is located at Help:Extension:TemplateWizard .

Installation

  • First install the TemplateData and WikiEditor extensions, and optionally CirrusSearch .
  • <translate> [[<tvar name=2>Special:ExtensionDistributor/TemplateWizard</tvar>|Download]] and move the extracted <tvar name=name>TemplateWizard</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateWizard
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'TemplateWizard' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Usage notes

TemplateWizard provides a visual dialog that helps editors insert templates in a guided manner. In order to do that, it uses the TemplateData information that can be provided with templates. It does work with templates that do not have TemplateData, but provides a much better experience if TemplateData is used. For this reason, it's a good idea to make sure your templates provide TemplateData. For more information on how to add TemplateData to your templates, please see this guide.

If the Extension:CirrusSearch is installed, then the template search form will display improved search results. Without that extension, template search is done as an exact prefix search on the template title.

See also