@bhsd/codemirror-mediawiki 1.1.11 → 1.1.12

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.
Files changed (2) hide show
  1. package/config.json +209 -49
  2. package/package.json +1 -1
package/config.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "tagModes": {
3
3
  "ref": "text/mediawiki",
4
+ "choose": "text/mediawiki",
5
+ "option": "text/mediawiki",
6
+ "indicator": "text/mediawiki",
7
+ "poem": "text/mediawiki",
4
8
  "pre": "mw-tag-pre",
5
9
  "nowiki": "mw-tag-nowiki"
6
10
  },
@@ -10,219 +14,375 @@
10
14
  "gallery": true,
11
15
  "indicator": true,
12
16
  "poem": true,
17
+ "charinsert": true,
13
18
  "ref": true,
14
19
  "references": true,
15
- "categorytree": true
20
+ "choose": true,
21
+ "option": true,
22
+ "categorytree": true,
23
+ "dynamicpagelist": true,
24
+ "flashmp3": true,
25
+ "imagemap": true,
26
+ "inputbox": true,
27
+ "modernsoundmanager": true,
28
+ "poll": true,
29
+ "sm2": true,
30
+ "templatestyles": true
16
31
  },
17
32
  "doubleUnderscore": [
18
33
  {
34
+ "__无目录__": "notoc",
19
35
  "__notoc__": "notoc",
36
+ "__无图库__": "nogallery",
20
37
  "__nogallery__": "nogallery",
38
+ "__强显目录__": "forcetoc",
21
39
  "__forcetoc__": "forcetoc",
40
+ "__目录__": "toc",
22
41
  "__toc__": "toc",
42
+ "__无编辑段落__": "noeditsection",
43
+ "__无段落编辑__": "noeditsection",
23
44
  "__noeditsection__": "noeditsection",
45
+ "__不转换标题__": "notitleconvert",
24
46
  "__notitleconvert__": "notitleconvert",
25
47
  "__notc__": "notitleconvert",
48
+ "__不转换内容__": "nocontentconvert",
26
49
  "__nocontentconvert__": "nocontentconvert",
27
50
  "__nocc__": "nocontentconvert"
28
51
  },
29
52
  {
53
+ "__新段落链接__": "newsectionlink",
30
54
  "__NEWSECTIONLINK__": "newsectionlink",
55
+ "__无新段落链接__": "nonewsectionlink",
31
56
  "__NONEWSECTIONLINK__": "nonewsectionlink",
57
+ "__隐藏分类__": "hiddencat",
32
58
  "__HIDDENCAT__": "hiddencat",
33
59
  "__EXPECTUNUSEDCATEGORY__": "expectunusedcategory",
60
+ "__索引__": "index",
34
61
  "__INDEX__": "index",
62
+ "__无索引__": "noindex",
35
63
  "__NOINDEX__": "noindex",
36
- "__STATICREDIRECT__": "staticredirect",
37
- "__NOGLOBAL__": "noglobal",
38
- "__EXPECTED_UNCONNECTED_PAGE__": "expectedUnconnectedPage"
64
+ "__静态重定向__": "staticredirect",
65
+ "__STATICREDIRECT__": "staticredirect"
39
66
  }
40
67
  ],
