Sitenotice.png last updated on 15 March 2011

Welcome to Pikmin Fanon!

  • If you are a new user, please visit our Community Guide so you can get started right away, and if you need extended help, ask your fellow users!
  • If you are an older user, get ready for some big changes coming your way! Read for more details.

Help:Preloaded template

From Pikmin Fanon
Jump to: navigation, search
Pikilogo.png This is one of Pikmin Fanon's help pages, and it is meant to aide users by increasing their ability to positively contribute to the wiki. Additional information added to help pages such as this one 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[edit]

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

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

For example, http://www.pikminfanon.com/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, http://www.pikminfanon.com/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 http://www.pikminfanon.com/index.php?title=Test_Page&preload=Template:Wikipedia&editintro=MediaWiki:Copyrightwarning&action=edit.