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

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
(Draft for now)
imported>Headbomb
(→‎Usage: mbox)
Line 7: Line 7:
  
 
== Usage ==
 
== Usage ==
 +
{{mbox|text=The functionality of this template is being developed and updated. It is currently mostly used in the ''Draft:''/''Draft talk:'' spaces via {{tl|Draft article}}, so that's what's documented. Other namespaces are forthcoming, so it can be used in {{tl|Userspace draft}}, for example, or by placing {{tl|Draft article}} in other namespaces, like ''Talk:'' or ''Wikipedia:''}}
 
<code><nowiki>{{Draft article check}}</nowiki></code> will give different results depending on which namespace it is used, and which corresponding article exist in mainspace/draft space
 
<code><nowiki>{{Draft article check}}</nowiki></code> will give different results depending on which namespace it is used, and which corresponding article exist in mainspace/draft space
  
Line 15: Line 16:
 
| Draft || {{Draft article check|demospace=Draft|Example}} (article)<br>{{Draft article check|demospace=Draft|J Phys C}} (redirect)
 
| Draft || {{Draft article check|demospace=Draft|Example}} (article)<br>{{Draft article check|demospace=Draft|J Phys C}} (redirect)
 
|-
 
|-
 +
| Draft talk || {{Draft article check|demospace=Draft talk|Example}} (article)<br>{{Draft article check|demospace=Draft talk|J Phys C}} (redirect)
 +
 +
|-
 +
 
|}
 
|}
  

Revision as of 15:10, 26 August 2018

DraftChecker is a template to alert editors to the existence of relevant articles or drafts.

  • In Draft or Draft_Talk, DraftChecker will check for an Article of the same title.
  • In Article_Talk, DraftChecker will check for a Draft of the same title.
  • In the Article namespace, Draftchecker will check for a Draft of the same title, but will only show a message if a custom javascript determines the user is logged in.

Usage

{{Draft article check}} will give different results depending on which namespace it is used, and which corresponding article exist in mainspace/draft space

Namespace Message
Draft On Draft:Example:Template:Space (article)
On Draft:J Phys C:Template:Space (redirect)
Draft talk On Draft talk:Example:Template:Space (article)
On Draft talk:J Phys C:Template:Space (redirect)