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

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
imported>Headbomb
(Draft for now)
Line 7: Line 7:
  
 
== Usage ==
 
== Usage ==
'''<code><nowiki>{{Draft article check}}</nowiki></code>'''
+
<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
 +
 
 +
{|class=wikitable
 +
|-
 +
!Namespace !! Message
 +
|-
 +
| Draft || {{Draft article check|demospace=Draft|Example}} (article)<br>{{Draft article check|demospace=Draft|J Phys C}} (redirect)
 +
|-
 +
|}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

Revision as of 15:00, 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)