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

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
(→‎Usage: mbox)
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
DraftChecker is a template to alert editors to the existence of relevant articles or drafts.
+
{{tl|Draft article check}} is a template designed 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 ==
 
== Usage ==
Line 17: Line 14:
 
|-
 
|-
 
| Draft talk || {{Draft article check|demospace=Draft talk|Example}} (article)<br>{{Draft article check|demospace=Draft talk|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)
 +
|-
 +
!colspan="2"|''in development''
 +
|-
 +
| Main || {{Draft article check|demospace=Main|Example}} (article)<br>{{Draft article check|demospace=Main|J Phys C}} (redirect)
 +
|-
 +
| Talk || {{Draft article check|demospace=Talk|Example}} (article)<br>{{Draft article check|demospace=Talk|J Phys C}} (redirect)
 +
|-
 +
| User || {{Draft article check|demospace=User|Example}} (article)<br>{{Draft article check|demospace=User|J Phys C}} (redirect)
 +
|-
 +
| User talk || {{Draft article check|demospace=User talk|Example}} (article)<br>{{Draft article check|demospace=User talk|J Phys C}} (redirect)
  
 
|-
 
|-
 +
| Wikipedia || {{Draft article check|demospace=Wikipedia|Example}} (article)<br>{{Draft article check|demospace=Wikipedia|J Phys C}} (redirect)
 +
|-
 +
| Wikipedia talk || {{Draft article check|demospace=Wikipedia talk|Example}} (article)<br>{{Draft article check|demospace=Wikipedia talk|J Phys C}} (redirect)
  
 
|}
 
|}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:Draft namespace templates]]
 
[[Category:Draft namespace templates]]
 
[[Category:Wikipedia drafts]]
 
[[Category:Wikipedia drafts]]
 
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 00:36, 25 April 2020

{{Draft article check}} is a template designed to alert editors to the existence of relevant articles or drafts.

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)
in development
Main On Example:Template:Space (article)
On J Phys C:Template:Space (redirect)
Talk On Talk:Example:Template:Space (article)
On Talk:J Phys C:Template:Space (redirect)
User On User:Example:Template:Space (article)
On User:J Phys C:Template:Space (redirect)
User talk On User talk:Example:Template:Space (article)
On User talk:J Phys C:Template:Space (redirect)
Wikipedia On Wikipedia:Example:Template:Space (article)
On Wikipedia:J Phys C:Template:Space (redirect)
Wikipedia talk On Wikipedia talk:Example:Template:Space (article)
On Wikipedia talk:J Phys C:Template:Space (redirect)