summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/MixedNamespaceSearchSuggestions
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2020-06-04 11:01:00 -0300
committerYaco <franco@reevo.org>2020-06-04 11:01:00 -0300
commitfc7369835258467bf97eb64f184b93691f9a9fd5 (patch)
treedaabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/MixedNamespaceSearchSuggestions
first commit
Diffstat (limited to 'www/wiki/extensions/MixedNamespaceSearchSuggestions')
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/.gitignore4
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/.gitreview6
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/.jshintrc23
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/.phpcs.xml8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/CODE_OF_CONDUCT.md1
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/Gruntfile.js32
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/LICENSE14
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/MixedNamespaceSearchSuggestions.php3
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/MixedNamespaceSearchSuggestionsHooks.php15
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/README.md8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/composer.json35
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/extension.json38
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/gitinfo.json1
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ast.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/be-tarask.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/de.json9
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/en.json6
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/es.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/fr.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/gl.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/it.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ksh.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/mk.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/nb.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/nl.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/pt-br.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/pt.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/qqq.json4
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/roa-tara.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ru.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/sv.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/uk.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/zh-hans.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/zh-hant.json8
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/package.json11
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/resources/ext.mnss.search.js78
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/resources/ext.mnss.search.less14
-rw-r--r--www/wiki/extensions/MixedNamespaceSearchSuggestions/version4
38 files changed, 458 insertions, 0 deletions
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/.gitignore b/www/wiki/extensions/MixedNamespaceSearchSuggestions/.gitignore
new file mode 100644
index 00000000..e7a0add9
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/.gitignore
@@ -0,0 +1,4 @@
+*~
+composer.lock
+vendor/
+node_modules/
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/.gitreview b/www/wiki/extensions/MixedNamespaceSearchSuggestions/.gitreview
new file mode 100644
index 00000000..d2f439c7
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/.gitreview
@@ -0,0 +1,6 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/MixedNamespaceSearchSuggestions.git
+track=1
+defaultrebase=0
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/.jshintrc b/www/wiki/extensions/MixedNamespaceSearchSuggestions/.jshintrc
new file mode 100644
index 00000000..04c3a976
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/.jshintrc
@@ -0,0 +1,23 @@
+{
+ // Enforcing
+ "bitwise": true,
+ "eqeqeq": true,
+ "freeze": true,
+ "latedef": "nofunc",
+ "noarg": true,
+ "nonew": true,
+ "undef": true,
+ "unused": true,
+ "strict": false,
+
+ // Relaxing
+ "es5": false,
+
+ // Environment
+ "browser": true,
+ "jquery": true,
+
+ "globals": {
+ "mediaWiki": false
+ }
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/.phpcs.xml b/www/wiki/extensions/MixedNamespaceSearchSuggestions/.phpcs.xml
new file mode 100644
index 00000000..3b00eba0
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/.phpcs.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<ruleset>
+ <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
+ <file>.</file>
+ <arg name="extensions" value="php,php5,inc"/>
+ <arg name="encoding" value="utf8"/>
+ <exclude-pattern>vendor</exclude-pattern>
+</ruleset>
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/CODE_OF_CONDUCT.md b/www/wiki/extensions/MixedNamespaceSearchSuggestions/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000..d8e5d087
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/CODE_OF_CONDUCT.md
@@ -0,0 +1 @@
+The development of this software is covered by a [Code of Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/Gruntfile.js b/www/wiki/extensions/MixedNamespaceSearchSuggestions/Gruntfile.js
new file mode 100644
index 00000000..e7e4b543
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/Gruntfile.js
@@ -0,0 +1,32 @@
+/*jshint node:true */
+module.exports = function ( grunt ) {
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
+ grunt.loadNpmTasks( 'grunt-banana-checker' );
+
+ grunt.initConfig( {
+ jshint: {
+ options: {
+ jshintrc: true
+ },
+ all: [
+ '**/*.js',
+ '!node_modules/**',
+ '!vendor/**'
+ ]
+ },
+ banana: {
+ all: 'i18n/'
+ },
+ jsonlint: {
+ all: [
+ '**/*.json',
+ '!node_modules/**',
+ '!vendor/**'
+ ]
+ }
+ } );
+
+ grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
+ grunt.registerTask( 'default', 'test' );
+};
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/LICENSE b/www/wiki/extensions/MixedNamespaceSearchSuggestions/LICENSE
new file mode 100644
index 00000000..204885d0
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/LICENSE
@@ -0,0 +1,14 @@
+== MIT License==
+Copyright (c) 2014 Niklas Laxström
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/MixedNamespaceSearchSuggestions.php b/www/wiki/extensions/MixedNamespaceSearchSuggestions/MixedNamespaceSearchSuggestions.php
new file mode 100644
index 00000000..f9971a0a
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/MixedNamespaceSearchSuggestions.php
@@ -0,0 +1,3 @@
+<?php
+
+wfLoadExtension( 'MixedNamespaceSearchSuggestions' );
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/MixedNamespaceSearchSuggestionsHooks.php b/www/wiki/extensions/MixedNamespaceSearchSuggestions/MixedNamespaceSearchSuggestionsHooks.php
new file mode 100644
index 00000000..986fe981
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/MixedNamespaceSearchSuggestionsHooks.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * @author Niklas Laxström
+ * @license MIT
+ */
+
+class MixedNamespaceSearchSuggestionsHooks {
+ /**
+ * This is a hook function.
+ * @param OutputPage $out The OutputPage, which wasn't yet obvious to the linter.
+ */
+ public static function onBeforePageDisplay( OutputPage $out ) {
+ $out->addModules( 'ext.mnss.search' );
+ }
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/README.md b/www/wiki/extensions/MixedNamespaceSearchSuggestions/README.md
new file mode 100644
index 00000000..0acda3aa
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/README.md
@@ -0,0 +1,8 @@
+This is a MediaWiki extension which changes the search box behavior to include suggestions from all
+content namespaces, showing from which namespace each suggestion is from.
+
+Requires MediaWiki 1.29 or newer.
+
+For more details see the
+[extension page](https://www.mediawiki.org/wiki/Extension:MixedNamespaceSearchSuggestions) at
+MediaWiki.org.
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/composer.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/composer.json
new file mode 100644
index 00000000..618f6451
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/composer.json
@@ -0,0 +1,35 @@
+{
+ "name": "mediawiki/mixed-namespace-search-suggestions",
+ "type": "mediawiki-extension",
+ "description": "Includes suggestions from all content namespaces in the search box, showing from which namespace each suggestion is from.",
+ "homepage": "https://www.mediawiki.org/wiki/Extension:MixedNamespaceSearchSuggestions",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Niklas Laxström",
+ "email": "niklas.laxstrom@gmail.com",
+ "role": "Author"
+ }
+ ],
+ "require": {
+ "php": ">=5.5.9",
+ "composer/installers": "~1.0"
+ },
+ "require-dev": {
+ "jakub-onderka/php-parallel-lint": "1.0.0",
+ "mediawiki/mediawiki-codesniffer": "18.0.0",
+ "jakub-onderka/php-console-highlighter": "0.3.2",
+ "mediawiki/minus-x": "0.3.1"
+ },
+ "scripts": {
+ "fix": [
+ "phpcbf",
+ "minus-x fix ."
+ ],
+ "test": [
+ "parallel-lint . --exclude vendor --exclude node_modules",
+ "phpcs -p -s",
+ "minus-x check ."
+ ]
+ }
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/extension.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/extension.json
new file mode 100644
index 00000000..f87ede40
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/extension.json
@@ -0,0 +1,38 @@
+{
+ "name": "MixedNamespaceSearchSuggestions",
+ "version": "2017-11-08",
+ "author": "Niklas Laxström",
+ "url": "https://www.mediawiki.org/wiki/Extension:MixedNamespaceSearchSuggestions",
+ "descriptionmsg": "mnss-desc",
+ "license-name": "MIT",
+ "type": "other",
+ "requires": {
+ "MediaWiki": ">= 1.29.0"
+ },
+ "Hooks": {
+ "BeforePageDisplay": "MixedNamespaceSearchSuggestionsHooks::onBeforePageDisplay"
+ },
+ "MessagesDirs": {
+ "MNSS": [
+ "i18n"
+ ]
+ },
+ "AutoloadClasses": {
+ "MixedNamespaceSearchSuggestionsHooks": "MixedNamespaceSearchSuggestionsHooks.php"
+ },
+ "ResourceModules": {
+ "ext.mnss.search": {
+ "styles": "resources/ext.mnss.search.less",
+ "scripts": "resources/ext.mnss.search.js",
+ "dependencies": [
+ "mediawiki.searchSuggest",
+ "mediawiki.Title"
+ ]
+ }
+ },
+ "ResourceFileModulePaths": {
+ "localBasePath": "",
+ "remoteExtPath": "MixedNamespaceSearchSuggestions"
+ },
+ "manifest_version": 2
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/gitinfo.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/gitinfo.json
new file mode 100644
index 00000000..944291da
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/gitinfo.json
@@ -0,0 +1 @@
+{"headSHA1": "75e97324981bf652fa2b8df6867293d124f3050e\n", "head": "75e97324981bf652fa2b8df6867293d124f3050e\n", "remoteURL": "https://gerrit.wikimedia.org/r/mediawiki/extensions/MixedNamespaceSearchSuggestions", "branch": "75e97324981bf652fa2b8df6867293d124f3050e\n", "headCommitDate": "1523677544"} \ No newline at end of file
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ast.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ast.json
new file mode 100644
index 00000000..e7f46c54
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ast.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Xuacu"
+ ]
+ },
+ "mnss-desc": "Incluye suxerencies de tolos espacios de nomes de conteníu nel cuadru de gueta, amosando de qué espaciu de nomes ye cada suxerencia"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/be-tarask.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/be-tarask.json
new file mode 100644
index 00000000..67eed0cb
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/be-tarask.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Red Winged Duck"
+ ]
+ },
+ "mnss-desc": "Дадае ў поле пошуку прапановы з усіх прастораў назваў і паказвае, да якой прасторы назваў належыць прапанова"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/de.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/de.json
new file mode 100644
index 00000000..5663d607
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/de.json
@@ -0,0 +1,9 @@
+{
+ "@metadata": {
+ "authors": [
+ "Metalhead64",
+ "Purodha"
+ ]
+ },
+ "mnss-desc": "Schließt Vorschläge von allen Inhaltsnamensräumen im Suchkasten ein. Für jeden Vorschlag wird sein Namensraum angezeigt."
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/en.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/en.json
new file mode 100644
index 00000000..86ab89e6
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/en.json
@@ -0,0 +1,6 @@
+{
+ "@metadata": {
+ "authors": []
+ },
+ "mnss-desc": "Includes suggestions from all content namespaces in the search box, showing from which namespace each suggestion is from"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/es.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/es.json
new file mode 100644
index 00000000..dc30132b
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/es.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Fitoschido"
+ ]
+ },
+ "mnss-desc": "Incluye sugerencias de todos los espacios de nombres de contenido en el cuadro de búsqueda, mostrando de cuál espacio proviene cada una"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/fr.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/fr.json
new file mode 100644
index 00000000..23320687
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/fr.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Gomoko"
+ ]
+ },
+ "mnss-desc": "Inclut des suggestions de tous les espaces de nom de contenu dans la zone de recherche, affichant de quel espace de nom provient chacune"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/gl.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/gl.json
new file mode 100644
index 00000000..3a495e0c
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/gl.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Elisardojm"
+ ]
+ },
+ "mnss-desc": "Inclúe suxerencias de todos os espazos de nomes de contido no cadro de busca, mostrando de que espazo provén cada unha"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/it.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/it.json
new file mode 100644
index 00000000..5703ce3a
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/it.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Beta16"
+ ]
+ },
+ "mnss-desc": "Include suggerimenti da tutti i namespace di contenuti nella casella di ricerca, mostrando da quale namespace deriva ogni suggerimento"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ksh.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ksh.json
new file mode 100644
index 00000000..3260bab1
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ksh.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Purodha"
+ ]
+ },
+ "mnss-desc": "Deiht Vörschlähsch uß alle Appachtemangs met Ennhallde en der Kaßte för et Söhke un zeisch de Appachtemangs ehr Nahme aan."
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/mk.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/mk.json
new file mode 100644
index 00000000..68acdcef
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/mk.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Bjankuloski06"
+ ]
+ },
+ "mnss-desc": "Вклучува предлози од сите содржински именски простори во полето за пребарување, прикажувајќи од кој именски простор е предлогот"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/nb.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/nb.json
new file mode 100644
index 00000000..686a1c08
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/nb.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Jon Harald Søby"
+ ]
+ },
+ "mnss-desc": "Inkluderer forslag fra alle innholdsnavnerom i søkeboksen, og viser hvilket navnerom hvert forslag kommer fra"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/nl.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/nl.json
new file mode 100644
index 00000000..a4aba20a
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/nl.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Esketti"
+ ]
+ },
+ "mnss-desc": "Bevat suggesties van alle inhoud op alle naamruimten in het zoekvak tonen van die naamruimte elke suggestie is uit"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/pt-br.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/pt-br.json
new file mode 100644
index 00000000..efe52aeb
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/pt-br.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "!Silent"
+ ]
+ },
+ "mnss-desc": "Inclui sugestões de todos os domínios de conteúdo na caixa de busca, mostrando cada sugestão pertencente ao domínio respectivo"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/pt.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/pt.json
new file mode 100644
index 00000000..1a749447
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/pt.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Vitorvicentevalente"
+ ]
+ },
+ "mnss-desc": "Inclui sugestões de todos os domínios de conteúdo na caixa de pesquisa, mostrando cada sugestão pertencente ao domínio respetivo."
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/qqq.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/qqq.json
new file mode 100644
index 00000000..f82b2283
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/qqq.json
@@ -0,0 +1,4 @@
+{
+ "@metadata": [],
+ "mnss-desc": "{{desc|what=extension|name=MixedNamespaceSearchSuggestions|url=https://www.mediawiki.org/wiki/Extension:MixedNamespaceSearchSuggestions}}"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/roa-tara.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/roa-tara.json
new file mode 100644
index 00000000..4480dda2
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/roa-tara.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Joetaras"
+ ]
+ },
+ "mnss-desc": "'Nglude suggereminde da tutte le namespace de condenute jndr'à buatte de ricerche, facenne vedè da quale namespace ogne suggerimende ave venute"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ru.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ru.json
new file mode 100644
index 00000000..b830b8d5
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/ru.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Okras"
+ ]
+ },
+ "mnss-desc": "Включает в поле поиска предложения из всех пространств имён, содержащих материалы, и показывает, к какому пространству имён относится каждое предложение"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/sv.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/sv.json
new file mode 100644
index 00000000..374d2113
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/sv.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Lokal Profil"
+ ]
+ },
+ "mnss-desc": "Inkluderar förslag från alla innehållsnamnrymder i sökrutan, visande från vilken namnrymd vart förslag kommer."
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/uk.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/uk.json
new file mode 100644
index 00000000..edae5e62
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/uk.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Ата"
+ ]
+ },
+ "mnss-desc": "Містить пропозиції з усіх контентових просторів назв у полі пошуку, показуючи, з якого простір назв кожна пропозиція"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/zh-hans.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/zh-hans.json
new file mode 100644
index 00000000..a5d2b2e1
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/zh-hans.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Liuxinyu970226"
+ ]
+ },
+ "mnss-desc": "包含来自所有内容名字空间的建议在搜索框中,显示来自每个建议的名字空间"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/zh-hant.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/zh-hant.json
new file mode 100644
index 00000000..fff2f6a9
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/i18n/zh-hant.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Kly"
+ ]
+ },
+ "mnss-desc": "包含來自所有內容名稱空間的建議在搜尋框裡頭,顯示出該名稱空間的各個建議"
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/package.json b/www/wiki/extensions/MixedNamespaceSearchSuggestions/package.json
new file mode 100644
index 00000000..a3a4e9cc
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/package.json
@@ -0,0 +1,11 @@
+{
+ "scripts": {
+ "test": "grunt test"
+ },
+ "devDependencies": {
+ "grunt": "1.0.1",
+ "grunt-banana-checker": "0.4.0",
+ "grunt-contrib-jshint": "1.0.0",
+ "grunt-jsonlint": "1.0.7"
+ }
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/resources/ext.mnss.search.js b/www/wiki/extensions/MixedNamespaceSearchSuggestions/resources/ext.mnss.search.js
new file mode 100644
index 00000000..0a3e666b
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/resources/ext.mnss.search.js
@@ -0,0 +1,78 @@
+/**
+ * @author Niklas Laxström
+ * @license MIT
+ */
+
+( function ( mw, $ ) {
+
+ // Compute form data for search suggestions functionality.
+ function computeResultRenderCache( context ) {
+ var $form, baseHref, linkParams;
+
+ // Compute common parameters for links' hrefs
+ $form = context.config.$region.closest( 'form' );
+
+ baseHref = $form.attr( 'action' );
+ baseHref += baseHref.indexOf( '?' ) > -1 ? '&' : '?';
+
+ linkParams = {};
+ $.each( $form.serializeArray(), function ( idx, obj ) {
+ linkParams[ obj.name ] = obj.value;
+ } );
+
+ return {
+ textParam: context.data.$textbox.attr( 'name' ),
+ linkParams: linkParams,
+ baseHref: baseHref
+ };
+ }
+
+ // The function used to render the suggestions.
+ function customRenderFunction( text, context ) {
+ var page, namespace,
+ title = mw.Title.newFromText( text ),
+ info = computeResultRenderCache( context );
+
+ info.linkParams[ info.textParam ] = text;
+
+ page = title.getMainText();
+ namespace = $( '<span>' )
+ .text( mw.config.get( 'wgFormattedNamespaces' )[ title.namespace ] )
+ .addClass( 'mw-mnss-srcc' );
+
+ // 'this' is the container <div>, jQueryfied
+ this
+ .append( page, namespace )
+ .wrap(
+ $( '<a>' )
+ .attr( 'href', info.baseHref + $.param( info.linkParams ) )
+ .addClass( 'mw-searchSuggest-link' )
+ );
+ }
+
+ $( document ).ready( function () {
+ var $searchInput = $( '#searchInput' );
+
+ $searchInput.suggestions( {
+ fetch: function ( query ) {
+ var $el;
+
+ if ( query.length !== 0 ) {
+ $el = $( this );
+ $el.data( 'request', ( new mw.Api() ).get( {
+ action: 'opensearch',
+ search: query,
+ namespace: mw.config.get( 'wgContentNamespaces' ).join( '|' ),
+ suggest: ''
+ } ).done( function ( data ) {
+ $el.suggestions( 'suggestions', data[1] );
+ } ) );
+ }
+ },
+ result: {
+ render: customRenderFunction
+ }
+ } );
+ } );
+
+}( mediaWiki, jQuery ) );
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/resources/ext.mnss.search.less b/www/wiki/extensions/MixedNamespaceSearchSuggestions/resources/ext.mnss.search.less
new file mode 100644
index 00000000..43472e60
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/resources/ext.mnss.search.less
@@ -0,0 +1,14 @@
+/**
+ * @author Niklas Laxström
+ * @license MIT
+ */
+
+/* This is used in the search field autocompletion */
+.mw-mnss-srcc {
+ float: right;
+ font-style: italic;
+}
+
+.suggestions-result {
+ white-space: inherit;
+}
diff --git a/www/wiki/extensions/MixedNamespaceSearchSuggestions/version b/www/wiki/extensions/MixedNamespaceSearchSuggestions/version
new file mode 100644
index 00000000..887868cd
--- /dev/null
+++ b/www/wiki/extensions/MixedNamespaceSearchSuggestions/version
@@ -0,0 +1,4 @@
+MixedNamespaceSearchSuggestions: REL1_31
+2018-04-17T22:21:23
+
+75e9732