Template:Preload
Jump to navigation
Jump to search
{{Preload}} is a linking template that links to a page if it exists, and generates a link to create the page with a specified preload template if it doesn't exist.
Usage
Basic usage is to just pass in a link and the full page name for a preload template: {{Preload|Example link|preload=Template:Example preload}}
generates Example link.
For a section link, add section=1
or section=new
: {{Preload|Example link|preload=Template:Example preload|section=1}}
generates Example link.
In addition to these, parameters for several more advanced features are supported:
text
- customizes the displayed text for the link (defaults to the link name)param
- allows to pass a custom parameter to the preload templatetitle
(for section links only) - allows to prefill the section header boxsummary
(for full page links only) - allows to prefill the edit summary boxcreated
(for full page links only) - allows to add content after the link, if the linked page existsredlink
(for full page links only) - allows to add content after the link, if the linked page does not exist