Jump to content

Template:Preloaddraft/doc

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Evolution and evolvability (talk | contribs) at 10:22, 26 January 2016 (Current draft templates: ce). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Usage

This template is for creating a draft with preloaded text defined at some other page. It may be useful for redlink lists for editathons which often have a high proportion of inexperienced editors creating new pages (see example in action at WP:Meetup/SCAR_2016#To_create). Having an appropriate skeleton draft text preloaded onto the new page can help make formatting easier.

{{preloaddraft
|1 = Draft page to create
|2 = Subpage with text to be preloaded (should be subpage of Template:preloaddraft/...)
}}

Any time the formal parameter $1 appears in the text of page with text to be preloaded, it is replaced with name of the draft to create.

Examples

If the page already exists

{{preloaddraft|Example|draft_template_example}} simply links to that page "Example" (Example )

If a draft for the page already exists

{{preloaddraft|Exampledraft|draft_template_example}} will link to the existing "Draft:Exampledraft" page (Draft:Exampledraft )

If a draft for the page doesn't yet exist

{{preloaddraft|Alex Redlink|draft_template_example}} will create the page "Draft:Alex_Redlink" with preloaded text from "Template:Preloaddraft/draft_template_example" (Alex Redlink ). Any time the formal parameter $1 appears in the text of the preloaded text (Template:Preloaddraft/draft_template_example), it is replaced with the name of the draft page ("Alex Redlink"). Articles are added to Category:Created via preloaddraft to track them.

If page is "INSERT NAME HERE"

{{preloaddraft|INSERT NAME HERE|draft_template_example}} will not include anything ( ) so that the template wikimarkup can be included invisibly at the bottom of lists.

Current draft templates

See also

mw:Manual:Creating pages with preloaded text