Difference between revisions of "Template:Draft article check"

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
(sync)
imported>Headbomb
(for demo purposes)
Line 1: Line 1:
{{#switch:{{NAMESPACE}}
+
{{#switch:{{{demospace|{{NAMESPACE}}}}}
 
  |<!--Mainspace-->
 
  |<!--Mainspace-->
  |Talk  = {{#ifexist:Draft:{{PAGENAME}}|{{n.b.|20px}} There is a [[Wikipedia:Drafts|draft]] named [[Draft:{{PAGENAME}}|{{PAGENAME}}]].}}
+
  |Talk  = {{#ifexist:Draft:{{{1|{{PAGENAME}}}}}|{{n.b.|20px}} There is a [[Wikipedia:Drafts|draft]] named [[Draft:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]].}}
 
  |Draft talk
 
  |Draft talk
  |Draft = {{#switch:{{#ifexist:{{PAGENAME}}|{{#ifeq:{{#invoke:redirect|isRedirect|{{PAGENAME}}}}|yes
+
  |Draft = {{#switch:{{#ifexist:{{{1|{{PAGENAME}}}}}|{{#ifeq:{{#invoke:redirect|isRedirect|{{{1|{{PAGENAME}}}}}}}|yes
 
     |Redirect
 
     |Redirect
 
     |Article
 
     |Article
Line 9: Line 9:
 
     |No
 
     |No
 
   }}
 
   }}
   |Article  = {{n.b.|20px}} There is already an article named [[{{PAGENAME}}]] in the [[WP:MAINSPACE|mainspace]].
+
   |Article  = {{n.b.|20px}} There is already an article named [[{{{1|{{PAGENAME}}}}}]] in the [[WP:MAINSPACE|mainspace]].
   |Redirect = {{n.b.|20px}} The page {{no redirect|{{PAGENAME}}}} in the [[WP:MAINSPACE|mainspace]] is currently a redirect to [[{{#invoke:redirect|main|{{PAGENAME}}}}]].
+
   |Redirect = {{n.b.|20px}} The page {{no redirect|{{{1|{{PAGENAME}}}}}}} in the [[WP:MAINSPACE|mainspace]] is currently a redirect to [[{{#invoke:redirect|main|{{{1|{{PAGENAME}}}}}}}]].
 
   |No      =
 
   |No      =
 
   }}
 
   }}

Revision as of 14:49, 26 August 2018

Template documentation[view] [edit] [history] [purge]

{{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 (article)
(redirect)
Draft talk (article)
(redirect)
in development
Main (article)
(redirect)
Talk (article)
(redirect)
User (article)
(redirect)
User talk (article)
(redirect)
Wikipedia (article)
(redirect)
Wikipedia talk (article)
(redirect)