Jump to content

Template:Preload/doc

From Wikipedia, the free encyclopedia

Usage

[edit]
{{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|color=color|link|text|preload|parameter 1|parameter 2|etc.}}; do not use {{preload|color=color|link=link|text=text|preload=preload|4=parameter 1|5=parameter 2|6=etc.}} – the latter will not work.

See also

[edit]