How Can We Help?
You are here:
< Back
Content deleted Content added
update from MediaWiki talk:Searchmenu-new/sandbox, requested on talk
this looks complicated, but all it's doing is handling the edge case of searches wrapped in quotation marks, where 'create the page "redlink" directly' periodically leads to creations under the wrong title, where someone was really looking to create redlink. tested on testwiki.
 
Line 1: Line 1:
''The {{#iferror:{{#invoke:String|match|{{#titleparts:$1}}|^".*"$|plain=false}}
''The page "[[:$1|$1]]" does not exist. You can {{#switch:{{NAMESPACENUMBER:$1}}
|page "[[:$1|$1]]" does not exist. You
|0|1=[[Wikipedia:Article wizard|create a draft and submit it for review]]
|{{#ifexist:{{#invoke:String|replace|{{#titleparts:$1}}|^"(.*)"$|%1|plain=false}}
|6|7=[[Wikipedia:Files for upload/Wizard|ask for it to be uploaded]]
|page {{'-}}[[:$1|$1]]{{-'}} does not exist; did you mean "[[{{#invoke:String|replace|{{#titleparts:$1}}|^"(.*)"$|%1|plain=false}}]]"? If not, you
|14|15=[[Wikipedia:Articles for creation/Redirects and categories|ask for it to be created]]
|pages "[[{{#invoke:String|replace|{{#titleparts:$1}}|^"(.*)"$|%1|plain=false}}]]" and {{'-}}[[:$1|$1]]{{-'}} do not exist. You
|#default = [[Wikipedia:Request directory|request that it be created]]}}, or you may create the page "[[:$1]]" directly{{PLURAL:$2|0=|, but consider checking the search result below to see whether the topic is already covered|, but consider checking the search results below to see whether the topic is already covered}}.''
}}
}} can <!--
-->{{#switch:{{NAMESPACENUMBER:$1}}
|0|1=[[Wikipedia:Article wizard|create a draft and submit it for review]]
|6|7=[[Wikipedia:Files for upload/Wizard|ask for it to be uploaded]]
|14|15=[[Wikipedia:Articles for creation/Redirects and categories|ask for it to be created]]
|#default = [[Wikipedia:Request directory|request that it be created]]
}}, or you may <!--
-->{{#iferror:{{#invoke:String|match|{{#titleparts:$1}}|^".*"$|plain=false}}
|create the page "[[:$1|$1]]" directly
|{{#ifexist:{{#invoke:String|replace|{{#titleparts:$1}}|^"(.*)"$|%1|plain=false}}
|create the page {{'-}}[[:$1|$1]]{{-'}} directly
|create the page "[[{{#invoke:String|replace|{{#titleparts:$1}}|^"(.*)"$|%1|plain=false}}]]" or {{'-}}[[:$1|$1]]{{-'}} directly
}}
}}{{PLURAL:$2|0=|, but consider checking the search result below to see whether the topic is already covered|, but consider checking the search results below to see whether the topic is already covered}}.''

Latest revision as of 12:16, 14 November 2022

The page "$1" does not exist. You can create a draft and submit it for review, or you may create the page "$1" directly.

Categories
Table of Contents