Template:Draft article check
{{#if:{{{demospace|}}}|On :{{#switch:{{{demospace}}}:{{space}}}}{{#switch:{{{demospace|{{NAMESPACE}}}}}
|
|Main =
|Talk = {{#ifexist:Draft:{{{1|{{PAGENAME}}}}}|{{n.b.|20px}} There is a draft named Draft:{{{1.}}
|Draft talk
|Draft = {{#switch:{{#ifexist:{{{1|{{PAGENAME}}}}}|{{#ifeq:{{#invoke:redirect|isRedirect|{{{1|{{PAGENAME}}}}}}}|yes
|Redirect
|Article
}}
|No
}}
|Article = {{n.b.|20px}} There is already an article named {{PAGENAME}}}}} in the mainspace.
|Redirect = {{n.b.|20px}} The page {{no redirect|{{{1|{{PAGENAME}}}}}}} in the mainspace is currently a redirect to {{#invoke:redirect.
|No =
}}
|User talk =
|User = {{#switch:{{#ifexist:{{{1|{{SUBPAGENAME}}}}}|{{#ifeq:{{#invoke:redirect|isRedirect|{{{1|{{SUBPAGENAME}}}}}}}|yes
|Redirect
|Article
}}
|No
}}
|Article = {{n.b.|20px}} There is already an article named {{SUBPAGENAME}}}}} in the mainspace.
|Redirect = {{n.b.|20px}} The page {{no redirect|{{{1|{{SUBPAGENAME}}}}}}} in the mainspace is currently a redirect to {{#invoke:redirect.
|No =
}}
}}
{{Documentation}}