Template:Preload

Revision as of 01:23, 29 August 2026 by Wikipedia>BrandonXLF (Use Module:For params to support variadic preload parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Preload/doc" to edit its documentation if it is available. (How does this work?)

Usage

{{Preload
	| link = 
	| text = 
	| preload =
	| color =
    | summary =
}}

or

{{Preload
	| color = <!-- color goes here -->
	| <!-- link goes here -->
	| <!-- text goes here -->
	| <!-- preload page goes here -->
	| <!-- [preload parameter 1] -->
	| <!-- [preload parameter 2] -->
	| <!-- [...] -->
	| <!-- [preload parameter N] -->
}}

Use this template to provide a link to an automatically preloaded specific page. The first parameter is the only required one, and is the title of the page you want to create. You must provide the full name of the target page, including namespace. The second input allows you to customize what text the link displays. If a third parameter is provided, the target page will contain the contents of that third parameter (again, full title including namespace is required). The color parameter allows you to customize the color of the link, e.g. to create a redlink. If the page already exists, a regular link is created. Thus,

{{Preload|1=Sandbox/preloadtest|2=This is a test|3=Template:Preload/example}}

Produces:

This is a test

It is also possible to use parameters while preloading models. Every sequential argument after the third one will be added to the preload URL as &preloadparams[]=. And thus,

{{Preload|Sandbox/preloadtest|This is a test|Template:Preload/example|foo|bar}}

Produces:

This is a test

Information Note: When using preload parameters you must use unnamed parameters except |color= or |summary=. Use {{preload}}; do not use {{preload|color=color|link=link|text=text|preload=preload|4=parameter 1|5=parameter 2|etc.}} – the latter will not work.

See also