Template:Preload only/doc

Purpose
This template is to be used in template documentation to indicate that the documented template is designed for page preloading and thus it should not be transcluded.

It displays two message boxes – one is a warning about not transcluding the template, and the other one contains a form to preload a given (new) page with the content of the documented template. This template also places the template page into the Preload templates category.

Usage
This template should be placed at the top of the documentation page of the template – after Documentation subpage, if any, but before the first sentence of the documentation.

Blank template
To use this template, you can copy and paste the following code to the documentation page you want to use it on, and fill in the parameter.

Anonymous parameters
Anonymous parameters of this template are used as flags which alter the default behavior of the template (see Usage). This means that each anonymous parameter (without name and equals sign before the value) can be one of the fixed values detailed in the below table.

All flags are optional and they can be written in any order. They can also be mixed with named parameters (unless stated otherwise).

Note that only the first anonymous parameter is checked for flags.

Regular example
To understand how does the form in the second message box work, type the name of an nonexistent page in the text field and press the "Preload page" button. Your browser will display the edit form to create that page and it will be preloaded with the source code of Template:Preload only (because this is the page where the Preload only tag is).

Result:

Edit intro example
See the previous example for more information about how examples work.

In this example, the difference is that the content of Template:Preload only/doc/editintro will be displayed above the edit form (instead of MediaWiki:Newarticletext).

Result:

Demonstration example
The following template can be used in a page which is actually not a preload template.

Result: