Difference between revisions of "Template:Draft article/doc"

From blackwiki
Jump to navigation Jump to search
imported>Olivierrob
imported>Primefac
(update following move)
 
(71 intermediate revisions by 24 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
<noinclude>{{pp-semi-indef|small=yes}}</noinclude>{{Documentation subpage}}
 
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) -->
 
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) -->
{{Distinguish|Quoi faire sur un lendemain de brosse}}
+
'''Drafts''' are often created to work on future articles before they are ready to be published or otherwise might not yet meet Wikipedia's [[Wikipedia:Notability|notability guidelines]]. These are generally created in the [[Wikipedia:Drafts|"Draft" namespace]] to avoid any possibility that a casual reader may stumble upon them. {{tlx|Draft article}} goes further, prominently tagging the draft article ''as'' a draft, and at the same time provides convenient links to help build the article and facilitate submission to [[WP:AFC]]. This also categorizes the page to [[:Category:Draft articles]] or one of its sub-categories.
  
'''Drafts''' are often created to work on future articles before they are ready to be published or otherwise might not yet meet Wikipedia's [[Wikipedia:Notability|notability guidelines]]. These are generally created in the [[Wikipedia:Drafts|"Draft" namespace]] to avoid any possibility that a casual reader may stumble upon them. <code>{&#123;[[Template:Draft article|{{lcfirst:Draft article}}]]&#125;}</code> goes further, prominently tagging the draft article ''as'' a draft. This also categorizes to [[:Category:Draft articles]].
+
Using {{tlxs|AfC draft|''username''}} will place {{tl|AfC submission/draft}} on the page, which provides even more guidance and begins the Articles for Creation process at the 'draft' stage.
 
 
Using {{tlxs|submit|''username''}} will place {{tl|AFC submission/draft}} on the page, which provides more helpful links and a convenient option to submit the article to the Articles for Creation process.
 
  
 
== Usage ==
 
== Usage ==
 
<!-- Abstract usage of the template -->
 
<!-- Abstract usage of the template -->
{{hatnote|'''Do not use''' this template in '''[[wp:mainspace|main article namespace]]'''.}}
+
Do not use this template in [[wp:mainspace|mainspace]], as it will not display. For article being developed in mainspace, consider {{tl|Under construction}} instead.
 +
 
 +
=== Default output ===
 +
<code><nowiki>{{Draft article}}</nowiki></code> renders as
 +
{{msg:Draft article|demo=yes}}
 +
 
 +
===Minimalist output===
 +
 
 +
<code><nowiki>{{Draft article|brief=yes}}</nowiki></code> renders as
 +
{{msg:Draft article|brief=yes|demo=yes}}
 +
 
 +
===''name'' parameter===
 +
 
 +
<code><nowiki>{{</nowiki>Draft article|''name''|brief=yes}}</code>, where ''name'' is the name of the intended target page for the draft article, will render as
 +
{{msg:Draft article|name|brief=yes|demo=yes}}
 +
Note this will work with the 'default' output as well as with {{para|brief|yes}}.
  
