A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Help:Extension:TemplateWizard below:

Help:Extension:TemplateWizard - MediaWiki

What is TemplateWizard?

TemplateWizard is a MediaWiki extension that provides a popup window for the WikiEditor toolbar to insert templates into Wikitext .

How do I use TemplateWizard?

How do I find a template?

How do I add data for my chosen template?

Using TemplateWizard with TemplateData

There are seven different types of field used in TemplateWizard, based on the parameter type defined in the TemplateData.

Name[fn 1] Type[fn 2] Field used Notes 1. Number number NumberInputWidget 2. Date date DateInputWidget 3. User wiki-user-name UserInputWidget 4. Page wiki-page-name TitleInputWidget For any page name (including files). 5. File wiki-file-name TitleInputWidget Limited to titles in the File namespace, and displayed with thumbnail images. 6. Template wiki-template-name TitleInputWidget Limited to titles in the Template namespace. 7. Anything else TextInputWidget All other types will be displayed as standard text-entry inputs, and will accept any text.
  1. The name as used in the TemplateData form.
  2. The type as used in the TemplateData JSON.

TemplateData itself supports more field types than are listed above. Some of these may be added in T200664.

Using TemplateWizard without TemplateData

If a template does not have any TemplateData, then an attempt will be made to guess the names of its parameters, and these will be presented as standard text entry form fields with labels as they are guessed.

Note that it is likely that there will be duplicated, deprecated, or missing parameters in this list, because template authors will do things such as the following to allow different forms of a parameter name: {{{full name|{{{Full Name}}}}}} (note the difference in letter case). It is common for there to be a prefered form for a parameter, and this can only be found by viewing the template documentation (and, while you're there, maybe adding TemplateData, so other people aren't confused in the future!).

How do I insert the template?

When you've added all desired parameters to the template form and given them their values (including no value at all if you need an empty parameter), click the 'Submit' button at the top right of the dialog window and the template wikitext will be inserted at the cursor's current location in the main page editing box.

Template text will be inserted according to the format defined in TemplateData; if none is given then the 'inline' format will be used. It is not possible to have a different custom format for one template (but of course the template wikitext can always be edited after insertion).

See also


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4