41
68
  "functionSynonyms": [
42
69
  {
70
+ "名称空间": "ns",
43
71
  "ns": "ns",
72
+ "名称空间e": "nse",
44
73
  "nse": "nse",
74
+ "url编码": "urlencode",
45
75
  "urlencode": "urlencode",
76
+ "小写首字": "lcfirst",
46
77
  "lcfirst": "lcfirst",
78
+ "大写首字": "ucfirst",
47
79
  "ucfirst": "ucfirst",
80
+ "小写": "lc",
48
81
  "lc": "lc",
82
+ "大写": "uc",
49
83
  "uc": "uc",
84
+ "本地url": "localurl",
50
85
  "localurl": "localurl",
86
+ "本地urle": "localurle",
51
87
  "localurle": "localurle",
88
+ "完整url": "fullurl",
52
89
  "fullurl": "fullurl",
90
+ "完整url等同": "fullurle",
53
91
  "fullurle": "fullurle",
92
+ "规范url": "canonicalurl",
54
93
  "canonicalurl": "canonicalurl",
94
+ "规范url等同": "canonicalurle",
55
95
  "canonicalurle": "canonicalurle",
96
+ "格式化数字": "formatnum",
56
97
  "formatnum": "formatnum",
98
+ "语法": "grammar",
57
99
  "grammar": "grammar",
100
+ "性别": "gender",
58
101
  "gender": "gender",
102
+ "复数": "plural",
59
103
  "plural": "plural",
60
104
  "bidi": "bidi",
105
+ "#语言": "language",
61
106
  "#language": "language",
107
+ "左填充": "padleft",
62
108
  "padleft": "padleft",
109
+ "右填充": "padright",
63
110
  "padright": "padright",
111
+ "锚编码": "anchorencode",
64
112
  "anchorencode": "anchorencode",
113
+ "文件路径": "filepath",
65
114
  "filepath": "filepath",
115
+ "页面id": "pageid",
66
116
  "pageid": "pageid",
117
+ "界面": "int",
67
118
  "int": "int",
119
+ "#特殊": "special",
68
120
  "#special": "special",
121
+ "#特殊等同": "speciale",
69
122
  "#speciale": "speciale",
123
+ "#标记": "tag",
70
124
  "#tag": "tag",
125
+ "#格式化日期": "formatdate",
126
+ "#日期格式化": "formatdate",
71
127
  "#formatdate": "formatdate",
72
128
  "#dateformat": "formatdate",
73
- "#invoke": "invoke",
129
+ "#regex": "regex",
130
+ "#regexp": "regexp",
131
+ "#while": "while",
132
+ "#dowhile": "dowhile",
133
+ "#eval": "eval",
134
+ "#loop": "loop",
135
+ "#forargs": "forargs",
136
+ "#fornumargs": "fornumargs",
137
+ "#非空式": "if",
138
+ "#若": "if",
139
+ "#如果": "if",
74
140
  "#if": "if",
141
+ "#相同式": "ifeq",
142
+ "#匹配式": "ifeq",
143
+ "#若相等": "ifeq",
144
+ "#如果相等": "ifeq",
75
145
  "#ifeq": "ifeq",
146
+ "#多选式": "switch",
147
+ "#多条件式": "switch",
148
+ "#双射式": "switch",
149
+ "#开关": "switch",
150
+ "#转换": "switch",
76
151
  "#switch": "switch",
152
+ "#存在式": "ifexist",
153
+ "#若有": "ifexist",
154
+ "#如有": "ifexist",
77
155
  "#ifexist": "ifexist",
156
+ "#若表达式": "ifexpr",
78
157
  "#ifexpr": "ifexpr",
158
+ "#错误式": "iferror",
159
+ "#如果错误": "iferror",
79
160
  "#iferror": "iferror",
161
+ "#时间": "time",
80
162
  "#time": "time",
163
+ "#时间l": "timel",
81
164
  "#timel": "timel",
165
+ "#计算式": "expr",
166
+ "#表达式": "expr",
82
167
  "#expr": "expr",
83
168
  "#rel2abs": "rel2abs",
169
+ "#related": "related",
170
+ "#标题组成部分": "titleparts",
84
171
  "#titleparts": "titleparts",
172
+ "#choose": "choose",
173
+ "#调用": "invoke",
174
+ "#invoke": "invoke",
175
+ "#var": "var",
176
+ "#varexists": "varexists",
177
+ "#var_final": "var_final",
178
+ "#vardefine": "vardefine",
179
+ "#vardefineecho": "vardefineecho",
180
+ "#小工具": "widget",
181
+ "#widget": "widget",
85
182
  "#categorytree": "categorytree",
183
+ "#cscore": "cscore",
184
+ "条目路径": "articlepath",
86
185
  "articlepath": "articlepath",
186
+ "服务器": "server",
87
187
  "server": "server",
188
+ "服务器名": "servername",
88
189
  "servername": "servername",
190
+ "脚本路径": "scriptpath",
89
191
  "scriptpath": "scriptpath",
192
+ "样式路径": "stylepath",
90
193
  "stylepath": "stylepath",
91
- "msg": "msg",
92
- "raw": "raw",
93
- "msgnw": "msgnw",
94
- "subst": "subst",
95
- "safesubst": "safesubst"
194
+ "choose": "choose"
96
195
  },
97
196
  {
197
+ "页面数": "numberofpages",
98
198
  "NUMBEROFPAGES": "numberofpages",
199
+ "用户数": "numberofusers",
99
200
  "NUMBEROFUSERS": "numberofusers",
201
+ "活跃用户数": "numberofactiveusers",
100
202
  "NUMBEROFACTIVEUSERS": "numberofactiveusers",
203
+ "条目数": "numberofarticles",
101
204
  "NUMBEROFARTICLES": "numberofarticles",
205
+ "文件数": "numberoffiles",
102
206
  "NUMBEROFFILES": "numberoffiles",
207
+ "管理员数": "numberofadmins",
103
208
  "NUMBEROFADMINS": "numberofadmins",
209
+ "组中用户数": "numberingroup",
104
210
  "NUMBERINGROUP": "numberingroup",
105
211
  "NUMINGROUP": "numberingroup",
212
+ "编辑数": "numberofedits",
106
213
  "NUMBEROFEDITS": "numberofedits",
214
+ "默认排序": "defaultsort",
215
+ "默认排序关键字": "defaultsort",
216
+ "默认分类排序": "defaultsort",
107
217
  "DEFAULTSORT": "defaultsort",
108
218
  "DEFAULTSORTKEY": "defaultsort",
109
219
  "DEFAULTCATEGORYSORT": "defaultsort",
220
+ "分类中页面数": "pagesincategory",
110
221
  "PAGESINCATEGORY": "pagesincategory",
111
222
  "PAGESINCAT": "pagesincategory",
223
+ "页面大小": "pagesize",
112
224
  "PAGESIZE": "pagesize",
225
+ "保护级别": "protectionlevel",
113
226
  "PROTECTIONLEVEL": "protectionlevel",
114
227
  "PROTECTIONEXPIRY": "protectionexpiry",
228
+ "名字空间等同": "namespacee",
115
229
  "NAMESPACEE": "namespacee",
230
+ "名字空间编号": "namespacenumber",
116
231
  "NAMESPACENUMBER": "namespacenumber",
232
+ "讨论空间": "talkspace",
233
+ "讨论名字空间": "talkspace",
117
234
  "TALKSPACE": "talkspace",
235
+ "讨论空间等同": "talkspacee",
236
+ "讨论名字空间等同": "talkspacee",
118
237
  "TALKSPACEE": "talkspacee",
238
+ "主名字空间": "subjectspace",
239
+ "条目名字空间": "subjectspace",
119
240
  "SUBJECTSPACE": "subjectspace",
120
241
  "ARTICLESPACE": "subjectspace",
242
+ "主名字空间等同": "subjectspacee",
243
+ "条目名字空间等同": "subjectspacee",
121
244
  "SUBJECTSPACEE": "subjectspacee",
122
245
  "ARTICLESPACEE": "subjectspacee",
246
+ "页名": "pagename",
247
+ "页面名": "pagename",
248
+ "页面名称": "pagename",
123
249
  "PAGENAME": "pagename",
250
+ "页面名等同": "pagenamee",
251
+ "页面名称等同": "pagenamee",
124
252
  "PAGENAMEE": "pagenamee",
253
+ "页面全称": "fullpagename",
254
+ "完整页面名称": "fullpagename",
125
255
  "FULLPAGENAME": "fullpagename",
256
+ "完整页面名称等同": "fullpagenamee",
126
257
  "FULLPAGENAMEE": "fullpagenamee",
258
+ "根页面名称": "rootpagename",
127
259
  "ROOTPAGENAME": "rootpagename",
260
+ "根页面名称等同": "rootpagenamee",
128
261
  "ROOTPAGENAMEE": "rootpagenamee",
262
+ "基础页面名称": "basepagename",
129
263
  "BASEPAGENAME": "basepagename",
264
+ "基础页面名称等同": "basepagenamee",
130
265
  "BASEPAGENAMEE": "basepagenamee",
266
+ "子页面名称": "subpagename",
131
267
  "SUBPAGENAME": "subpagename",
268
+ "子页面名称等同": "subpagenamee",
132
269
  "SUBPAGENAMEE": "subpagenamee",
270
+ "讨论页面名称": "talkpagename",
271
+ "对话页面名称": "talkpagename",
133
272
  "TALKPAGENAME": "talkpagename",
273
+ "讨论页面名称等同": "talkpagenamee",
274
+ "对话页面名称等同": "talkpagenamee",
134
275
  "TALKPAGENAMEE": "talkpagenamee",
276
+ "主名字空间页面名称": "subjectpagename",
277
+ "条目页面名称": "subjectpagename",
135
278
  "SUBJECTPAGENAME": "subjectpagename",
136
279
  "ARTICLEPAGENAME": "subjectpagename",
280
+ "主名字空间页面名称等同": "subjectpagenamee",
281
+ "条目页面名称等同": "subjectpagenamee",
137
282
  "SUBJECTPAGENAMEE": "subjectpagenamee",
138
283
  "ARTICLEPAGENAMEE": "subjectpagenamee",
284
+ "修订ID": "revisionid",
139
285
  "REVISIONID": "revisionid",
286
+ "修订日": "revisionday",
140
287
  "REVISIONDAY": "revisionday",
288
+ "修订日2": "revisionday2",
141
289
  "REVISIONDAY2": "revisionday2",
290
+ "修订月": "revisionmonth",
142
291
  "REVISIONMONTH": "revisionmonth",
292
+ "修订月1": "revisionmonth1",
143
293
  "REVISIONMONTH1": "revisionmonth1",
294
+ "修订年": "revisionyear",
144
295
  "REVISIONYEAR": "revisionyear",
296
+ "修订时间戳": "revisiontimestamp",
145
297
  "REVISIONTIMESTAMP": "revisiontimestamp",
298
+ "修订用户": "revisionuser",
146
299
  "REVISIONUSER": "revisionuser",
300
+ "级联来源": "cascadingsources",
147
301
  "CASCADINGSOURCES": "cascadingsources",
302
+ "名字空间": "namespace",
148
303
  "NAMESPACE": "namespace",
304
+ "显示标题": "displaytitle",
149
305
  "DISPLAYTITLE": "displaytitle",
150
306
  "!": "!",
307
+ "本月": "currentmonth",
308
+ "本月2": "currentmonth",
151
309
  "CURRENTMONTH": "currentmonth",
152
310
  "CURRENTMONTH2": "currentmonth",
311
+ "本月1": "currentmonth1",
153
312
  "CURRENTMONTH1": "currentmonth1",
313
+ "本月名": "currentmonthname",
314
+ "本月名称": "currentmonthname",
154
315
  "CURRENTMONTHNAME": "currentmonthname",
316
+ "本月名属格": "currentmonthnamegen",
317
+ "本月名称属格": "currentmonthnamegen",
155
318
  "CURRENTMONTHNAMEGEN": "currentmonthnamegen",
319
+ "本月简称": "currentmonthabbrev",
156
320
  "CURRENTMONTHABBREV": "currentmonthabbrev",
321
+ "今天": "currentday",
157
322
  "CURRENTDAY": "currentday",
323
+ "今天2": "currentday2",
158
324
  "CURRENTDAY2": "currentday2",
325
+ "星期": "currentdayname",
326
+ "今天名": "currentdayname",
327
+ "今天名称": "currentdayname",
159
328
  "CURRENTDAYNAME": "currentdayname",
329
+ "今年": "currentyear",
160
330
  "CURRENTYEAR": "currentyear",
331
+ "当前时间": "currenttime",
332
+ "此时": "currenttime",
161
333
  "CURRENTTIME": "currenttime",
334
+ "当前小时": "currenthour",
162
335
  "CURRENTHOUR": "currenthour",
336
+ "本地月": "localmonth",
337
+ "本地月2": "localmonth",
163
338
  "LOCALMONTH": "localmonth",
164
339
  "LOCALMONTH2": "localmonth",
340
+ "本地月1": "localmonth1",
165
341
  "LOCALMONTH1": "localmonth1",
342
+ "本地月份名": "localmonthname",
166
343
  "LOCALMONTHNAME": "localmonthname",
344
+ "本地月历": "localmonthnamegen",
167
345
  "LOCALMONTHNAMEGEN": "localmonthnamegen",
346
+ "本地月缩写": "localmonthabbrev",
168
347
  "LOCALMONTHABBREV": "localmonthabbrev",
348
+ "本地日": "localday",
169
349
  "LOCALDAY": "localday",
350
+ "本地日2": "localday2",
170
351
  "LOCALDAY2": "localday2",
352
+ "本地日名": "localdayname",
171
353
  "LOCALDAYNAME": "localdayname",
354
+ "本地年": "localyear",
172
355
  "LOCALYEAR": "localyear",
356
+ "本地时间": "localtime",
173
357
  "LOCALTIME": "localtime",
358
+ "本地小时": "localhour",
174
359
  "LOCALHOUR": "localhour",
360
+ "站点名称": "sitename",
175
361
  "SITENAME": "sitename",
362
+ "本周": "currentweek",
176
363
  "CURRENTWEEK": "currentweek",
364
+ "当前DOW": "currentdow",
177
365
  "CURRENTDOW": "currentdow",
366
+ "本地周": "localweek",
178
367
  "LOCALWEEK": "localweek",
368
+ "本地DOW": "localdow",
179
369
  "LOCALDOW": "localdow",
370
+ "修订大小": "revisionsize",
180
371
  "REVISIONSIZE": "revisionsize",
372
+ "当前版本": "currentversion",
181
373
  "CURRENTVERSION": "currentversion",
374
+ "当前时间戳": "currenttimestamp",
182
375
  "CURRENTTIMESTAMP": "currenttimestamp",
376
+ "本地时间戳": "localtimestamp",
183
377
  "LOCALTIMESTAMP": "localtimestamp",
378
+ "方向标记": "directionmark",
379
+ "DIRECTIONMARK": "directionmark",
380
+ "DIRMARK": "directionmark",
381
+ "内容语言": "contentlanguage",
184
382
  "CONTENTLANGUAGE": "contentlanguage",
185
383
  "CONTENTLANG": "contentlanguage",
186
384
  "PAGELANGUAGE": "pagelanguage"
187
385
  }
188
386
  ],
