Help:Preloaded template

From Pikmin Fanon
Pikilogo.png
This is one of Pikmin Fanon's help pages and is meant to aid users by improving their ability to positively contribute to the wiki. Expanding pages such as this with additional information is always welcome.
Pikilogo.png

Preloaded templates allow the edit box of a newly created page to contain some pre-written text. This can provide instructions and information, or basic page structure, or a set of template parameters to fill in. This may be easier for new users to understand than an empty edit box, and can help them create pages that meet the wiki's style guidelines.


Using preloaded templates with an article creation box

Preloaded templates are usually used with the "article creation" version of an inputbox. (They can also be used with the "comment" version.)

Type this: To make this:
 <createbox>
  preload=Template:New_page
 editintro=Template:Welcome
 width=25
 </createbox>
<createbox>
 preload=Template:Newpage
editintro=Template:Welcome
width=25
</createbox>

Preloaded text: preload=pagename
The text of the page titled pagename will be preloaded into the blank editbox when a new page is created.

Example: By specifying "preload=Template:Newpage", the content of "Template:Newpage" will be loaded into the edit box for the new article.

Edit introduction: editintro=pagename
The text of the page titled pagename will be added, as instructions, before the submission form for new pages. It is displayed instead of the text of MediaWiki:Newarticletext

Example: By specifying "editintro=Template:Welcome", the content of Template:Welcome will be shown above the article.

Article creation links

You can also create links that make use of the preload and editintro parameters without inserting the inputbox itself onto a page.

For example, https://pikminfanon.com/w/index.php?title=Test_Page&preload=Template:Wikipedia&action=edit will open a new page at "Test Page" and preload it with the text from the "[[Template:Wikipedia]]" page. (Note this is the direct template text, not a transcluded copy).

You can also open a new page for editing with a custom message at the top. For example, https://pikminfanon.com/w/index.php?title=Test_Page&editintro=MediaWiki:Copyrightwarning&action=edit will load a blank page, with the MediaWiki:Copyrightwarning displayed above the empty editing box.

You can combine these two, to give a page that opens with the "MediaWiki:Copyrightwarning" message at the top, and the content of "[[Template:Wikipedia]]" loaded into the edit box. See https://pikminfanon.com/w/index.php?title=Test_Page&preload=Template:Wikipedia&editintro=MediaWiki:Copyrightwarning&action=edit.