Difference between revisions of "Template:Draft article check"

From blackwiki
Jump to navigation Jump to search
imported>CambridgeBayWeather
(Undid revision 802701262 by CambridgeBayWeather (talk))
imported>Headbomb
(sync)
Line 1: Line 1:
 
{{#switch:{{NAMESPACE}}
 
{{#switch:{{NAMESPACE}}
 
  |<!--Mainspace-->
 
  |<!--Mainspace-->
  |Talk  = {{#ifexist:Draft:{{PAGENAME}}|{{hatnote|There is a [[Wikipedia:Drafts|draft]] named [[Draft:{{PAGENAME}}|{{PAGENAME}}]].}}}}
+
  |Talk  = {{#ifexist:Draft:{{PAGENAME}}|{{n.b.|20px}} There is a [[Wikipedia:Drafts|draft]] named [[Draft:{{PAGENAME}}|{{PAGENAME}}]].}}
 
  |Draft talk
 
  |Draft talk
  |Draft = {{hatnote
+
  |Draft = {{#switch:{{#ifexist:{{PAGENAME}}|{{#ifeq:{{#invoke:redirect|isRedirect|{{PAGENAME}}}}|yes
  |1={{#switch:{{#ifexist:{{PAGENAME}}
 
    |{{#ifeq:{{#invoke:redirect|isRedirect|{{PAGENAME}}}}|yes
 
 
     |Redirect
 
     |Redirect
 
     |Article
 
     |Article
    }}
+
    }}
 
     |No
 
     |No
 
   }}
 
   }}
   |Article  = There is already an article named [[{{PAGENAME}}]] in the [[WP:MAINSPACE|mainspace]].
+
   |Article  = {{n.b.|20px}} There is already an article named [[{{PAGENAME}}]] in the [[WP:MAINSPACE|mainspace]].
   |Redirect = 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|{{PAGENAME}}}} in the [[WP:MAINSPACE|mainspace]] is currently a redirect to [[{{#invoke:redirect|main|{{PAGENAME}}}}]].
   |No      = There currently is not an article named [[{{PAGENAME}}]] in the [[WP:MAINSPACE|mainspace]].
+
   |No      =
 
   }}
 
   }}
}}
 
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 
</noinclude>
 
</noinclude>

Revision as of 14:19, 26 August 2018

50px 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)