Difference between revisions of "Template:Draft article check/sandbox"
Jump to navigation
Jump to search
imported>Headbomb (16) |
imported>Headbomb (20) |
||
| Line 1: | Line 1: | ||
{{#switch:{{NAMESPACE}} | {{#switch:{{NAMESPACE}} | ||
|<!--Mainspace--> | |<!--Mainspace--> | ||
| − | |Talk = {{#ifexist:Draft:{{PAGENAME}}|{{n.b.| | + | |Talk = {{#ifexist:Draft:{{PAGENAME}}|{{n.b.|20px}} There is a [[Wikipedia:Drafts|draft]] named [[Draft:{{PAGENAME}}|{{PAGENAME}}]].}} |
|Draft talk | |Draft talk | ||
|Draft = {{#switch:{{#ifexist:{{PAGENAME}}|{{#ifeq:{{#invoke:redirect|isRedirect|{{PAGENAME}}}}|yes | |Draft = {{#switch:{{#ifexist:{{PAGENAME}}|{{#ifeq:{{#invoke:redirect|isRedirect|{{PAGENAME}}}}|yes | ||
| Line 9: | Line 9: | ||
|No | |No | ||
}} | }} | ||
| − | |Article = {{n.b.| | + | |Article = {{n.b.|20px}} There is already an article named [[{{PAGENAME}}]] in the [[WP:MAINSPACE|mainspace]]. |
| − | |Redirect = {{n.b.| | + | |Redirect = {{n.b.|20px}} The page {{no redirect|{{PAGENAME}}}} in the [[WP:MAINSPACE|mainspace]] is currently a redirect to [[{{#invoke:redirect|main|{{PAGENAME}}}}]]. |
| − | |No = {{n.b.| | + | |No = {{n.b.|20px}} There currently is not an article named [[{{PAGENAME}}]] in the [[WP:MAINSPACE|mainspace]]. |
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
Revision as of 07:01, 26 August 2018
| 50px | This is the template sandbox page for Template:Draft article check (diff). See also the companion subpage for test cases. |
{{Draft article check}} is a template designed to alert editors to the existence of relevant articles or drafts.
Usage
| 40x40px | 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 | 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) |
| 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. |