@bhsd/codemirror-mediawiki 2.11.2 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/i18n/en.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.11.2",
2
+ "version": "2.12.0",
3
3
  "lang": "en",
4
4
  "i18n-failed": "Failed to fetch the translation file in $1.",
5
5
  "title": "CodeMirror Addons",
@@ -7,11 +7,11 @@
7
7
  "feedback": "Bug reports or suggestions are welcome at <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\">GitHub</a> .",
8
8
  "contentmodel": "Please indicate the content model:",
9
9
  "addon-allowMultipleSelections": "Allow multiple selections",
10
- "addon-autocompletion": "Autocomplete magic words and tag names",
10
+ "addon-autocompletion": "<span title=\"Ctrl-Space\">Autocompletion</span>",
11
11
  "addon-bracketMatching": "Highlight matching/non-matching brackets",
12
12
  "addon-closeBrackets": "Auto-close brackets and quotes",
13
- "addon-codeFolding": "<span title=\"Ctrl-Shift-[ : fold\nCtrl-Shift-] : unfold\nCtrl-Alt-[ : fold all\nCtrl-Alt-] : unfold all\">Fold template parameters</span>",
14
- "addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : fold\nCmd-Alt-] : unfold\nCtrl-Alt-[ : fold all\nCtrl-Alt-] : unfold all\">Fold template parameters</span>",
13
+ "addon-codeFolding": "<span title=\"Ctrl-Shift-[ : fold\nCtrl-Shift-] : unfold\nCtrl-Alt-[ : fold all\nCtrl-Alt-] : unfold all\">Code folding</span>",
14
+ "addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : fold\nCmd-Alt-] : unfold\nCtrl-Alt-[ : fold all\nCtrl-Alt-] : unfold all\">Code folding</span>",
15
15
  "addon-escape": "<span title=\"Ctrl-[ : HTML encoding\nCtrl-] : URL decoding or encoding\">Keyboard shortcuts for HTML/URL encoding</span>",
16
16
  "addon-escape-mac": "<span title=\"Cmd-[ : HTML encoding\nCmd-] : URL decoding or encoding\">Keyboard shortcuts for HTML/URL encoding</span>",
17
17
  "addon-highlightActiveLine": "Show the active line",
@@ -20,11 +20,11 @@
20
20
  "addon-highlightWhitespace": "Show whitespace characters",
21
21
  "addon-indent": "Indent",
22
22
  "addon-lint": "Linter",
23
- "addon-openLinks": "Open the link or template page with CTRL-click",
24
- "addon-openLinks-mac": "Open the link or template page with CMD-click",
23
+ "addon-openLinks": "Open the link or transcluded page with CTRL-click",
24
+ "addon-openLinks-mac": "Open the link or transcluded page with CMD-click",
25
25
  "addon-save": "Save your preferences on a [[special:mypage/codemirror-mediawiki.json|user subpage]]",
26
26
  "addon-tagMatching": "Highlight matching/non-matching tags",
27
- "addon-useMonaco": "Use Monaco Editor for new editors (Beta)",
27
+ "addon-useMonaco": "Use Monaco Editor for new editors",
28
28
  "addon-wikiEditor": "Load WikiEditor toolbar",
29
29
  "no-wikiEditor": "WikiEditor is not available.",
30
30
  "save-success": "Settings saved on [[special:mypage/codemirror-mediawiki.json|user subpage]].",
@@ -49,5 +49,5 @@
49
49
  "phrase-replace": "replace",
50
50
  "phrase-replace-all": "replace all",
51
51
  "phrase-unfold": "unfold",
52
- "phrase-Fold-template-parameters": "Fold template parameters"
52
+ "phrase-Fold-template-parameters": "Fold template, parser function or extension tag"
53
53
  }
package/i18n/zh-hans.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.11.2",
2
+ "version": "2.12.0",
3
3
  "lang": "zh-hans",
4
4
  "i18n-failed": "获取 $1 的语言文件失败。",
5
5
  "title": "CodeMirror插件",
@@ -7,11 +7,11 @@
7
7
  "feedback": "欢迎将错误报告或是改进建议提交到 <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\">GitHub</a> !",
