Template:Preload

From Yugipedia
Jump to: navigation, search

Template:Preload

Template documentation[view] [edit] [history] [purge]

{{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[edit]

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 template
  • title (for section links only) - allows to prefill the section header box
  • summary (for full page links only) - allows to prefill the edit summary box
  • created (for full page links only) - allows to add content after the link, if the linked page exists
  • redlink (for full page links only) - allows to add content after the link, if the linked page does not exist