189
- "urlProtocols": "bitcoin\\:|ftp\\:\\/\\/|ftps\\:\\/\\/|geo\\:|git\\:\\/\\/|gopher\\:\\/\\/|http\\:\\/\\/|https\\:\\/\\/|irc\\:\\/\\/|ircs\\:\\/\\/|magnet\\:|mailto\\:|mms\\:\\/\\/|news\\:|nntp\\:\\/\\/|redis\\:\\/\\/|sftp\\:\\/\\/|sip\\:|sips\\:|sms\\:|ssh\\:\\/\\/|svn\\:\\/\\/|tel\\:|telnet\\:\\/\\/|urn\\:|worldwind\\:\\/\\/|xmpp\\:|\\/\\/",
190
- "redirect": [
191
- "#REDIRECT"
192
- ],
193
- "img": {
194
- "thumbnail": "img_thumbnail",
195
- "thumb": "img_thumbnail",
196
- "thumbnail=$1": "img_manualthumb",
197
- "thumb=$1": "img_manualthumb",
198
- "right": "img_right",
199
- "left": "img_left",
200
- "none": "img_none",
201
- "$1px": "img_width",
202
- "center": "img_center",
203
- "centre": "img_center",
204
- "framed": "img_framed",
205
- "enframed": "img_framed",
206
- "frame": "img_framed",
207
- "frameless": "img_frameless",
208
- "lang=$1": "img_lang",
209
- "page=$1": "img_page",
210
- "page $1": "img_page",
211
- "upright": "img_upright",
212
- "upright=$1": "img_upright",
213
- "upright $1": "img_upright",
214
- "border": "img_border",
215
- "baseline": "img_baseline",
216
- "sub": "img_sub",
217
- "super": "img_super",
218
- "sup": "img_super",
219
- "top": "img_top",
220
- "text-top": "img_text_top",
221
- "middle": "img_middle",
222
- "bottom": "img_bottom",
223
- "text-bottom": "img_text_bottom",
224
- "link=$1": "img_link",
225
- "alt=$1": "img_alt",
226
- "class=$1": "img_class"
227
- }
387
+ "urlProtocols": "bitcoin\\:|ftp\\:\\/\\/|ftps\\:\\/\\/|geo\\:|git\\:\\/\\/|gopher\\:\\/\\/|http\\:\\/\\/|https\\:\\/\\/|irc\\:\\/\\/|ircs\\:\\/\\/|magnet\\:|mailto\\:|mms\\:\\/\\/|news\\:|nntp\\:\\/\\/|redis\\:\\/\\/|sftp\\:\\/\\/|sip\\:|sips\\:|sms\\:|ssh\\:\\/\\/|svn\\:\\/\\/|tel\\:|telnet\\:\\/\\/|urn\\:|worldwind\\:\\/\\/|xmpp\\:|\\/\\/"
228
388
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/codemirror-mediawiki",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
5
5
  "keywords": [
6
6
  "mediawiki",