<code>{&#123;Draft article&#125;}</code>
+
===Invite others to join in===
 +
<code><nowiki>{{</nowiki>Draft article|join-in=yes|brief=yes}}</code> will render as
 +
{{msg:Draft article|join-in=yes|brief=yes|demo=yes}}
 +
Note this parameter will work with the 'default' output as well as with {{para|brief|yes}}.
  
<code>{&#123;Draft article|''name''&#125;}</code>
+
===Categorization===
  
The single, positional parameter is the ''name'' of the page that is the intended target of the draft article. '''Do not link''' to an article in this fashion. This parameter is optional and defaults to "into an article".
+
The {{para|subject}} parameter categorizes the article into a sub-category of [[:Category:Draft articles]] as shown below. '''Note''' that if the message box is not desired and ''only'' the category is necessary, use {{para|catonly|yes}}.
  
== Example ==
+
{| {{table}}
{{markup|
+
! <code>subject=</code> !! Category !! Example topics
<pre>{{Draft article|Old Man and the Sea}}</pre>
+
|-
|
+
|<code>agriculture</code><br /><code>food</code><br /><code>drink</code><br /><code>agriculture, food, and drink</code>||[[:Category:Drafts about agriculture, food, and drink]]||Agriculture, food, and drink
{{msg:Draft article|Old Man and the Sea}}
+
|-
}}
+
|<code>art</code><br /><code>architecture</code><br /><code>art and architecture</code>||[[:Category:Drafts about art and architecture]]||Art and architecture
 +
|-
 +
|<code>engineering</code><br /><code>technology</code><br /><code>engineering and technology</code>||[[:Category:Drafts about engineering and technology]]||Engineering and technology · Transport
 +
|-
 +
|<code>geography</code><br /><code>places</code><br /><code>geography and places</code>||[[:Category:Drafts about geography and places]]||Geography · Places
 +
|-
 +
|<code>history</code>||[[:Category:Drafts about history]]||World history&nbsp;· Royalty, nobility, and heraldry
 +
|-
 +
|<code>language</code><br /><code>literature</code><br /><code>language and literature</code>||[[:Category:Drafts about language and literature]]||Language and literature
 +
|-
 +
|<code>math</code><br /><code>mathematics</code>||[[:Category:Drafts about mathematics]]||Mathematics and mathematicians
 +
|-
 +
|<code>media</code><br /><code>drama</code><br /><code>media and drama</code>||[[:Category:Drafts about media and drama]]||Film · Television · Media and drama
 +
|-
 +
|<code>music</code>||[[:Category:Drafts about music]]||Albums · Songs · Other music drafts
 +
|-
 +
|<code>natural sciences</code>||[[:Category:Drafts about natural sciences]]||Biology and medicine · Chemistry and materials science · Earth sciences · Physics and astronomy
 +
|-
 +
|<code>philosophy</code><br /><code>religion</code><br /><code>philosophy and religion</code>||[[:Category:Drafts about philosophy and religion]]||Philosophy and religion
 +
|-
 +
|<code>social sciences</code><br /><code>society</code><br /><code>social sciences and society</code>||[[:Category:Drafts about social sciences and society]]||Culture, sociology, and psychology · Education · Economics and business · Law · Magazines and print journalism · Politics and government
 +
|-
 +
|<code>sports</code><br /><code>recreation</code><br /><code>sports and recreation</code>||[[:Category:Drafts about sports and recreation]]||Sports and recreation
 +
|-
 +
|<code>video games</code>||[[:Category:Drafts about video games]]||Video games
 +
|-
 +
|<code>warfare</code>||[[:Category:Drafts about warfare]]||Warfare
 +
|}
  
 
==See also==
 
==See also==
 
* {{tlx|Link to draft}}
 
* {{tlx|Link to draft}}
 +
* {{tlx|Draft RfC}}
  
 
{{Userspace Disclaimers}}
 
{{Userspace Disclaimers}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! -->
+
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Under-construction templates|{{PAGENAME}}]]
+
[[Category:Talk namespace templates]]<!--When used in "Talk:Articlename/Draft" pages rather than "Draft:Articlename" or "User:Foo/Articlename" cases.-->
 +
[[Category:Under-construction templates]]
 
[[Category:Draft namespace templates|{{PAGENAME}}]]
 
[[Category:Draft namespace templates|{{PAGENAME}}]]
</includeonly>
+
[[Category:Draft articles| template]]
 +
}}</includeonly>

Latest revision as of 19:05, 18 November 2020

Drafts are often created to work on future articles before they are ready to be published or otherwise might not yet meet Wikipedia's notability guidelines. These are generally created in the "Draft" namespace to avoid any possibility that a casual reader may stumble upon them. {{Draft article}} goes further, prominently tagging the draft article as a draft, and at the same time provides convenient links to help build the article and facilitate submission to WP:AFC. This also categorizes the page to Category:Draft articles or one of its sub-categories.

Using {{subst:AfC draft|username}} will place {{AfC submission/draft}} on the page, which provides even more guidance and begins the Articles for Creation process at the 'draft' stage.

Usage

Do not use this template in mainspace, as it will not display. For article being developed in mainspace, consider {{Under construction}} instead.

Default output

{{Draft article}} renders as Template:Namespace detect

Minimalist output

{{Draft article|brief=yes}} renders as Template:Namespace detect

name parameter

{{Draft article|name|brief=yes}}, where name is the name of the intended target page for the draft article, will render as Template:Namespace detect Note this will work with the 'default' output as well as with |brief=yes.

Invite others to join in

{{Draft article|join-in=yes|brief=yes}} will render as Template:Namespace detect Note this parameter will work with the 'default' output as well as with |brief=yes.

Categorization

The |subject= parameter categorizes the article into a sub-category of Category:Draft articles as shown below. Note that if the message box is not desired and only the category is necessary, use |catonly=yes.

subject= Category Example topics
agriculture
food
drink
agriculture, food, and drink
Category:Drafts about agriculture, food, and drink Agriculture, food, and drink
art
architecture
art and architecture
Category:Drafts about art and architecture Art and architecture
engineering
technology
engineering and technology
Category:Drafts about engineering and technology Engineering and technology · Transport
geography
places
geography and places
Category:Drafts about geography and places Geography · Places
history Category:Drafts about history World history · Royalty, nobility, and heraldry
language
literature
language and literature
Category:Drafts about language and literature Language and literature
math
mathematics
Category:Drafts about mathematics Mathematics and mathematicians
media
drama
media and drama
Category:Drafts about media and drama Film · Television · Media and drama
music Category:Drafts about music Albums · Songs · Other music drafts
natural sciences Category:Drafts about natural sciences Biology and medicine · Chemistry and materials science · Earth sciences · Physics and astronomy
philosophy
religion
philosophy and religion
Category:Drafts about philosophy and religion Philosophy and religion
social sciences
society
social sciences and society
Category:Drafts about social sciences and society Culture, sociology, and psychology · Education · Economics and business · Law · Magazines and print journalism · Politics and government
sports
recreation
sports and recreation
Category:Drafts about sports and recreation Sports and recreation
video games Category:Drafts about video games Video games
warfare Category:Drafts about warfare Warfare

See also

Template:Userspace Disclaimers