Template:Draft: Difference between revisions
Jump to navigation
Jump to search
Dat Hack3r (talk | contribs) Now substitutes parameters into {{Draft header}}. |
Dat Hack3r (talk | contribs) Now only substitutes the comment if the draft is of an article creation. |
||
| Line 1: | Line 1: | ||
{{Draft header{{<includeonly>safesubst:</includeonly>#ifexist:{{PAGENAME}}|{{<includeonly>safesubst:</includeonly>!}}creation{{<includeonly>safesubst:</includeonly>=}}no{{<includeonly>safesubst:</includeonly>!}}created{{<includeonly>safesubst:</includeonly>=}}{{<includeonly>safesubst:</includeonly>#time:H:i, j xg Y (e)}} | {{Draft header{{<includeonly>safesubst:</includeonly>#ifexist:{{PAGENAME}}|{{<includeonly>safesubst:</includeonly>!}}creation{{<includeonly>safesubst:</includeonly>=}}no{{<includeonly>safesubst:</includeonly>!}}created{{<includeonly>safesubst:</includeonly>=}}{{<includeonly>safesubst:</includeonly>#time:H:i, j xg Y (e)}}{{<includeonly>safesubst:</includeonly>))}}<!-- | ||
To publish this draft: | To publish this draft: | ||
1. Ensure the draft is up-to-date with the main article. | 1. Ensure the draft is up-to-date with the main article. | ||
| Line 5: | Line 5: | ||
3. Paste them into the corresponding article in the article namespace. | 3. Paste them into the corresponding article in the article namespace. | ||
The contents of this draft begin below this line. --><noinclude> | The contents of this draft begin below this line. -->|{{<includeonly>safesubst:</includeonly>))}}}}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 14:28, 9 December 2024
{{Draft header}}
Always substitute this template. To use this template, include the following wikitext in an article: {{subst:Draft}}. After saving, the template's content will permanently replace the template call, and you can edit it as needed. |
{{Draft}} is a convenience wrapper for {{Draft header}}, intended for use at the top of pages in the Draft: namespace. When used on drafts of existing mainspace articles, it automatically populates the |created= parameter of {{Draft header}} with the current timestamp and adds a comment explaining how to merge the draft into the mainspace article. If no corresponding mainspace article exists, {{Draft}} simply inserts {{Draft header}} without adding a comment.
{{subst:Draft}}(in Draft:Main Page) →{{Draft header|created=09:42, 16 February 2026 (UTC)}}<!-- To publish this draft: 1. Ensure the draft is up-to-date with the main article. 2. Copy the contents of this draft. 3. Paste them into the corresponding article in the article namespace. The contents of this draft begin below this line. -->
{{subst:Draft}}(in Draft:Example) →{{Draft header}}
TemplateData
This template inserts {{Draft header}} on draft pages, automatically adding a creation timestamp and merge guidance when a corresponding mainspace article exists.
| Parameter | Description | Type | Status | |||
|---|---|---|---|---|---|---|
| No parameters specified | ||||||