• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Preload

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Params (sandbox)

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|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

  • {{preloaddraft}}
The above documentation is transcluded from Template:Preload/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Preload&oldid=1262540506"
Last edited on 11 December 2024, at 23:11

Languages

    • العربية
    • تۆرکجه
    • বাংলা
    • Dansk
    • فارسی
    • Bahasa Indonesia
    • Italiano
    • Kurdî
    • Latina
    • Nederlands
    • ଓଡ଼ିଆ
    • Português
    • سنڌي
    • کوردی
    • Tarandíne
    • တႆး
    • తెలుగు
    • ไทย
    • Türkçe
    • Tiếng Việt
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 11 December 2024, at 23:11 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop