Thiemo Mättig (WMDE) has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/136831

Change subject: Remove optional namespace from <gallery> example
......................................................................

Remove optional namespace from <gallery> example

The namespace is optional since at least 2011, see
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/79639

More and more wikis switch to the syntax without repeating the
namespace over and over again. Main advantage: This avoids all
discussions which namespace name (localized or what) should be used.

Example discussion:
https://de.wikipedia.org/wiki/Wikipedia:Verbesserungsvorschläge

Change-Id: I31826d1a3db51f22f46ae469864a23d7c8298e09
---
M i18n/en.json
M i18n/qqq.json
M modules/jquery.wikiEditor.toolbar.config.js
3 files changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiEditor 
refs/changes/31/136831/1

diff --git a/i18n/en.json b/i18n/en.json
index f821bef..5d4ae47 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -107,7 +107,7 @@
     "wikieditor-toolbar-tool-subscript-example": "Subscript text",
     "wikieditor-toolbar-group-insert": "Insert",
     "wikieditor-toolbar-tool-gallery": "Picture gallery",
-    "wikieditor-toolbar-tool-gallery-example": 
"$1:Example.jpg|Caption1\n$1:Example.jpg|Caption2",
+    "wikieditor-toolbar-tool-gallery-example": 
"Example.jpg|Caption1\nExample.jpg|Caption2",
     "wikieditor-toolbar-tool-newline": "New line",
     "wikieditor-toolbar-tool-table": "Table",
     "wikieditor-toolbar-tool-table-example-old": "-\n! header 1\n! header 2\n! 
header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, 
cell 1\n| row 2, cell 2\n| row 2, cell 3",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index d3d82fe..293c93d 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -93,7 +93,7 @@
        "wikieditor-toolbar-tool-big": "{{Identical|Big}}",
        "wikieditor-toolbar-tool-small": "{{Identical|Small}}",
        "wikieditor-toolbar-group-insert": "{{Identical|Insert}}",
-       "wikieditor-toolbar-tool-gallery-example": "Used as example for Picture 
Gallery.\n\nThis message follows the message 
{{msg-mw|wikieditor-toolbar-tool-gallery}}.\n\nParameters:\n* $1 - namespace 
name \"File\"",
+       "wikieditor-toolbar-tool-gallery-example": "Used as example for Picture 
Gallery.\n\nThis message follows the message 
{{msg-mw|wikieditor-toolbar-tool-gallery}}.",
        "wikieditor-toolbar-tool-table": "{{Identical|Table}}",
        "wikieditor-toolbar-tool-table-example-cell-text": 
"[[File:Wikieditor-toolbar-tool-table.png|thumb]] See screenshot.",
        "wikieditor-toolbar-tool-table-example-header": 
"[[File:Wikieditor-toolbar-tool-table.png|thumb]] See screenshot.\n\nSee 
also:\n* {{msg-mw|wikieditor-toolbar-tool-table-example-header}}\n* 
{{msg-mw|wikieditor-toolbar-tool-table-example}}",
diff --git a/modules/jquery.wikiEditor.toolbar.config.js 
b/modules/jquery.wikiEditor.toolbar.config.js
index 17a219a..82156a4 100644
--- a/modules/jquery.wikiEditor.toolbar.config.js
+++ b/modules/jquery.wikiEditor.toolbar.config.js
@@ -417,7 +417,7 @@
                                                                'options': {
                                                                        'pre': 
"<gallery>\n",
                                                                        
'periMsg': [
-                                                                               
'wikieditor-toolbar-tool-gallery-example', fileNamespace
+                                                                               
'wikieditor-toolbar-tool-gallery-example'
                                                                        ],
                                                                        'post': 
"\n</gallery>",
                                                                        
'ownline': true

-- 
To view, visit https://gerrit.wikimedia.org/r/136831
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I31826d1a3db51f22f46ae469864a23d7c8298e09
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiEditor
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to