How Can We Help?
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}} |
|||
|page "[[:$1|$1]]" does not exist. You |
|||
⚫ | |||
|{{#ifexist:{{#invoke:String|replace|{{#titleparts:$1}}|^"(.*)"$|%1|plain=false}} |
|||
⚫ | |||
|page {{'-}}[[:$1|$1]]{{-'}} does not exist; did you mean "[[{{#invoke:String|replace|{{#titleparts:$1}}|^"(.*)"$|%1|plain=false}}]]"? If not, you |
|||
⚫ | |||
|pages "[[{{#invoke:String|replace|{{#titleparts:$1}}|^"(.*)"$|%1|plain=false}}]]" and {{'-}}[[:$1|$1]]{{-'}} do not exist. You |
|||
⚫ | |||
}} |
|||
}} can <!-- |
|||
-->{{#switch:{{NAMESPACENUMBER:$1}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
|#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 |
|||
}} |
|||
⚫ |
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.
Recent Comments