Difference between revisions of "Template:Draft article check"
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
{{Draft article check}} is a template designed to alert editors to the existence of relevant articles or drafts.
Usage
| The functionality of this template is being developed and updated. It is currently mostly used in the Draft:/Draft talk: spaces via {{Draft article}}, so that's what's documented. Other namespaces are forthcoming, so it can be used in {{Userspace draft}}, for example, or by placing {{Draft article}} in other namespaces, like Talk: or Wikipedia: |
{{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) |
| The above documentation is transcluded from Template:Draft article check/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |