Template:Draft header/doc: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
Dat Hack3r (talk | contribs)
Create template documentation
 
Dat Hack3r (talk | contribs)
Fix mistake in first example
 
Line 4: Line 4:
{{Ombox
{{Ombox
| image = [[File:Under_construction_icon-blue.svg|40px|alt=|link=]]
| image = [[File:Under_construction_icon-blue.svg|40px|alt=|link=]]
| text  = '''This is a {{wp|WP:Drafts|draft}}<!-- [[Help:Editing guide#Drafts|draft]] --> of [[Draft:Example]].''' It is a space to store, preview, and collaborate on this work-in-progress article before it is finalized and published to the mainspace as an official article.
| text  = '''This is a {{wp|WP:Drafts|draft}}<!-- [[Help:Editing guide#Drafts|draft]] --> of [[Example]].''' It is a space to store, preview, and collaborate on this work-in-progress article before it is finalized and published to the mainspace as an official article.
----
----
<div style="float:right;">Finished drafting? {{Clickable button|{{fullurl:Special:MovePage|wpOldTitle=Draft:Example&wpNewTitle=Example&wpMovetalk=1&wpReason=Publishing%20draft%20article}}|Publish now|class=mw-ui-progressive}}</div>
<div style="float:right;">Finished drafting? {{Clickable button|{{fullurl:Special:MovePage|wpOldTitle=Draft:Example&wpNewTitle=Example&wpMovetalk=1&wpReason=Publishing%20draft%20article}}|Publish now|class=mw-ui-progressive}}</div>

Latest revision as of 14:42, 30 January 2026

{{Draft header}} is an informational header intended for the top of pages in the Draft: namespace. The header content varies depending on whether or not the draft corresponds to an existing article in the mainspace. Drafts with counterparts are categorized in Category:Drafts of existing articles, while those without are categorized in Category:Drafts under creation.

For drafts of existing articles, |created= can be used to indicate the point in time when the draft was created, diverging from the original article. {{subst:Draft}} can be used as shorthand to automatically populate this parameter with a timestamp and insert a comment outlining instructions for merging the draft back into the original article. For drafts without a corresponding mainspace article, {{subst:Draft}} is identical to {{Draft header}}, as the template call is substituted with {{Draft header}} once saved.

When {{Draft header}} is used outside of the Draft: namespace, it shows an error message in preview and displays nothing once saved.

TemplateData

This template generates an informational header intended for the top of drafts.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Creation datecreated

Indicates when the draft was created, mainly for drafts of existing mainspace articles; helps editors track divergence from the original article

Example
00:00 January 1, 2000
Datesuggested