PreloadTemplates

PreloadTemplates allows users to insert a premade syntax from a list of selectable templates directly within the source editor.

Configuration
The script can be used as it is, but it does also support these customizable variables that can be added before the import on Common.js. Common.js will run before MediaWiki:ImportJS.

Use
To use the tool, you have to create the required pages:
 * (or whatever you set as your template list).
 * You will add here the list of the templates you want to preload from the editor. Everything in an wikitext bulleted list (the list made by ) will be treated as a template name. Everything else will be treated as normal text.
 * For each template you listed, you have to create the subpage  (or whatever you set as your subpage).
 * Here you will add the text that you want to be preloaded as it is when the template is selected.

Both kind of pages support the use of  and   tags.

Example
Using the default configuration and taking a look at the example shown in the we have: Generic templates:
 * On   the code
 * Template 1
 * Template 2
 * Template 3

Other templates:
 * Template 4
 * Template 5
 * Template 6

With this code, clicking on any of the template listed there will add the text stored on the subpage, for example.


 * On  if we use

When the template will be preloaded only the following code will be added to the editor:

Localization
To add other languages, provide the translations for these strings:

Note: if you need to use the character  escape it like this. Don't change/remove.