8
8
  "contentmodel": "请输入内容模型:",
9
9
  "addon-allowMultipleSelections": "允许选择多个片段",
10
- "addon-autocompletion": "自动填充魔术字和标签名",
10
+ "addon-autocompletion": "<span title=\"Ctrl-Space\">自动填充</span>",
11
11
  "addon-bracketMatching": "高亮显示匹配和未匹配的括号",
12
12
  "addon-closeBrackets": "自动闭合括号和引号",
13
- "addon-codeFolding": "<span title=\"Ctrl-Shift-[ : 折叠\nCtrl-Shift-] : 展开\nCtrl-Alt-[ : 折叠所有\nCtrl-Alt-] : 展开所有\">折叠模板参数</span>",
14
- "addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : 折叠\nCmd-Alt-] : 展开\nCtrl-Alt-[ : 折叠所有\nCtrl-Alt-] : 展开所有\">折叠模板参数</span>",
13
+ "addon-codeFolding": "<span title=\"Ctrl-Shift-[ : 折叠\nCtrl-Shift-] : 展开\nCtrl-Alt-[ : 折叠所有\nCtrl-Alt-] : 展开所有\">代码折叠</span>",
14
+ "addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : 折叠\nCmd-Alt-] : 展开\nCtrl-Alt-[ : 折叠所有\nCtrl-Alt-] : 展开所有\">代码折叠</span>",
15
15
  "addon-escape": "<span title=\"Ctrl-[ : HTML编码\nCtrl-] : URL解码或编码\">添加HTML和URL编码快捷键</span>",
16
16
  "addon-escape-mac": "<span title=\"Cmd-[ : HTML编码\nCmd-] : URL解码或编码\">添加HTML和URL编码快捷键</span>",
17
17
  "addon-highlightActiveLine": "高亮显示光标所在行",
@@ -20,11 +20,11 @@
20
20
  "addon-highlightWhitespace": "显示空白字符",
21
21
  "addon-indent": "缩进",
22
22
  "addon-lint": "语法检查",
23
- "addon-openLinks": "CTRL+点击可打开链接或模板页面",
24
- "addon-openLinks-mac": "CMD+点击可打开链接或模板页面",
23
+ "addon-openLinks": "CTRL+点击可打开链接或嵌入的页面",
24
+ "addon-openLinks-mac": "CMD+点击可打开链接或嵌入的页面",
25
25
  "addon-save": "将设置保存至[[special:mypage/codemirror-mediawiki.json|用户子页面]]",
26
26
  "addon-tagMatching": "高亮显示匹配和未匹配的标签",
27
- "addon-useMonaco": "新增的编辑区使用Monaco编辑器(测试版)",
27
+ "addon-useMonaco": "新增的编辑区使用Monaco编辑器",
28
28
  "addon-wikiEditor": "加载WikiEditor工具栏",
29
29
  "no-wikiEditor": "未找到WikiEditor扩展。",
30
30
  "save-success": "设置保存至[[special:mypage/codemirror-mediawiki.json|用户子页面]]。",
@@ -49,5 +49,5 @@
49
49
  "phrase-replace": "替换",
50
50
  "phrase-replace-all": "替换所有",
51
51
  "phrase-unfold": "展开",
52
- "phrase-Fold-template-parameters": "折叠模板参数"
52
+ "phrase-Fold-template-parameters": "折叠模板、解析器函数或扩展标签"
53
53
  }
package/i18n/zh-hant.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.11.2",
2
+ "version": "2.12.0",
3
3
  "lang": "zh-hant",
4
4
  "i18n-failed": "取得 $1 的語言檔案失敗。",
5
5
  "title": "CodeMirror外掛程式",
@@ -7,11 +7,11 @@
7
7
  "feedback": "歡迎將錯誤報告或是改進建議提交到 <a href=\"https://github.com/bhsd-harry/$1/issues\" target=\"_blank\">GitHub</a> !",
8
8
  "contentmodel": "請輸入內容模型:",
9
9
  "addon-allowMultipleSelections": "允許選擇多個片段",
