Template:Draft article/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Creating this draft article documentation based of some stuff copied from Wikipedia and slightly modified.)
 
(new example.)
 
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
{{Wikipedia port|modified=1|documentation=1}}
{{Doc/subpage}}
{{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]]) -->
<center>[[Special:WhatLinksHere/Template:Draft article|'''All articles currently in the drafting process.''']]</center>
'''Drafts''' are often created to work on future articles before they are ready to be published. These are located in either the [[Wikipedia:Drafts|"Draft" namespace]] or a [[WP:USERSAND|user sandbox]] to avoid any possibility that a casual reader may stumble upon them; those areas are also excluded from [[search engine indexing]]. {{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 via the [[WP:AFC|articles for creation]] process. 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. These are located in either the [[Wikipedia:Drafts|"Draft" namespace]] or a [[WP:USERSAND|user sandbox]] to avoid any possibility that a casual reader may stumble upon them; those areas are also excluded from [[Wikipedia:search engine indexing|search engine indexing]]. {{tl|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 via the [[WP:AFC|articles for creation]] process. This also categorizes the page to [[:Category:Drafts]] or one of its sub-categories.  


<!-- 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. -->


== Usage ==
== Usage ==
<!-- Abstract usage of the template -->
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 ===
=== Default output ===
<code><nowiki>{{Draft article}}</nowiki></code> renders as
{{code|<nowiki>{{Draft article}}</nowiki>}} renders as
{{msg:Draft article|demo=yes}}
{{Draft article|nocat=1}}
 
{{code|<nowiki>{{Draft article|finish=1}}</nowiki>}} renders as
===Minimalist output===
{{Draft article|finish=1|nocat=1}}
 
{{code|<nowiki>{{Draft article|move=1}}</nowiki>}} renders as
<code><nowiki>{{Draft article|brief=yes}}</nowiki></code> renders as
{{Draft article|move=1|nocat=1}}
{{msg:Draft article|brief=yes|demo=yes}}
{{code|<nowiki>{{Draft article|move=Template:Draft article}}</nowiki>}} renders as
 
{{Draft article|move=Draft article|nocat=1}}
===Intended target page===
== For blank pages with draft version available ==
 
{{Draft article|available=true|nocat=1}}
<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}}.
 
===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}}.
 
===Suppress "Submit for review" button===
<code><nowiki>{{</nowiki>Draft article|noafc=yes}}</code> will render as
{{msg:Draft article|noafc=yes}}
 
===Categorization===
 
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}}.
 
{| {{table}}
! <code>subject=</code> !! Category !! Example topics
|-
|<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
|-
|<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:Draft articles on geographical topics]]||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>media</code><br /><code>drama</code><br /><code>media and drama</code>||[[:Category:Draft articles on media]]||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:Draft articles on video games]]||Video games
|-
|<code>warfare</code>||[[:Category:Drafts about warfare]]||Warfare
|}
 
<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->

Latest revision as of 05:42, 5 June 2024

Edit-copy.png
This is a documentation subpage for Template:Draft article.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
All articles currently in the drafting process.

Drafts are often created to work on future articles before they are ready to be published. These are located in either the "Draft" namespace or a user sandbox to avoid any possibility that a casual reader may stumble upon them; those areas are also excluded from search engine indexing. {{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 via the articles for creation process. This also categorizes the page to Category:Drafts or one of its sub-categories.


Usage

Default output

{{Draft article}} renders as

Icon-under construction-blue.png
This is a draft template page. It is a work in progress open to editing by anyone.
Remember to check for any notes left by the tagger at this article's talk page.

{{Draft article|finish=1}} renders as

Icon-under construction-blue.png
This draft template page is currently nearing or is completed.
Remember to check for any notes left by the tagger at this article's talk page.

{{Draft article|move=1}} renders as

Icon-under construction-blue.png
This is a draft template page. It is a work in progress open to editing by anyone.
 A user has proposed this page to be moved to its own page to be finalized and properly integrated into this wiki.
Remember to check for any notes left by the tagger at this article's talk page.

{{Draft article|move=Template:Draft article}} renders as

Icon-under construction-blue.png
This is a draft template page. It is a work in progress open to editing by anyone.
 A user has proposed this page to be moved to Draft article to be finalized and properly integrated into this wiki.
Remember to check for any notes left by the tagger at this article's talk page.

For blank pages with draft version available

Icon-under construction-green.png
There is a draft for this article at Draft:Draft article/doc.