10
- "addon-autocompletion": "自動填入魔術字和標籤名",
10
+ "addon-autocompletion": "<span title=\"Ctrl-Space\">自動填入</span>",
11
11
  "addon-bracketMatching": "突出顯示匹配和未匹配的括號",
12
12
  "addon-closeBrackets": "自動閉合括號和引號",
13
- "addon-codeFolding": "<span title=\"Ctrl-Shift-[ : 摺疊\nCtrl-Shift-] : 展開\nCtrl-Alt-[ : 摺疊全部\nCtrl-Alt-] : 展開全部\">摺疊模板參數</span>",
14
- "addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : 摺疊\nCmd-Alt-] : 展開\nCtrl-Alt-[ : 摺疊全部\nCtrl-Alt-] : 展開全部\">摺疊模板參數</span>",
13
+ "addon-codeFolding": "<span title=\"Ctrl-Shift-[ : 摺疊\nCtrl-Shift-] : 展開\nCtrl-Alt-[ : 摺疊全部\nCtrl-Alt-] : 展開全部\">程式碼折疊</span>",
14
+ "addon-codeFolding-mac": "<span title=\"Cmd-Alt-[ : 摺疊\nCmd-Alt-] : 展開\nCtrl-Alt-[ : 摺疊全部\nCtrl-Alt-] : 展開全部\">程式碼折疊</span>",
15
15
  "addon-escape": "<span title=\"Ctrl-[ : HTML編碼\nCtrl-] : URL解碼或編碼\">添加HTML和URL編碼快速鍵</span>",
16
16
  "addon-escape-mac": "<span title=\"Cmd-[ : HTML編碼\nCmd-] : URL解碼或編碼\">添加HTML和URL編碼快速鍵</span>",
17
17
  "addon-highlightActiveLine": "突出顯示游標所在行",
@@ -20,11 +20,11 @@
20
20
  "addon-highlightWhitespace": "顯示空白字符",
21
21
  "addon-indent": "縮排",
22
22
  "addon-lint": "語法檢查",
23
- "addon-openLinks": "CTRL+點擊可打開連結或模板頁面",
24
- "addon-openLinks-mac": "CMD+點擊可打開連結或模板頁面",
23
+ "addon-openLinks": "CTRL+點擊可打開連結或嵌入包含的頁面",
24
+ "addon-openLinks-mac": "CMD+點擊可打開連結或嵌入包含的頁面",
25
25
  "addon-save": "將設定儲存至[[special:mypage/codemirror-mediawiki.json|使用者子頁面]]",
26
26
  "addon-tagMatching": "突出顯示匹配和未匹配的標籤",
27
- "addon-useMonaco": "新增的編輯區使用Monaco編輯器(測試版)",
27
+ "addon-useMonaco": "新增的編輯區使用Monaco編輯器",
28
28
  "addon-wikiEditor": "載入WikiEditor工具列",
29
29
  "no-wikiEditor": "未找到WikiEditor擴展。",
30
30
  "save-success": "設定儲存至[[special:mypage/codemirror-mediawiki.json|使用者子頁面]]。",
@@ -49,5 +49,5 @@
49
49
  "phrase-replace": "取代",
50
50
  "phrase-replace-all": "全部取代",
51
51
  "phrase-unfold": "展開",
52
- "phrase-Fold-template-parameters": "摺疊模板參數"
52
+ "phrase-Fold-template-parameters": "摺疊模板、解析器函數或擴展標籤"
53
53
  }
package/mediawiki.css CHANGED
@@ -14,6 +14,7 @@
14
14
  }
15
15
  .cm-mw-template-name,
16
16
  .cm-mw-link-pagename,
17
+ .cm-mw-parserfunction.cm-mw-pagename,
17
18
  .cm-mw-extlink-protocol,
18
19
  .cm-mw-extlink,
19
20
  .cm-mw-free-extlink-protocol,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/codemirror-mediawiki",
3
- "version": "2.11.2",
3
+ "version": "2.12.0",
4
4
  "description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
5
5
  "keywords": [
6
6
  "mediawiki",