wikilint 2.16.0 → 2.16.1
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/config/default.json +0 -2
- package/config/zhwiki.json +0 -2
- package/data/.schema.json +56 -0
- package/data/signatures.json +2673 -0
- package/dist/base.d.mts +49 -9
- package/dist/base.d.ts +49 -9
- package/dist/index.d.ts +1 -1
- package/dist/lib/lsp.d.ts +31 -12
- package/dist/lib/lsp.js +241 -62
- package/dist/src/transclude.js +3 -2
- package/package.json +3 -2
|
@@ -0,0 +1,2673 @@
|
|
|
1
|
+
{
|
|
2
|
+
"behaviorSwitches": [
|
|
3
|
+
{
|
|
4
|
+
"aliases": [
|
|
5
|
+
"notoc",
|
|
6
|
+
"无目录",
|
|
7
|
+
"無目錄"
|
|
8
|
+
],
|
|
9
|
+
"description": "Hides the table of contents (TOC)."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"aliases": [
|
|
13
|
+
"forcetoc",
|
|
14
|
+
"强显目录",
|
|
15
|
+
"強制目錄"
|
|
16
|
+
],
|
|
17
|
+
"description": "Forces the table of contents to appear at its normal position (before the first header, overriding `__NOTOC__`)."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"aliases": [
|
|
21
|
+
"toc",
|
|
22
|
+
"目录",
|
|
23
|
+
"目錄"
|
|
24
|
+
],
|
|
25
|
+
"description": "Places a table of contents at the word's current position (overriding `__NOTOC__`). If this is used multiple times, the table of contents will appear at the first word's position."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"aliases": [
|
|
29
|
+
"noeditsection",
|
|
30
|
+
"无段落编辑",
|
|
31
|
+
"无编辑段落",
|
|
32
|
+
"無段落編輯"
|
|
33
|
+
],
|
|
34
|
+
"description": "Hides the section edit links beside headings. Use of this in a template will extend the effect to that template, the pages it's included on, and any other templates included on the same page."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"aliases": [
|
|
38
|
+
"newsectionlink",
|
|
39
|
+
"新段落链接"
|
|
40
|
+
],
|
|
41
|
+
"description": "Adds a link beside the \"Edit\" tab for adding a new section on a non-talk page."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"aliases": [
|
|
45
|
+
"nonewsectionlink",
|
|
46
|
+
"无新段落链接"
|
|
47
|
+
],
|
|
48
|
+
"description": "Removes the link beside the \"Edit\" tab on pages in talk namespaces."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"aliases": [
|
|
52
|
+
"nogallery",
|
|
53
|
+
"无图库",
|
|
54
|
+
"無圖庫"
|
|
55
|
+
],
|
|
56
|
+
"description": "Used on a category page, replaces thumbnails in the category view with normal links."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"aliases": [
|
|
60
|
+
"hiddencat",
|
|
61
|
+
"隐藏分类",
|
|
62
|
+
"隱藏分類"
|
|
63
|
+
],
|
|
64
|
+
"description": "Used on a category page, hides the category from the lists of categories in its members and subcategories (there is an option in the user preferences to show them)."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"aliases": [
|
|
68
|
+
"expectunusedcategory"
|
|
69
|
+
],
|
|
70
|
+
"description": "Used on a category page, removes the category from Special:UnusedCategories."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"aliases": [
|
|
74
|
+
"nocontentconvert",
|
|
75
|
+
"nocc",
|
|
76
|
+
"不转换内容",
|
|
77
|
+
"不轉換內容"
|
|
78
|
+
],
|
|
79
|
+
"description": "On wikis with language variants, don't perform any content language conversion in article display."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"aliases": [
|
|
83
|
+
"notitleconvert",
|
|
84
|
+
"notc",
|
|
85
|
+
"不转换标题",
|
|
86
|
+
"不轉換標題"
|
|
87
|
+
],
|
|
88
|
+
"description": "On wikis with language variants, don't perform language conversion on the title (all other content is converted)."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"aliases": [
|
|
92
|
+
"index",
|
|
93
|
+
"索引"
|
|
94
|
+
],
|
|
95
|
+
"description": "Tell search engines to index the page."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"aliases": [
|
|
99
|
+
"noindex",
|
|
100
|
+
"无索引"
|
|
101
|
+
],
|
|
102
|
+
"description": "Tell search engines not to index the page (i.e. do not list in search engines' results)."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"aliases": [
|
|
106
|
+
"staticredirect",
|
|
107
|
+
"静态重定向",
|
|
108
|
+
"靜態重新導向"
|
|
109
|
+
],
|
|
110
|
+
"description": "On redirect pages, don't allow MediaWiki to automatically update the link when someone moves a page and checks \"Update any redirects that point to the original title\"."
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"aliases": [
|
|
114
|
+
"expectunusedtemplate"
|
|
115
|
+
],
|
|
116
|
+
"description": "Used on a template page, removes the page from Special:UnusedTemplates."
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"aliases": [
|
|
120
|
+
"noglobal",
|
|
121
|
+
"禁用全域用户页"
|
|
122
|
+
],
|
|
123
|
+
"description": "Disables the global user page. If present on the central user page, will prevent it from being displayed on remote wikis, and it also determines whether a link to a user page on remote wiki should be red or blue."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"aliases": [
|
|
127
|
+
"disambig",
|
|
128
|
+
"消除歧义"
|
|
129
|
+
],
|
|
130
|
+
"description": "Identifies a disambiguation page."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"aliases": [
|
|
134
|
+
"archivedtalk",
|
|
135
|
+
"已存档讨论"
|
|
136
|
+
],
|
|
137
|
+
"description": "Hides \"reply\" links from discussions on archived pages."
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"aliases": [
|
|
141
|
+
"notalk",
|
|
142
|
+
"禁用讨论"
|
|
143
|
+
],
|
|
144
|
+
"description": "Makes a page in a talk namespace not be treated like a talk page."
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"parserFunctions": [
|
|
148
|
+
{
|
|
149
|
+
"aliases": [
|
|
150
|
+
"localurl",
|
|
151
|
+
"本地url"
|
|
152
|
+
],
|
|
153
|
+
"signatures": [
|
|
154
|
+
[
|
|
155
|
+
{
|
|
156
|
+
"label": "page name"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
[
|
|
160
|
+
{
|
|
161
|
+
"label": "page name"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"label": "query string"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
],
|
|
168
|
+
"description": "The relative path to the title."
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"aliases": [
|
|
172
|
+
"localurle",
|
|
173
|
+
"本地urle"
|
|
174
|
+
],
|
|
175
|
+
"signatures": [
|
|
176
|
+
[
|
|
177
|
+
{
|
|
178
|
+
"label": "page name"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
{
|
|
183
|
+
"label": "page name"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"label": "query string"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
],
|
|
190
|
+
"description": "The percent-encoded relative path to the title."
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"aliases": [
|
|
194
|
+
"fullurl",
|
|
195
|
+
"完整url"
|
|
196
|
+
],
|
|
197
|
+
"signatures": [
|
|
198
|
+
[
|
|
199
|
+
{
|
|
200
|
+
"label": "page name"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
[
|
|
204
|
+
{
|
|
205
|
+
"label": "page name"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"label": "query string"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
],
|
|
212
|
+
"description": "A protocol-relative path to the title, which depends on the configuration setting for the local wiki (and so may or may not start with `http(s)://`). This will also resolve [interwiki](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Interwiki) prefixes. **Note:** Unbracketed (plain) protocol-relative links are not automagically linked."
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"aliases": [
|
|
216
|
+
"fullurle",
|
|
217
|
+
"完整url等同"
|
|
218
|
+
],
|
|
219
|
+
"signatures": [
|
|
220
|
+
[
|
|
221
|
+
{
|
|
222
|
+
"label": "page name"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
[
|
|
226
|
+
{
|
|
227
|
+
"label": "page name"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"label": "query string"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
],
|
|
234
|
+
"description": "A percent-encoded protocol-relative path to the title, which depends on the configuration setting for the local wiki (and so may or may not start with `http(s)://`). This will also resolve [interwiki](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Interwiki) prefixes. **Note:** Unbracketed (plain) protocol-relative links are not automagically linked."
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"aliases": [
|
|
238
|
+
"canonicalurl",
|
|
239
|
+
"规范url"
|
|
240
|
+
],
|
|
241
|
+
"signatures": [
|
|
242
|
+
[
|
|
243
|
+
{
|
|
244
|
+
"label": "page name"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
[
|
|
248
|
+
{
|
|
249
|
+
"label": "page name"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"label": "query string"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
],
|
|
256
|
+
"description": "The absolute path to the title, using the canonical URL. This will also resolve [interwiki](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Interwiki) prefixes."
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"aliases": [
|
|
260
|
+
"canonicalurle",
|
|
261
|
+
"规范url等同"
|
|
262
|
+
],
|
|
263
|
+
"signatures": [
|
|
264
|
+
[
|
|
265
|
+
{
|
|
266
|
+
"label": "page name"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
{
|
|
271
|
+
"label": "page name"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"label": "query string"
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
],
|
|
278
|
+
"description": "The percent-encoded absolute path to the title, using the canonical URL. This will also resolve [interwiki](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Interwiki) prefixes."
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"aliases": [
|
|
282
|
+
"filepath",
|
|
283
|
+
"文件路径"
|
|
284
|
+
],
|
|
285
|
+
"signatures": [
|
|
286
|
+
[
|
|
287
|
+
{
|
|
288
|
+
"label": "file name"
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
[
|
|
292
|
+
{
|
|
293
|
+
"label": "file name"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"label": "nowiki",
|
|
297
|
+
"const": true
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
[
|
|
301
|
+
{
|
|
302
|
+
"label": "file name"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"label": "thumbnail size"
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
],
|
|
309
|
+
"description": "A protocol-relative path to the full size or thumbnail of a media file."
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"aliases": [
|
|
313
|
+
"urlencode",
|
|
314
|
+
"url编码"
|
|
315
|
+
],
|
|
316
|
+
"signatures": [
|
|
317
|
+
[
|
|
318
|
+
{
|
|
319
|
+
"label": "string"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
[
|
|
323
|
+
{
|
|
324
|
+
"label": "string"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"label": "QUERY",
|
|
328
|
+
"const": true
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
[
|
|
332
|
+
{
|
|
333
|
+
"label": "string"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"label": "WIKI",
|
|
337
|
+
"const": true
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
[
|
|
341
|
+
{
|
|
342
|
+
"label": "string"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"label": "PATH",
|
|
346
|
+
"const": true
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
],
|
|
350
|
+
"description": "The input encoded for use in URLs.\n\nEncoding:\n|code|space|\n|:-:|:-:|\n|*none*|+|\n|QUERY|+|\n|WIKI|_|\n|PATH|%20|"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"aliases": [
|
|
354
|
+
"anchorencode",
|
|
355
|
+
"锚编码"
|
|
356
|
+
],
|
|
357
|
+
"signatures": [
|
|
358
|
+
[
|
|
359
|
+
{
|
|
360
|
+
"label": "string"
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
],
|
|
364
|
+
"description": "The input encoded for use in URL section anchors (after the “#” symbol in a URL)."
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"aliases": [
|
|
368
|
+
"ns",
|
|
369
|
+
"名称空间"
|
|
370
|
+
],
|
|
371
|
+
"signatures": [
|
|
372
|
+
[
|
|
373
|
+
{
|
|
374
|
+
"label": "index"
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
[
|
|
378
|
+
{
|
|
379
|
+
"label": "canonical name or local alias"
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
],
|
|
383
|
+
"description": "The current localized name for the [namespace](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Namespace).\n\nThe main namespace has no name, i.e. `{{ns:0}}` returns an empty string."
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"aliases": [
|
|
387
|
+
"nse",
|
|
388
|
+
"名称空间e",
|
|
389
|
+
"名字空间e",
|
|
390
|
+
"命名空間e"
|
|
391
|
+
],
|
|
392
|
+
"signatures": [
|
|
393
|
+
[
|
|
394
|
+
{
|
|
395
|
+
"label": "index"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
[
|
|
399
|
+
{
|
|
400
|
+
"label": "canonical name or local alias"
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
],
|
|
404
|
+
"description": "It returns the current localized name for the [namespace](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Namespace), but it replaces spaces with underscores, making it usable in external links."
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"aliases": [
|
|
408
|
+
"formatnum",
|
|
409
|
+
"格式化数字"
|
|
410
|
+
],
|
|
411
|
+
"signatures": [
|
|
412
|
+
[
|
|
413
|
+
{
|
|
414
|
+
"label": "unformatted number"
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
[
|
|
418
|
+
{
|
|
419
|
+
"label": "formatnum-formatted number"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"label": "R",
|
|
423
|
+
"const": true
|
|
424
|
+
}
|
|
425
|
+
],
|
|
426
|
+
[
|
|
427
|
+
{
|
|
428
|
+
"label": "unformatted number"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"label": "NOSEP",
|
|
432
|
+
"const": true
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
],
|
|
436
|
+
"description": "Takes an unformatted number (Arabic, no group separators and `.` as decimal separator) and outputs it in the localized digit script and formatted with decimal and decimal group separators, according to the page language.\n\nThe `|R` parameter can be used to reverse the behavior, for use in mathematical situations: it's reliable and should be used only to deformat numbers which are known to be formatted exactly as formatnum formats them with the wiki's locale.\n\nThe `NOSEP` (\"no separators\") parameter means that no group / decimal separators are changed; formatnum will only transform the digits themselves in languages which don't use the [Hindu–Arabic numeral system](https://en.wikipedia.org/wiki/Hindu%E2%80%93Arabic_numeral_system). `NOSEP` can also prevent non-standard digit groupings you wouldn't expect."
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"aliases": [
|
|
440
|
+
"#dateformat",
|
|
441
|
+
"#formatdate",
|
|
442
|
+
"#格式化日期",
|
|
443
|
+
"#日期格式化"
|
|
444
|
+
],
|
|
445
|
+
"signatures": [
|
|
446
|
+
[
|
|
447
|
+
{
|
|
448
|
+
"label": "date"
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
[
|
|
452
|
+
{
|
|
453
|
+
"label": "date"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"label": "format"
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
],
|
|
460
|
+
"description": "Formats an unlinked date based on user \"date format\" preference, and adds metadata tagging it as a formatted date. For logged-out users and those who have not set a date format in their preferences, dates can be given a default: `mdy`, `dmy`, `ymd`, `ISO 8601` (all case sensitive). If only the month and day are given, only `mdy` and `dmy` are valid. If a format is not specified or is invalid, the input format is used as a default. If the supplied date is not recognized as a valid date (specifically, if it contains any metadata such as from a nested use of these or similar templates), it is rendered unchanged, and no (additional) metadata is generated."
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"aliases": [
|
|
464
|
+
"lc",
|
|
465
|
+
"小写"
|
|
466
|
+
],
|
|
467
|
+
"signatures": [
|
|
468
|
+
[
|
|
469
|
+
{
|
|
470
|
+
"label": "string"
|
|
471
|
+
}
|
|
472
|
+
]
|
|
473
|
+
],
|
|
474
|
+
"description": "The lowercase input."
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"aliases": [
|
|
478
|
+
"lcfirst",
|
|
479
|
+
"小写首字"
|
|
480
|
+
],
|
|
481
|
+
"signatures": [
|
|
482
|
+
[
|
|
483
|
+
{
|
|
484
|
+
"label": "string"
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
],
|
|
488
|
+
"description": "The input with the very first character lowercase."
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"aliases": [
|
|
492
|
+
"uc",
|
|
493
|
+
"大写"
|
|
494
|
+
],
|
|
495
|
+
"signatures": [
|
|
496
|
+
[
|
|
497
|
+
{
|
|
498
|
+
"label": "string"
|
|
499
|
+
}
|
|
500
|
+
]
|
|
501
|
+
],
|
|
502
|
+
"description": "The uppercase input."
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"aliases": [
|
|
506
|
+
"ucfirst",
|
|
507
|
+
"大写首字"
|
|
508
|
+
],
|
|
509
|
+
"signatures": [
|
|
510
|
+
[
|
|
511
|
+
{
|
|
512
|
+
"label": "string"
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
],
|
|
516
|
+
"description": "The input with the very first character uppercase."
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"aliases": [
|
|
520
|
+
"padleft",
|
|
521
|
+
"左填充"
|
|
522
|
+
],
|
|
523
|
+
"signatures": [
|
|
524
|
+
[
|
|
525
|
+
{
|
|
526
|
+
"label": "string"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"label": "string length"
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
[
|
|
533
|
+
{
|
|
534
|
+
"label": "string"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"label": "string length"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"label": "padding string"
|
|
541
|
+
}
|
|
542
|
+
]
|
|
543
|
+
],
|
|
544
|
+
"description": "Inserts a string of padding characters (character chosen in third parameter; default \"0\") of a specified length (second parameter) next to a chosen base character or variable (first parameter). The final digits or characters in the base replace the final characters in the padding. The padding string may be truncated if its length does not evenly divide the required number of characters."
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"aliases": [
|
|
548
|
+
"padright",
|
|
549
|
+
"右填充"
|
|
550
|
+
],
|
|
551
|
+
"signatures": [
|
|
552
|
+
[
|
|
553
|
+
{
|
|
554
|
+
"label": "string"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"label": "string length"
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
[
|
|
561
|
+
{
|
|
562
|
+
"label": "string"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"label": "string length"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"label": "padding string"
|
|
569
|
+
}
|
|
570
|
+
]
|
|
571
|
+
],
|
|
572
|
+
"description": "Inserts a string of padding characters (character chosen in third parameter; default \"0\") of a specified length (second parameter) to the right side of a chosen base character or variable (first parameter). The padding string may be truncated if its length does not evenly divide the required number of characters."
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"aliases": [
|
|
576
|
+
"bidi"
|
|
577
|
+
],
|
|
578
|
+
"signatures": [
|
|
579
|
+
[
|
|
580
|
+
{
|
|
581
|
+
"label": "string"
|
|
582
|
+
}
|
|
583
|
+
]
|
|
584
|
+
],
|
|
585
|
+
"description": "Wraps the text in a script-appropriate directionality marker (either left-to-right (U+202A) or right-to-left (U+202B)) and a pop directionality formatting character (U+202C), to ensure directionality safety when using a mix of scripts in running text."
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"aliases": [
|
|
589
|
+
"#language",
|
|
590
|
+
"#语言",
|
|
591
|
+
"#語言"
|
|
592
|
+
],
|
|
593
|
+
"signatures": [
|
|
594
|
+
[],
|
|
595
|
+
[
|
|
596
|
+
{
|
|
597
|
+
"label": "language code"
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
[
|
|
601
|
+
{
|
|
602
|
+
"label": "language code"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"label": "target language code"
|
|
606
|
+
}
|
|
607
|
+
]
|
|
608
|
+
],
|
|
609
|
+
"description": "The full name of the language for the given [language code](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Language#Language_code): native name (language autonym) by default, name translated in target language if a target language code is specified. [Extension:CLDR](https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:CLDR) must be installed for the translation to work. If no argument is given, returns the name of the *target language* (for articles, the content language; for messages, the user language)."
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"aliases": [
|
|
613
|
+
"#bcp47"
|
|
614
|
+
],
|
|
615
|
+
"signatures": [
|
|
616
|
+
[],
|
|
617
|
+
[
|
|
618
|
+
{
|
|
619
|
+
"label": "language code"
|
|
620
|
+
}
|
|
621
|
+
]
|
|
622
|
+
],
|
|
623
|
+
"description": "The [IETF BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag) language tag for the given [language code](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Language#Language_code). If no argument is given, returns the tag of the *target language* (for articles, the content language; for messages, the user language)."
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"aliases": [
|
|
627
|
+
"#dir"
|
|
628
|
+
],
|
|
629
|
+
"signatures": [
|
|
630
|
+
[],
|
|
631
|
+
[
|
|
632
|
+
{
|
|
633
|
+
"label": "language code"
|
|
634
|
+
}
|
|
635
|
+
],
|
|
636
|
+
[
|
|
637
|
+
{
|
|
638
|
+
"label": "language code"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"label": "bcp47",
|
|
642
|
+
"const": true
|
|
643
|
+
}
|
|
644
|
+
]
|
|
645
|
+
],
|
|
646
|
+
"description": "The directionality for the given [language code](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Language#Language_code), either `rtl` or `ltr`. If the optional second argument is `bcp47`, then the first argument is interpreted as a [BCP-47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag). If no argument is given, returns the directionality of the *target language* (for articles, the content language; for messages, the user language)."
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"aliases": [
|
|
650
|
+
"plural",
|
|
651
|
+
"复数"
|
|
652
|
+
],
|
|
653
|
+
"signatures": [
|
|
654
|
+
[
|
|
655
|
+
{
|
|
656
|
+
"label": "number"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"label": "singular form"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"label": "plural form"
|
|
663
|
+
}
|
|
664
|
+
]
|
|
665
|
+
],
|
|
666
|
+
"description": "Outputs a plural form appropriate for the given language. For English, the singular form (second parameter) is used if the absolute value of the first parameter is an expression equalling one; and the the plural form (third parameter) is used otherwise. See further documentation [on translatewiki.net](https://translatewiki.net/wiki/Plural#Plural_in_MediaWiki)."
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"aliases": [
|
|
670
|
+
"grammar",
|
|
671
|
+
"语法"
|
|
672
|
+
],
|
|
673
|
+
"signatures": [
|
|
674
|
+
[
|
|
675
|
+
{
|
|
676
|
+
"label": "inflection code"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"label": "noun"
|
|
680
|
+
}
|
|
681
|
+
]
|
|
682
|
+
],
|
|
683
|
+
"description": "Outputs the correct inflected form of the given word described by the inflection code after the colon. Grammar transformations are used for inflected languages like Polish. See also [grammar documentation on translatewiki.net](https://translatewiki.net/wiki/Grammar)."
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"aliases": [
|
|
687
|
+
"gender",
|
|
688
|
+
"性别",
|
|
689
|
+
"性別"
|
|
690
|
+
],
|
|
691
|
+
"signatures": [
|
|
692
|
+
[
|
|
693
|
+
{
|
|
694
|
+
"label": "username"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"label": "text for every gender"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
[
|
|
701
|
+
{
|
|
702
|
+
"label": "",
|
|
703
|
+
"const": true
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"label": "male text"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"label": "female text"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"label": "text for unspecified"
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
[
|
|
716
|
+
{
|
|
717
|
+
"label": ".",
|
|
718
|
+
"const": true
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"label": "male text"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"label": "female text"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"label": "text for unspecified"
|
|
728
|
+
}
|
|
729
|
+
]
|
|
730
|
+
],
|
|
731
|
+
"description": "A switch for the gender set in Special:Preferences.\n\n**Note:** If 3rd parameter is omitted and user hasn't defined their gender, then `male text` is returned.\n\nA blank username field (`{{GENDER:|`) means the current user, but can be used only in interface messages (MediaWiki namespace).\n\nA dot username (`.`) means the default user gender on this wiki."
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"aliases": [
|
|
735
|
+
"int",
|
|
736
|
+
"界面"
|
|
737
|
+
],
|
|
738
|
+
"signatures": [
|
|
739
|
+
[
|
|
740
|
+
{
|
|
741
|
+
"label": "message name"
|
|
742
|
+
}
|
|
743
|
+
],
|
|
744
|
+
[
|
|
745
|
+
{
|
|
746
|
+
"label": "message name"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"label": "...parameters",
|
|
750
|
+
"rest": true
|
|
751
|
+
}
|
|
752
|
+
]
|
|
753
|
+
],
|
|
754
|
+
"description": "Internationalizes (translates) the given **int**erface (MediaWiki namespace) message into the user language.\n\nYou may also use parameters with translations.\n\nParameters are designated in messages with: $1, $2, $3, etc."
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"aliases": [
|
|
758
|
+
"msgnw"
|
|
759
|
+
],
|
|
760
|
+
"signatures": [
|
|
761
|
+
[
|
|
762
|
+
{
|
|
763
|
+
"label": "page name"
|
|
764
|
+
}
|
|
765
|
+
]
|
|
766
|
+
],
|
|
767
|
+
"description": "The unexpanded wikitext is rendered (more or less, for details see [Help:Templates](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Templates#Usage))."
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"aliases": [
|
|
771
|
+
"#interwikilink"
|
|
772
|
+
],
|
|
773
|
+
"signatures": [
|
|
774
|
+
[
|
|
775
|
+
{
|
|
776
|
+
"label": "link prefix"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"label": "page title"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"label": "link text"
|
|
783
|
+
}
|
|
784
|
+
]
|
|
785
|
+
],
|
|
786
|
+
"description": "Creates an interwiki link."
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"aliases": [
|
|
790
|
+
"#interlanguagelink"
|
|
791
|
+
],
|
|
792
|
+
"signatures": [
|
|
793
|
+
[
|
|
794
|
+
{
|
|
795
|
+
"label": "link prefix"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"label": "page title"
|
|
799
|
+
}
|
|
800
|
+
]
|
|
801
|
+
],
|
|
802
|
+
"description": "Creates an interlanguage link."
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"aliases": [
|
|
806
|
+
"#special",
|
|
807
|
+
"#特殊"
|
|
808
|
+
],
|
|
809
|
+
"signatures": [
|
|
810
|
+
[
|
|
811
|
+
{
|
|
812
|
+
"label": "special page name"
|
|
813
|
+
}
|
|
814
|
+
]
|
|
815
|
+
],
|
|
816
|
+
"description": "The localized name for the given canonical Special: page."
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"aliases": [
|
|
820
|
+
"#speciale",
|
|
821
|
+
"#特殊等同"
|
|
822
|
+
],
|
|
823
|
+
"signatures": [
|
|
824
|
+
[
|
|
825
|
+
{
|
|
826
|
+
"label": "special page name"
|
|
827
|
+
}
|
|
828
|
+
]
|
|
829
|
+
],
|
|
830
|
+
"description": "The localized and URL-encoded name for the given canonical Special: page."
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"aliases": [
|
|
834
|
+
"#tag",
|
|
835
|
+
"#标记"
|
|
836
|
+
],
|
|
837
|
+
"signatures": [
|
|
838
|
+
[
|
|
839
|
+
{
|
|
840
|
+
"label": "tag name"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"label": "content"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"label": "attribute=value",
|
|
847
|
+
"rest": true
|
|
848
|
+
}
|
|
849
|
+
]
|
|
850
|
+
],
|
|
851
|
+
"description": "Alias for XML-style MediaWiki parser tags or extension tags. It allows a [pre-save transform of wiki code](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Tag_extensions#How_do_I_render_wikitext_in_my_extension?) and [Extension:ParserFunctions](https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:ParserFunctions) within tags before the tag is processed. It also prevents parsing of tags in conditional paths that aren't executed (like in `#if` statements). Content between tags is passed as the first parameter, and any attributes for the tags can be passed as subsequent parameters."
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"aliases": [
|
|
855
|
+
"#expr",
|
|
856
|
+
"#计算式",
|
|
857
|
+
"#表达式",
|
|
858
|
+
"#表達式"
|
|
859
|
+
],
|
|
860
|
+
"signatures": [
|
|
861
|
+
[
|
|
862
|
+
{
|
|
863
|
+
"label": "expression"
|
|
864
|
+
}
|
|
865
|
+
]
|
|
866
|
+
],
|
|
867
|
+
"description": "This function evaluates a mathematical expression and returns the calculated value.\n\nWhen evaluating using boolean algebra, zero evaluates to `false`, and any nonzero value, positive or negative, evaluates to `true`.\n\nAn empty input expression returns an empty string. Invalid expressions return one of several error messages, which can be caught using the `#iferror` function.\n\nThe available operators are listed below, in order of precedence:\n|Type|Operators|\n|-|-|\n|Grouping (parenthesis)|`( )`|\n|Numbers|`1234.5` `e` (2.718) `pi` (3.142)|\n| |binary operator `e`, unary `+`, `-`|\n|Unary|`not` `ceil` `trunc` `floor` `abs` `exp` `ln` `sin` `cos` `tan` `acos` `asin` `atan` `sqrt`|\n|Binary|`^`|\n|Binary|`*` `/` `div` `mod` `fmod`|\n|Binary|`+` `-`|\n|Round|`round`|\n|Logic|`=` `!=` `<>` `>` `<` `>=` `<=`|\n|Logic|`and`|\n|Logic|`or`|"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"aliases": [
|
|
871
|
+
"#if",
|
|
872
|
+
"#非空式",
|
|
873
|
+
"#若",
|
|
874
|
+
"#如果"
|
|
875
|
+
],
|
|
876
|
+
"signatures": [
|
|
877
|
+
[
|
|
878
|
+
{
|
|
879
|
+
"label": "test string"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"label": "value if test string is not empty"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"label": "value if test string is empty or only white space"
|
|
886
|
+
}
|
|
887
|
+
]
|
|
888
|
+
],
|
|
889
|
+
"description": "This function evaluates a test string and determines whether or not it is empty. A test string containing only white space is considered to be empty."
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"aliases": [
|
|
893
|
+
"#ifeq",
|
|
894
|
+
"#相同式",
|
|
895
|
+
"#匹配式",
|
|
896
|
+
"#若相等",
|
|
897
|
+
"#如果相等"
|
|
898
|
+
],
|
|
899
|
+
"signatures": [
|
|
900
|
+
[
|
|
901
|
+
{
|
|
902
|
+
"label": "string 1"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"label": "string 2"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"label": "value if identical"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"label": "value if different"
|
|
912
|
+
}
|
|
913
|
+
]
|
|
914
|
+
],
|
|
915
|
+
"description": "This parser function compares two input strings, determines whether they are identical, and returns one of two strings based on the result. If more comparisons and output strings are required, consider using `#switch`.\n\nIf both strings are valid numerical values, the strings are compared numerically.\n\nOtherwise, the comparison is made as text; this comparison is case-sensitive."
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"aliases": [
|
|
919
|
+
"#iferror",
|
|
920
|
+
"#错误式",
|
|
921
|
+
"#如果错误",
|
|
922
|
+
"#如果錯誤"
|
|
923
|
+
],
|
|
924
|
+
"signatures": [
|
|
925
|
+
[
|
|
926
|
+
{
|
|
927
|
+
"label": "test string"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"label": "value if error"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"label": "value if correct"
|
|
934
|
+
}
|
|
935
|
+
]
|
|
936
|
+
],
|
|
937
|
+
"description": "This function takes an input string and returns one of two results; the function evaluates to `true` if the input string contains an HTML object with `class=\"error\"`, as generated by other parser functions such as `#expr`, `#time` and `#rel2abs`, template errors such as loops and recursions, and other \"failsoft\" parser errors.\n\nSome errors may cause a tracking category to be added, using `{{#iferror:}}` will not suppress the addition of the category."
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"aliases": [
|
|
941
|
+
"#ifexpr",
|
|
942
|
+
"#若表达式",
|
|
943
|
+
"#若表達式"
|
|
944
|
+
],
|
|
945
|
+
"signatures": [
|
|
946
|
+
[
|
|
947
|
+
{
|
|
948
|
+
"label": "expression"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"label": "value if true"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"label": "value if false"
|
|
955
|
+
}
|
|
956
|
+
]
|
|
957
|
+
],
|
|
958
|
+
"description": "This function evaluates a mathematical expression and returns one of two strings depending on the boolean value of the result.\n\nThe `expression` input is evaluated exactly as for `#expr`, with the same operators being available. The output is then evaluated as a boolean expression.\n\nAn empty input expression evaluates to `false`.\n\nAn empty or wrong input expression (an error message is treated as an empty string; it is not equal to zero, so we get `value if true`)."
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"aliases": [
|
|
962
|
+
"#ifexist",
|
|
963
|
+
"#存在式",
|
|
964
|
+
"#若有",
|
|
965
|
+
"#如有"
|
|
966
|
+
],
|
|
967
|
+
"signatures": [
|
|
968
|
+
[
|
|
969
|
+
{
|
|
970
|
+
"label": "page title"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"label": "value if exists"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"label": "value if doesn't exist"
|
|
977
|
+
}
|
|
978
|
+
]
|
|
979
|
+
],
|
|
980
|
+
"description": "**[Expensive]** This function takes an input string, interprets it as a page title, and returns one of two values depending on whether or not the page exists on the local wiki.\n\nThe function evaluates to `true` for [system messages](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:System_message) that have been customized, and for [special pages](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Special_pages) that are defined by the software.\n\nIf a page checks a target using `#ifexist:`, then that page will appear in the Special:WhatLinksHere list for the target page.\n\n`#ifexist:` does not work with interwiki links.\n\nA page that does not exist and is tested for using #ifexist will end up on the [Wanted Pages](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:WantedPages)."
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"aliases": [
|
|
984
|
+
"#rel2abs"
|
|
985
|
+
],
|
|
986
|
+
"signatures": [
|
|
987
|
+
[
|
|
988
|
+
{
|
|
989
|
+
"label": "path"
|
|
990
|
+
}
|
|
991
|
+
],
|
|
992
|
+
[
|
|
993
|
+
{
|
|
994
|
+
"label": "path"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"label": "base path"
|
|
998
|
+
}
|
|
999
|
+
]
|
|
1000
|
+
],
|
|
1001
|
+
"description": "This function converts a relative file path into an absolute filepath.\n\nIf the `base path` is not specified, the full page name of the page will be used instead."
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"aliases": [
|
|
1005
|
+
"#switch",
|
|
1006
|
+
"#多选式",
|
|
1007
|
+
"#多条件式",
|
|
1008
|
+
"#双射式",
|
|
1009
|
+
"#开关",
|
|
1010
|
+
"#转换",
|
|
1011
|
+
"#轉換"
|
|
1012
|
+
],
|
|
1013
|
+
"signatures": [
|
|
1014
|
+
[
|
|
1015
|
+
{
|
|
1016
|
+
"label": "comparison string"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"label": "case=result",
|
|
1020
|
+
"rest": true
|
|
1021
|
+
}
|
|
1022
|
+
]
|
|
1023
|
+
],
|
|
1024
|
+
"description": "This function compares one input value against several test cases, returning an associated string if a match is found.\n\nThe default result must be the last parameter and must not contain a raw equals sign (an equals sign without `{{}}`). The default result is returned if no `case` string matches the `comparison string`. If as case matches however, its associated string will be returned.\n\nAlternatively, the default result may be explicitly declared with a `case` string of \"`#default`\". Default results declared in this way may be placed anywhere within the function.\n\nIf the default parameter is omitted and no match is made, no `result` is returned.\n\nIt is possible to have 'fall through' values, where several `case` strings return the same `result` string. This minimizes duplication.\n\nAs with `#ifeq`, the comparison is made numerically if both the comparison string and the case string being tested are numeric; or as a case-sensitive string otherwise.\n\nA `case` string may be empty.\n\nOnce a match is found, subsequent `cases` are ignored."
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"aliases": [
|
|
1028
|
+
"#time",
|
|
1029
|
+
"#时间",
|
|
1030
|
+
"#時間"
|
|
1031
|
+
],
|
|
1032
|
+
"signatures": [
|
|
1033
|
+
[
|
|
1034
|
+
{
|
|
1035
|
+
"label": "format string"
|
|
1036
|
+
}
|
|
1037
|
+
],
|
|
1038
|
+
[
|
|
1039
|
+
{
|
|
1040
|
+
"label": "format string"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"label": "date/time object"
|
|
1044
|
+
}
|
|
1045
|
+
],
|
|
1046
|
+
[
|
|
1047
|
+
{
|
|
1048
|
+
"label": "format string"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"label": "date/time object"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"label": "language code"
|
|
1055
|
+
}
|
|
1056
|
+
],
|
|
1057
|
+
[
|
|
1058
|
+
{
|
|
1059
|
+
"label": "format string"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"label": "date/time object"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"label": "language code"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"label": "local"
|
|
1069
|
+
}
|
|
1070
|
+
]
|
|
1071
|
+
],
|
|
1072
|
+
"description": "This parser function takes a date and/or time (in the Gregorian calendar) and formats it according to the syntax given. A date/time object can be specified; the default is the value of the magic word `{{CURRENTTIMESTAMP}}` – that is, the time the page was last rendered into HTML.\n\nAny character in the formatting string that is not recognized is passed through unaltered. There are also two ways to escape characters within the formatting string:\n1. A backslash followed by a formatting character is interpreted as a single literal character.\n2. Characters enclosed in double quotes are considered literal characters, and the quotes are removed.\n\nIn addition, the digraph `xx` is interpreted as a single literal \"x\".\n\nThe `date/time object` can be in any format accepted by PHP's [strtotime()](https://php.net/function.strtotime) function.\n\nThe `language code` in [ISO 639-3](https://en.wikipedia.org/wiki/ISO_639-3) allows the string to be displayed in the chosen language.\n\nThe `local` parameter specifies if the `date/time object` refers to the local timezone or to UTC. This is a boolean parameters: its value is determined by casting the value of the argument (see the [official PHP documentation](https://php.net/language.types.boolean#language.types.boolean.casting) for details on how string are cast to boolean values)."
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"aliases": [
|
|
1076
|
+
"#timel",
|
|
1077
|
+
"#时间l",
|
|
1078
|
+
"#時間l"
|
|
1079
|
+
],
|
|
1080
|
+
"signatures": [
|
|
1081
|
+
[
|
|
1082
|
+
{
|
|
1083
|
+
"label": "format string"
|
|
1084
|
+
}
|
|
1085
|
+
],
|
|
1086
|
+
[
|
|
1087
|
+
{
|
|
1088
|
+
"label": "format string"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"label": "date/time object"
|
|
1092
|
+
}
|
|
1093
|
+
],
|
|
1094
|
+
[
|
|
1095
|
+
{
|
|
1096
|
+
"label": "format string"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"label": "date/time object"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"label": "language code"
|
|
1103
|
+
}
|
|
1104
|
+
]
|
|
1105
|
+
],
|
|
1106
|
+
"description": "This function is a syntactic shortcut that operates identically to `{{#time: ... }}` with the `local` parameter set to `true`, so it always uses the preferred time zone of the user or the configured time zone of the wiki."
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"aliases": [
|
|
1110
|
+
"#timef"
|
|
1111
|
+
],
|
|
1112
|
+
"signatures": [
|
|
1113
|
+
[
|
|
1114
|
+
{
|
|
1115
|
+
"label": "data/time object"
|
|
1116
|
+
}
|
|
1117
|
+
],
|
|
1118
|
+
[
|
|
1119
|
+
{
|
|
1120
|
+
"label": "data/time object"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"label": "format type"
|
|
1124
|
+
}
|
|
1125
|
+
],
|
|
1126
|
+
[
|
|
1127
|
+
{
|
|
1128
|
+
"label": "data/time object"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"label": "format type"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"label": "language code"
|
|
1135
|
+
}
|
|
1136
|
+
]
|
|
1137
|
+
],
|
|
1138
|
+
"description": "This function formats a date using a standard format for the selected language.\n\nThe format of the `date/time object` is the same as for `#time`. If it is empty, the time when the page was rendered is used.\n\nThe `format type` may be one of:\n\n- `time`: Only the time is shown.\n- `date`: Only the date is shown.\n- `both`: Both the time and date are shown.\n- `pretty`: Only the date is shown, using an abbreviated format which does not include the year. Not all languages support this; if it is not supported, the \"date\" format is used.\n\nIf the `format type` is not specified, both the time and date will be show, as if `both` were specified.\n\nIf the `language code` is not specified, the page's content language is used."
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"aliases": [
|
|
1142
|
+
"#timefl"
|
|
1143
|
+
],
|
|
1144
|
+
"signatures": [
|
|
1145
|
+
[
|
|
1146
|
+
{
|
|
1147
|
+
"label": "data/time object"
|
|
1148
|
+
}
|
|
1149
|
+
],
|
|
1150
|
+
[
|
|
1151
|
+
{
|
|
1152
|
+
"label": "data/time object"
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"label": "format type"
|
|
1156
|
+
}
|
|
1157
|
+
],
|
|
1158
|
+
[
|
|
1159
|
+
{
|
|
1160
|
+
"label": "data/time object"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"label": "format type"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"label": "language code"
|
|
1167
|
+
}
|
|
1168
|
+
]
|
|
1169
|
+
],
|
|
1170
|
+
"description": "This function is the same as `#timef` except that it uses the local timezone of the wiki."
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"aliases": [
|
|
1174
|
+
"#titleparts",
|
|
1175
|
+
"#标题组成部分"
|
|
1176
|
+
],
|
|
1177
|
+
"signatures": [
|
|
1178
|
+
[
|
|
1179
|
+
{
|
|
1180
|
+
"label": "page name"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"label": "number of segments to return"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"label": "segment to start at"
|
|
1187
|
+
}
|
|
1188
|
+
]
|
|
1189
|
+
],
|
|
1190
|
+
"description": "This function separates a page title into segments based on slashes, then returns some of those segments as output.\n\nIf the `number of segments to return` parameter is not specified, it defaults to \"0\", which returns all the segments from the `segment to start at` to the end (included). If the `segment to start at` parameter is not specified or is \"0\", it defaults to \"1\".\n\nNegative values are accepted for both values. Negative values for the `number of segments to return` parameter effectively 'strips' segments from the end of the string. Negative values for the `first segment to return` translates to \"start with this segment counting from the right\"."
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"aliases": [
|
|
1194
|
+
"#len"
|
|
1195
|
+
],
|
|
1196
|
+
"signatures": [
|
|
1197
|
+
[
|
|
1198
|
+
{
|
|
1199
|
+
"label": "string"
|
|
1200
|
+
}
|
|
1201
|
+
]
|
|
1202
|
+
],
|
|
1203
|
+
"description": "The #len function returns the length of the given string."
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"aliases": [
|
|
1207
|
+
"#pos"
|
|
1208
|
+
],
|
|
1209
|
+
"signatures": [
|
|
1210
|
+
[
|
|
1211
|
+
{
|
|
1212
|
+
"label": "string"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"label": "search term"
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"label": "offset"
|
|
1219
|
+
}
|
|
1220
|
+
]
|
|
1221
|
+
],
|
|
1222
|
+
"description": "The #pos function returns the position of a given search term within the string.\n\nThe `offset` parameter, if specified, tells a starting position where this function should begin searching.\n\nIf the `search term` is found, the return value is a zero-based integer of the first position within the `string`.\n\nIf the `search term` is not found, the function returns an empty string."
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"aliases": [
|
|
1226
|
+
"#rpos"
|
|
1227
|
+
],
|
|
1228
|
+
"signatures": [
|
|
1229
|
+
[
|
|
1230
|
+
{
|
|
1231
|
+
"label": "string"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"label": "search term"
|
|
1235
|
+
}
|
|
1236
|
+
]
|
|
1237
|
+
],
|
|
1238
|
+
"description": "The #rpos function returns the last position of a given search term within the string.\n\nIf the `search term` is found, the return value is a zero-based integer of its last position within the `string`.\n\nIf the `search term` is not found, the function returns -1. "
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"aliases": [
|
|
1242
|
+
"#sub"
|
|
1243
|
+
],
|
|
1244
|
+
"signatures": [
|
|
1245
|
+
[
|
|
1246
|
+
{
|
|
1247
|
+
"label": "string"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"label": "start"
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"label": "length"
|
|
1254
|
+
}
|
|
1255
|
+
]
|
|
1256
|
+
],
|
|
1257
|
+
"description": "The #sub function returns a substring from the given string.\n\nThe `start` parameter, if positive (or zero), specifies a zero-based index of the first character to be returned.\n\nIf the `start` parameter is negative, it specifies how many characters from the end should be returned.\n\nThe `length` parameter, if present and positive, specifies the maximum length of the returned string.\n\nIf the `length` parameter is negative, it specifies how many characters will be omitted from the end of the string."
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"aliases": [
|
|
1261
|
+
"#count"
|
|
1262
|
+
],
|
|
1263
|
+
"signatures": [
|
|
1264
|
+
[
|
|
1265
|
+
{
|
|
1266
|
+
"label": "string"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"label": "substring"
|
|
1270
|
+
}
|
|
1271
|
+
]
|
|
1272
|
+
],
|
|
1273
|
+
"description": "The #count function returns the number of times a given substring appears within the provided text."
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"aliases": [
|
|
1277
|
+
"#replace"
|
|
1278
|
+
],
|
|
1279
|
+
"signatures": [
|
|
1280
|
+
[
|
|
1281
|
+
{
|
|
1282
|
+
"label": "string"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"label": "search term"
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"label": "replacement term"
|
|
1289
|
+
}
|
|
1290
|
+
]
|
|
1291
|
+
],
|
|
1292
|
+
"description": "The #replace function returns the given string with all occurrences of a search term replaced with a replacement term.\n\nIf the `search term` is unspecified or empty, a single space will be searched for.\n\nIf the `replacement term` is unspecified or empty, all occurrences of the `search term` will be removed from the `string`."
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"aliases": [
|
|
1296
|
+
"#explode"
|
|
1297
|
+
],
|
|
1298
|
+
"signatures": [
|
|
1299
|
+
[
|
|
1300
|
+
{
|
|
1301
|
+
"label": "string"
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"label": "delimiter"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"label": "position"
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"label": "limit"
|
|
1311
|
+
}
|
|
1312
|
+
]
|
|
1313
|
+
],
|
|
1314
|
+
"description": "The #explode function splits the given string into pieces and then returns one of the pieces. The pieces are **0-indexed**.\n\nThe `delimiter` parameter specifies a string to be used to divide the `string` into pieces. This `delimiter` string is then not part of any piece, and when two `delimiter` strings are next to each other, they create an empty piece between them. If this parameter is not specified, a single space is used. The `limit` parameter allows you to limit the number of parts that the value is split into, with all remaining text included in the final part.\n\nThe `position` parameter specifies which piece is to be returned. Pieces are counted from 0. If this parameter is not specified, the first piece is used (piece with number 0). When a negative value is used as `position`, the pieces are counted from the end. In this case, piece number -1 means the last piece.\n\nThe return value is the *position*-th piece. If there are fewer pieces than the `position` specifies, an empty string is returned. "
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"aliases": [
|
|
1318
|
+
"#urldecode",
|
|
1319
|
+
"#url解码"
|
|
1320
|
+
],
|
|
1321
|
+
"signatures": [
|
|
1322
|
+
[
|
|
1323
|
+
{
|
|
1324
|
+
"label": "value"
|
|
1325
|
+
}
|
|
1326
|
+
]
|
|
1327
|
+
],
|
|
1328
|
+
"description": "`#urldecode` converts the escape characters from an '[URL encoded](https://en.wikipedia.org/wiki/URL_encoding)' string back to readable text."
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"aliases": [
|
|
1332
|
+
"#invoke",
|
|
1333
|
+
"#调用",
|
|
1334
|
+
"#調動"
|
|
1335
|
+
],
|
|
1336
|
+
"signatures": [
|
|
1337
|
+
[
|
|
1338
|
+
{
|
|
1339
|
+
"label": "module name"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"label": "function name"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"label": "args",
|
|
1346
|
+
"rest": true
|
|
1347
|
+
}
|
|
1348
|
+
]
|
|
1349
|
+
],
|
|
1350
|
+
"description": "Call a function from a Lua module"
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"aliases": [
|
|
1354
|
+
"#while"
|
|
1355
|
+
],
|
|
1356
|
+
"signatures": [
|
|
1357
|
+
[
|
|
1358
|
+
{
|
|
1359
|
+
"label": "",
|
|
1360
|
+
"const": true
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"label": "condition"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"label": "block statement"
|
|
1367
|
+
}
|
|
1368
|
+
]
|
|
1369
|
+
],
|
|
1370
|
+
"description": "`{{#while}}` performs a loop (i.e. it repeatedly parses a given wiki markup block statement) so long as the condition mark-up evaluates to non-whitespace."
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"aliases": [
|
|
1374
|
+
"#dowhile"
|
|
1375
|
+
],
|
|
1376
|
+
"signatures": [
|
|
1377
|
+
[
|
|
1378
|
+
{
|
|
1379
|
+
"label": "",
|
|
1380
|
+
"const": true
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"label": "condition"
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
"label": "block statement"
|
|
1387
|
+
}
|
|
1388
|
+
]
|
|
1389
|
+
],
|
|
1390
|
+
"description": "`{{#dowhile}}` performs a loop (i.e. it repeatedly parses a given wiki markup block statement) so long as the condition mark-up evaluates to non-whitespace. The block statement is guaranteed to be parsed and displayed (if it results in displayable text) at least once."
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"aliases": [
|
|
1394
|
+
"#loop"
|
|
1395
|
+
],
|
|
1396
|
+
"signatures": [
|
|
1397
|
+
[
|
|
1398
|
+
{
|
|
1399
|
+
"label": "variable name"
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"label": "starting value"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"label": "number of loops to be performed"
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"label": "block statement"
|
|
1409
|
+
}
|
|
1410
|
+
]
|
|
1411
|
+
],
|
|
1412
|
+
"description": "`{{#loop}}` repeatedly parses and displays `block statement` a number of times equal to the absolute value of `number of loops to be performed`. `Starting value` is placed in a variable (accessible by [Variables](https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Variables) extension's `{{#var:}}` parser function) using the name `variable name`. After each loop, the variable is incremented by one if `number of loops to be performed` is positive, or decremented by one if `number of loops to be performed` is negative."
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"aliases": [
|
|
1416
|
+
"#forargs"
|
|
1417
|
+
],
|
|
1418
|
+
"signatures": [
|
|
1419
|
+
[
|
|
1420
|
+
{
|
|
1421
|
+
"label": "prefix"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"label": "key"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"label": "value"
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"label": "block statement"
|
|
1431
|
+
}
|
|
1432
|
+
]
|
|
1433
|
+
],
|
|
1434
|
+
"description": "`{{#forargs}}` is to be used in templates.\n\nIt takes arguments that are passed to the template and puts them in variables accessible by [Variables](https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Variables) extension's `{{#var:}}` parser function.\n\nThis function iterates through each argument whose name begins with `prefix`.\n\nWith each iteration it puts the argument name minus `prefix` into `key` as if calling `{{#vardefine: <key> }}`.\n\nIt then takes the value of the argument and puts it into `value` in a similar method.\n\nThe block statement is then expanded.\n\nThe block statement may contain `{{#var: <key> }}` and `{{#var: <value> }}` to access the stored arguments."
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"aliases": [
|
|
1438
|
+
"#fornumargs"
|
|
1439
|
+
],
|
|
1440
|
+
"signatures": [
|
|
1441
|
+
[
|
|
1442
|
+
{
|
|
1443
|
+
"label": "key"
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
"label": "value"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"label": "block statement"
|
|
1450
|
+
}
|
|
1451
|
+
]
|
|
1452
|
+
],
|
|
1453
|
+
"description": "`{{#fornumargs}}` performs similarly to `{{#forargs}}` with two major differences: It doesn't take a prefix argument, and it only works on numbered arguments whether they're explicitly numbered or implicitly numbered."
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"aliases": [
|
|
1457
|
+
"#vardefine"
|
|
1458
|
+
],
|
|
1459
|
+
"signatures": [
|
|
1460
|
+
[
|
|
1461
|
+
{
|
|
1462
|
+
"label": "variable name"
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"label": "value"
|
|
1466
|
+
}
|
|
1467
|
+
]
|
|
1468
|
+
],
|
|
1469
|
+
"description": "Assigns the `value` to the (already existing or hereby introduced) variable `variable name`."
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"aliases": [
|
|
1473
|
+
"#vardefineecho"
|
|
1474
|
+
],
|
|
1475
|
+
"signatures": [
|
|
1476
|
+
[
|
|
1477
|
+
{
|
|
1478
|
+
"label": "variable name"
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
"label": "value"
|
|
1482
|
+
}
|
|
1483
|
+
]
|
|
1484
|
+
],
|
|
1485
|
+
"description": "Assigns the `value` to the (already existing or hereby introduced) variable `variable name`, and `value` is printed."
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"aliases": [
|
|
1489
|
+
"#var"
|
|
1490
|
+
],
|
|
1491
|
+
"signatures": [
|
|
1492
|
+
[
|
|
1493
|
+
{
|
|
1494
|
+
"label": "variable name"
|
|
1495
|
+
}
|
|
1496
|
+
],
|
|
1497
|
+
[
|
|
1498
|
+
{
|
|
1499
|
+
"label": "variable name"
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
"label": "default value"
|
|
1503
|
+
}
|
|
1504
|
+
]
|
|
1505
|
+
],
|
|
1506
|
+
"description": "The value of the variable `variable name`.\n\nIf undefined, this produces an empty string; it does not give an error message.\n\nIt is possible to get a default value for the case that the variable is undefined or void."
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
"aliases": [
|
|
1510
|
+
"#varexists"
|
|
1511
|
+
],
|
|
1512
|
+
"signatures": [
|
|
1513
|
+
[
|
|
1514
|
+
{
|
|
1515
|
+
"label": "variable name"
|
|
1516
|
+
}
|
|
1517
|
+
],
|
|
1518
|
+
[
|
|
1519
|
+
{
|
|
1520
|
+
"label": "variable name"
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
"label": "if-value"
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
"label": "else-value"
|
|
1527
|
+
}
|
|
1528
|
+
]
|
|
1529
|
+
],
|
|
1530
|
+
"description": "Returns *1* if the variable is already defined. If the variable is not defined the return value is void.\n\nIt supports a second and a third parameter to replace these values."
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
"aliases": [
|
|
1534
|
+
"#var_final"
|
|
1535
|
+
],
|
|
1536
|
+
"signatures": [
|
|
1537
|
+
[
|
|
1538
|
+
{
|
|
1539
|
+
"label": "variable name"
|
|
1540
|
+
}
|
|
1541
|
+
],
|
|
1542
|
+
[
|
|
1543
|
+
{
|
|
1544
|
+
"label": "variable name"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"label": "default value"
|
|
1548
|
+
}
|
|
1549
|
+
]
|
|
1550
|
+
],
|
|
1551
|
+
"description": "This function will output the final, last value a variable has at the end of the page rendering. Naturally, the value will be inserted after the parser went over the entire wiki markup, so this function can't be used in other functions, expecting the right value is being used.\n\nThe `default value` will be used if the variable doesn't exist at the final page rendering stage or if its value is an empty string. The default will be expanded right where the function is used, so the parameter will be expanded, even if it won't be needed."
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"aliases": [
|
|
1555
|
+
"currentyear",
|
|
1556
|
+
"今年"
|
|
1557
|
+
],
|
|
1558
|
+
"description": "Year"
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
"aliases": [
|
|
1562
|
+
"localyear",
|
|
1563
|
+
"本地年"
|
|
1564
|
+
],
|
|
1565
|
+
"description": "Year, but using the site's server config"
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
"aliases": [
|
|
1569
|
+
"currentmonth",
|
|
1570
|
+
"currentmonth2",
|
|
1571
|
+
"本月",
|
|
1572
|
+
"本月2"
|
|
1573
|
+
],
|
|
1574
|
+
"description": "Month (zero-padded number)"
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
"aliases": [
|
|
1578
|
+
"localmonth",
|
|
1579
|
+
"localmonth2",
|
|
1580
|
+
"本地月",
|
|
1581
|
+
"本地月2"
|
|
1582
|
+
],
|
|
1583
|
+
"description": "Month (zero-padded number), but using the site's server config"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"aliases": [
|
|
1587
|
+
"currentmonth1",
|
|
1588
|
+
"本月1"
|
|
1589
|
+
],
|
|
1590
|
+
"description": "Month (unpadded number)"
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"aliases": [
|
|
1594
|
+
"localmonth1",
|
|
1595
|
+
"本地月1"
|
|
1596
|
+
],
|
|
1597
|
+
"description": "Month (unpadded number), but using the site's server config"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"aliases": [
|
|
1601
|
+
"currentmonthname",
|
|
1602
|
+
"本月名",
|
|
1603
|
+
"本月名称"
|
|
1604
|
+
],
|
|
1605
|
+
"description": "Month (name)"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
"aliases": [
|
|
1609
|
+
"localmonthname",
|
|
1610
|
+
"本地月份名"
|
|
1611
|
+
],
|
|
1612
|
+
"description": "Month (name), but using the site's server config"
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
"aliases": [
|
|
1616
|
+
"currentmonthnamegen",
|
|
1617
|
+
"本月名属格",
|
|
1618
|
+
"本月名称属格"
|
|
1619
|
+
],
|
|
1620
|
+
"description": "Month ([genitive form](https://en.wikipedia.org/wiki/Genitive_case))"
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
"aliases": [
|
|
1624
|
+
"localmonthnamegen",
|
|
1625
|
+
"本地月历"
|
|
1626
|
+
],
|
|
1627
|
+
"description": "Month ([genitive form](https://en.wikipedia.org/wiki/Genitive_case)), but using the site's server config"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
"aliases": [
|
|
1631
|
+
"currentmonthabbrev",
|
|
1632
|
+
"本月简称"
|
|
1633
|
+
],
|
|
1634
|
+
"description": "Month (abbreviation)"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"aliases": [
|
|
1638
|
+
"localmonthabbrev",
|
|
1639
|
+
"本地月缩写",
|
|
1640
|
+
"本月縮寫"
|
|
1641
|
+
],
|
|
1642
|
+
"description": "Month (abbreviation), but using the site's server config"
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
"aliases": [
|
|
1646
|
+
"currentday",
|
|
1647
|
+
"今天"
|
|
1648
|
+
],
|
|
1649
|
+
"description": "Day of the month (unpadded number)"
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"aliases": [
|
|
1653
|
+
"localday",
|
|
1654
|
+
"本地日"
|
|
1655
|
+
],
|
|
1656
|
+
"description": "Day of the month (unpadded number), but using the site's server config"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"aliases": [
|
|
1660
|
+
"currentday2",
|
|
1661
|
+
"今天2"
|
|
1662
|
+
],
|
|
1663
|
+
"description": "Day of the month (zero-padded number)"
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"aliases": [
|
|
1667
|
+
"localday2",
|
|
1668
|
+
"本地日2"
|
|
1669
|
+
],
|
|
1670
|
+
"description": "Day of the month (zero-padded number), but using the site's server config"
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"aliases": [
|
|
1674
|
+
"currentdow",
|
|
1675
|
+
"当前dow"
|
|
1676
|
+
],
|
|
1677
|
+
"description": "Day of the week (unpadded number), 0 (for Sunday) through 6 (for Saturday)"
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
"aliases": [
|
|
1681
|
+
"localdow",
|
|
1682
|
+
"本地dow"
|
|
1683
|
+
],
|
|
1684
|
+
"description": "Day of the week (unpadded number), 0 (for Sunday) through 6 (for Saturday), but using the site's server config"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"aliases": [
|
|
1688
|
+
"currentdayname",
|
|
1689
|
+
"今天名",
|
|
1690
|
+
"今天名称"
|
|
1691
|
+
],
|
|
1692
|
+
"description": "Day of the week (name)"
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"aliases": [
|
|
1696
|
+
"localdayname",
|
|
1697
|
+
"本地日名"
|
|
1698
|
+
],
|
|
1699
|
+
"description": "Day of the week (name), but using the site's server config"
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
"aliases": [
|
|
1703
|
+
"currenttime",
|
|
1704
|
+
"当前时间",
|
|
1705
|
+
"目前時間",
|
|
1706
|
+
"此时"
|
|
1707
|
+
],
|
|
1708
|
+
"description": "Time (24-hour HH:mm format)"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"aliases": [
|
|
1712
|
+
"localtime",
|
|
1713
|
+
"本地时间"
|
|
1714
|
+
],
|
|
1715
|
+
"description": "Time (24-hour HH:mm format), but using the site's server config"
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"aliases": [
|
|
1719
|
+
"currenthour",
|
|
1720
|
+
"当前小时"
|
|
1721
|
+
],
|
|
1722
|
+
"description": "Hour (24-hour zero-padded number)"
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"aliases": [
|
|
1726
|
+
"localhour",
|
|
1727
|
+
"本地小时"
|
|
1728
|
+
],
|
|
1729
|
+
"description": "Hour (24-hour zero-padded number), but using the site's server config"
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"aliases": [
|
|
1733
|
+
"currentweek",
|
|
1734
|
+
"本周"
|
|
1735
|
+
],
|
|
1736
|
+
"description": "Week (number)"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"aliases": [
|
|
1740
|
+
"localweek",
|
|
1741
|
+
"本地周"
|
|
1742
|
+
],
|
|
1743
|
+
"description": "Week (number), but using the site's server config"
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"aliases": [
|
|
1747
|
+
"currenttimestamp",
|
|
1748
|
+
"当前时间戳"
|
|
1749
|
+
],
|
|
1750
|
+
"description": "YYYYMMDDHHmmss timestamp"
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
"aliases": [
|
|
1754
|
+
"localtimestamp",
|
|
1755
|
+
"本地时间戳"
|
|
1756
|
+
],
|
|
1757
|
+
"description": "YYYYMMDDHHmmss timestamp, but using the site's server config"
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
"aliases": [
|
|
1761
|
+
"sitename",
|
|
1762
|
+
"站点名称",
|
|
1763
|
+
"網站名稱"
|
|
1764
|
+
],
|
|
1765
|
+
"description": "The wiki's site name."
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"aliases": [
|
|
1769
|
+
"server",
|
|
1770
|
+
"服务器",
|
|
1771
|
+
"伺服器"
|
|
1772
|
+
],
|
|
1773
|
+
"description": "Domain URL."
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"aliases": [
|
|
1777
|
+
"servername",
|
|
1778
|
+
"服务器名",
|
|
1779
|
+
"伺服器名稱"
|
|
1780
|
+
],
|
|
1781
|
+
"description": "Subdomain and domain name."
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"aliases": [
|
|
1785
|
+
"dirmark",
|
|
1786
|
+
"directionmark",
|
|
1787
|
+
"方向标记"
|
|
1788
|
+
],
|
|
1789
|
+
"description": "Outputs a Unicode directional mark that matches the wiki's default language's direction (`&lrm`; on left-to-right wikis, `&rlm`; on right-to-left wikis), useful in text with multi-directional text. Since 1.19, it depends on the [page content language](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Language#page-content-lang)."
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"aliases": [
|
|
1793
|
+
"articlepath",
|
|
1794
|
+
"条目路径"
|
|
1795
|
+
],
|
|
1796
|
+
"description": "Relative article path."
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
"aliases": [
|
|
1800
|
+
"scriptpath",
|
|
1801
|
+
"脚本路径"
|
|
1802
|
+
],
|
|
1803
|
+
"description": "Relative script path."
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
"aliases": [
|
|
1807
|
+
"stylepath",
|
|
1808
|
+
"样式路径"
|
|
1809
|
+
],
|
|
1810
|
+
"description": "Relative style path."
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
"aliases": [
|
|
1814
|
+
"currentversion",
|
|
1815
|
+
"当前版本",
|
|
1816
|
+
"目前版本"
|
|
1817
|
+
],
|
|
1818
|
+
"description": "The wiki's MediaWiki version."
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
"aliases": [
|
|
1822
|
+
"contentlanguage",
|
|
1823
|
+
"contentlang",
|
|
1824
|
+
"内容语言",
|
|
1825
|
+
"內容語言"
|
|
1826
|
+
],
|
|
1827
|
+
"description": "The wiki's default interface language."
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"aliases": [
|
|
1831
|
+
"pageid",
|
|
1832
|
+
"页面id",
|
|
1833
|
+
"頁面id"
|
|
1834
|
+
],
|
|
1835
|
+
"signatures": [
|
|
1836
|
+
[],
|
|
1837
|
+
[
|
|
1838
|
+
{
|
|
1839
|
+
"label": "page name"
|
|
1840
|
+
}
|
|
1841
|
+
]
|
|
1842
|
+
],
|
|
1843
|
+
"description": "Returns the [page identifier (page ID)](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Page_ID).\n\n**[Expensive]** Returns the page identifier of the specified page."
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
"aliases": [
|
|
1847
|
+
"pagelanguage"
|
|
1848
|
+
],
|
|
1849
|
+
"description": "Returns the language of the current page. The language code that this variable returns can be converted to a language name using `{{#language:...}}`."
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
"aliases": [
|
|
1853
|
+
"protectionlevel",
|
|
1854
|
+
"保护级别"
|
|
1855
|
+
],
|
|
1856
|
+
"signatures": [
|
|
1857
|
+
[
|
|
1858
|
+
{
|
|
1859
|
+
"label": "action"
|
|
1860
|
+
}
|
|
1861
|
+
],
|
|
1862
|
+
[
|
|
1863
|
+
{
|
|
1864
|
+
"label": "action"
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
"label": "page name"
|
|
1868
|
+
}
|
|
1869
|
+
]
|
|
1870
|
+
],
|
|
1871
|
+
"description": "Outputs the protection level (e.g. \"autoconfirmed\", \"sysop\") for a given action (e.g. \"edit\", \"move\") on the current page. Returns an empty string if not protected.\n\n**[Expensive]** Outputs the protection level on the specified page."
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
"aliases": [
|
|
1875
|
+
"protectionexpiry"
|
|
1876
|
+
],
|
|
1877
|
+
"signatures": [
|
|
1878
|
+
[
|
|
1879
|
+
{
|
|
1880
|
+
"label": "action"
|
|
1881
|
+
}
|
|
1882
|
+
],
|
|
1883
|
+
[
|
|
1884
|
+
{
|
|
1885
|
+
"label": "action"
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
"label": "page name"
|
|
1889
|
+
}
|
|
1890
|
+
]
|
|
1891
|
+
],
|
|
1892
|
+
"description": "Outputs the protection expiry (e.g. \"20160418155030\", \"infinity\") for a given action (e.g. \"edit\", \"move\") on the current page. Returns \"infinity\" if not protected.\n\n**[Expensive]** Outputs the protection expiry on the specified page."
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
"aliases": [
|
|
1896
|
+
"cascadingsources",
|
|
1897
|
+
"级联来源"
|
|
1898
|
+
],
|
|
1899
|
+
"signatures": [
|
|
1900
|
+
[],
|
|
1901
|
+
[
|
|
1902
|
+
{
|
|
1903
|
+
"label": "page name"
|
|
1904
|
+
}
|
|
1905
|
+
]
|
|
1906
|
+
],
|
|
1907
|
+
"description": "**[Expensive]** Returns the sources of any cascading protection acting on the current page or the specified page. Pages will not return their own title unless they transclude themselves."
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
"aliases": [
|
|
1911
|
+
"revisionid",
|
|
1912
|
+
"修订id"
|
|
1913
|
+
],
|
|
1914
|
+
"signatures": [
|
|
1915
|
+
[],
|
|
1916
|
+
[
|
|
1917
|
+
{
|
|
1918
|
+
"label": "page name"
|
|
1919
|
+
}
|
|
1920
|
+
]
|
|
1921
|
+
],
|
|
1922
|
+
"description": "Unique revision ID. It is always empty in preview, thus one can show an error message only in preview. May be disabled in [miser mode (all WMF wikis)](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgMiserMode) returning `-` instead when not in preview.\n\n**[Expensive]** Unique revision ID of the last revision on the specified page."
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
"aliases": [
|
|
1926
|
+
"revisionday",
|
|
1927
|
+
"修订日"
|
|
1928
|
+
],
|
|
1929
|
+
"signatures": [
|
|
1930
|
+
[],
|
|
1931
|
+
[
|
|
1932
|
+
{
|
|
1933
|
+
"label": "page name"
|
|
1934
|
+
}
|
|
1935
|
+
]
|
|
1936
|
+
],
|
|
1937
|
+
"description": "Day edit was made (unpadded number).\n\n**[Expensive]** Day of edit from the last revision of the specified page."
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
"aliases": [
|
|
1941
|
+
"revisionday2",
|
|
1942
|
+
"修订日2"
|
|
1943
|
+
],
|
|
1944
|
+
"signatures": [
|
|
1945
|
+
[],
|
|
1946
|
+
[
|
|
1947
|
+
{
|
|
1948
|
+
"label": "page name"
|
|
1949
|
+
}
|
|
1950
|
+
]
|
|
1951
|
+
],
|
|
1952
|
+
"description": "Day edit was made (zero-padded number).\n\n**[Expensive]** Day of edit from the last revision of the specified page."
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"aliases": [
|
|
1956
|
+
"revisionmonth",
|
|
1957
|
+
"修订月"
|
|
1958
|
+
],
|
|
1959
|
+
"signatures": [
|
|
1960
|
+
[],
|
|
1961
|
+
[
|
|
1962
|
+
{
|
|
1963
|
+
"label": "page name"
|
|
1964
|
+
}
|
|
1965
|
+
]
|
|
1966
|
+
],
|
|
1967
|
+
"description": "Month edit was made (zero-padded number as of 1.17+, unpadded number in prior versions).\n\n**[Expensive]** Month of edit from the last revision of the specified page."
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"aliases": [
|
|
1971
|
+
"revisionmonth1",
|
|
1972
|
+
"修订月1"
|
|
1973
|
+
],
|
|
1974
|
+
"signatures": [
|
|
1975
|
+
[],
|
|
1976
|
+
[
|
|
1977
|
+
{
|
|
1978
|
+
"label": "page name"
|
|
1979
|
+
}
|
|
1980
|
+
]
|
|
1981
|
+
],
|
|
1982
|
+
"description": "Month edit was made (unpadded number).\n\n**[Expensive]** Month of edit from the last revision of the specified page."
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
"aliases": [
|
|
1986
|
+
"revisionyear",
|
|
1987
|
+
"修订年"
|
|
1988
|
+
],
|
|
1989
|
+
"signatures": [
|
|
1990
|
+
[],
|
|
1991
|
+
[
|
|
1992
|
+
{
|
|
1993
|
+
"label": "page name"
|
|
1994
|
+
}
|
|
1995
|
+
]
|
|
1996
|
+
],
|
|
1997
|
+
"description": "Year edit was made.\n\n**[Expensive]** Year of edit from the last revision of the specified page."
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
"aliases": [
|
|
2001
|
+
"revisiontimestamp",
|
|
2002
|
+
"修订时间戳"
|
|
2003
|
+
],
|
|
2004
|
+
"signatures": [
|
|
2005
|
+
[],
|
|
2006
|
+
[
|
|
2007
|
+
{
|
|
2008
|
+
"label": "page name"
|
|
2009
|
+
}
|
|
2010
|
+
]
|
|
2011
|
+
],
|
|
2012
|
+
"description": "Timestamp as of time of edit.\n\n**[Expensive]** Timestamp as of time of edit on the specified page."
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
"aliases": [
|
|
2016
|
+
"revisionuser",
|
|
2017
|
+
"修订用户",
|
|
2018
|
+
"修訂使用者"
|
|
2019
|
+
],
|
|
2020
|
+
"signatures": [
|
|
2021
|
+
[],
|
|
2022
|
+
[
|
|
2023
|
+
{
|
|
2024
|
+
"label": "page name"
|
|
2025
|
+
}
|
|
2026
|
+
]
|
|
2027
|
+
],
|
|
2028
|
+
"description": "The username of the user who made the edit in question, or the user previewing an edit.\n\n**[Expensive]** The username from the last revision on the specified page."
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
"aliases": [
|
|
2032
|
+
"revisionsize",
|
|
2033
|
+
"修订大小"
|
|
2034
|
+
],
|
|
2035
|
+
"description": "The size (bytes of wikitext) of the viewed revision of the page or preview."
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
"aliases": [
|
|
2039
|
+
"displaytitle",
|
|
2040
|
+
"显示标题",
|
|
2041
|
+
"顯示標題"
|
|
2042
|
+
],
|
|
2043
|
+
"signatures": [
|
|
2044
|
+
[
|
|
2045
|
+
{
|
|
2046
|
+
"label": "title"
|
|
2047
|
+
}
|
|
2048
|
+
],
|
|
2049
|
+
[
|
|
2050
|
+
{
|
|
2051
|
+
"label": "title"
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
"label": "noerror",
|
|
2055
|
+
"const": true
|
|
2056
|
+
}
|
|
2057
|
+
],
|
|
2058
|
+
[
|
|
2059
|
+
{
|
|
2060
|
+
"label": "title"
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"label": "noreplace",
|
|
2064
|
+
"const": true
|
|
2065
|
+
}
|
|
2066
|
+
]
|
|
2067
|
+
],
|
|
2068
|
+
"description": "Format the [display title](https://www.mediawiki.org/wiki/Special:MyLanguage/Display_title) of the current page, which is what is typically shown in a page's title header. The value must be equivalent to the default title: only capitalization changes to certain parts of the title (not all) and replacing spaces with underscores are allowed.\n\nIt can take a second argument of *noerror* or *noreplace* to suppress error messages when multiple displaytitles are used on one page or to make this `displaytitle` do nothing if a `displaytitle` was already specified earlier in the page."
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"aliases": [
|
|
2072
|
+
"defaultsort",
|
|
2073
|
+
"defaultsortkey",
|
|
2074
|
+
"defaultcategorysort",
|
|
2075
|
+
"默认排序",
|
|
2076
|
+
"默认排序关键字",
|
|
2077
|
+
"默认分类排序"
|
|
2078
|
+
],
|
|
2079
|
+
"signatures": [
|
|
2080
|
+
[
|
|
2081
|
+
{
|
|
2082
|
+
"label": "sortkey"
|
|
2083
|
+
}
|
|
2084
|
+
],
|
|
2085
|
+
[
|
|
2086
|
+
{
|
|
2087
|
+
"label": "sortkey"
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
"label": "noerror",
|
|
2091
|
+
"const": true
|
|
2092
|
+
}
|
|
2093
|
+
],
|
|
2094
|
+
[
|
|
2095
|
+
{
|
|
2096
|
+
"label": "sortkey"
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"label": "noreplace",
|
|
2100
|
+
"const": true
|
|
2101
|
+
}
|
|
2102
|
+
]
|
|
2103
|
+
],
|
|
2104
|
+
"description": "Used for categorizing pages, sets a default [category sort key](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Categories). It can take a second argument of *noerror* or *noreplace* to suppress error messages when multiple defaultsortkeys are used on one page or to make this `defaultsort` do nothing if a `defaultsort` was already specified earlier in the page."
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
"aliases": [
|
|
2108
|
+
"numberofpages",
|
|
2109
|
+
"页面数",
|
|
2110
|
+
"頁面數"
|
|
2111
|
+
],
|
|
2112
|
+
"signatures": [
|
|
2113
|
+
[],
|
|
2114
|
+
[
|
|
2115
|
+
{
|
|
2116
|
+
"label": "R",
|
|
2117
|
+
"const": true
|
|
2118
|
+
}
|
|
2119
|
+
]
|
|
2120
|
+
],
|
|
2121
|
+
"description": "Number of wiki pages."
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
"aliases": [
|
|
2125
|
+
"numberofarticles",
|
|
2126
|
+
"条目数",
|
|
2127
|
+
"文章數"
|
|
2128
|
+
],
|
|
2129
|
+
"signatures": [
|
|
2130
|
+
[],
|
|
2131
|
+
[
|
|
2132
|
+
{
|
|
2133
|
+
"label": "R",
|
|
2134
|
+
"const": true
|
|
2135
|
+
}
|
|
2136
|
+
]
|
|
2137
|
+
],
|
|
2138
|
+
"description": "Number of pages in [content namespaces](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Using_custom_namespaces#content-ns) that qualify as articles."
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
"aliases": [
|
|
2142
|
+
"numberoffiles",
|
|
2143
|
+
"文件数",
|
|
2144
|
+
"檔案數"
|
|
2145
|
+
],
|
|
2146
|
+
"signatures": [
|
|
2147
|
+
[],
|
|
2148
|
+
[
|
|
2149
|
+
{
|
|
2150
|
+
"label": "R",
|
|
2151
|
+
"const": true
|
|
2152
|
+
}
|
|
2153
|
+
]
|
|
2154
|
+
],
|
|
2155
|
+
"description": "Number of uploaded files."
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
"aliases": [
|
|
2159
|
+
"numberofedits",
|
|
2160
|
+
"编辑数"
|
|
2161
|
+
],
|
|
2162
|
+
"signatures": [
|
|
2163
|
+
[],
|
|
2164
|
+
[
|
|
2165
|
+
{
|
|
2166
|
+
"label": "R",
|
|
2167
|
+
"const": true
|
|
2168
|
+
}
|
|
2169
|
+
]
|
|
2170
|
+
],
|
|
2171
|
+
"description": "Number of wiki edits."
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
"aliases": [
|
|
2175
|
+
"numberofusers",
|
|
2176
|
+
"用户数",
|
|
2177
|
+
"使用者人數量"
|
|
2178
|
+
],
|
|
2179
|
+
"signatures": [
|
|
2180
|
+
[],
|
|
2181
|
+
[
|
|
2182
|
+
{
|
|
2183
|
+
"label": "R",
|
|
2184
|
+
"const": true
|
|
2185
|
+
}
|
|
2186
|
+
]
|
|
2187
|
+
],
|
|
2188
|
+
"description": "Number of registered users."
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"aliases": [
|
|
2192
|
+
"numberofadmins",
|
|
2193
|
+
"管理员数",
|
|
2194
|
+
"管理員數"
|
|
2195
|
+
],
|
|
2196
|
+
"signatures": [
|
|
2197
|
+
[],
|
|
2198
|
+
[
|
|
2199
|
+
{
|
|
2200
|
+
"label": "R",
|
|
2201
|
+
"const": true
|
|
2202
|
+
}
|
|
2203
|
+
]
|
|
2204
|
+
],
|
|
2205
|
+
"description": "Number of users in the *sysop* [group](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:User_rights)."
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
"aliases": [
|
|
2209
|
+
"numberofactiveusers",
|
|
2210
|
+
"活跃用户数",
|
|
2211
|
+
"活躍使用者人數"
|
|
2212
|
+
],
|
|
2213
|
+
"signatures": [
|
|
2214
|
+
[],
|
|
2215
|
+
[
|
|
2216
|
+
{
|
|
2217
|
+
"label": "R",
|
|
2218
|
+
"const": true
|
|
2219
|
+
}
|
|
2220
|
+
]
|
|
2221
|
+
],
|
|
2222
|
+
"description": "Number of active users, based on the criteria used in Special:Statistics."
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
"aliases": [
|
|
2226
|
+
"pagesincategory",
|
|
2227
|
+
"pagesincat",
|
|
2228
|
+
"分类中页面数"
|
|
2229
|
+
],
|
|
2230
|
+
"signatures": [
|
|
2231
|
+
[
|
|
2232
|
+
{
|
|
2233
|
+
"label": "category name"
|
|
2234
|
+
}
|
|
2235
|
+
],
|
|
2236
|
+
[
|
|
2237
|
+
{
|
|
2238
|
+
"label": "category name"
|
|
2239
|
+
},
|
|
2240
|
+
{
|
|
2241
|
+
"label": "all",
|
|
2242
|
+
"const": true
|
|
2243
|
+
}
|
|
2244
|
+
],
|
|
2245
|
+
[
|
|
2246
|
+
{
|
|
2247
|
+
"label": "category name"
|
|
2248
|
+
},
|
|
2249
|
+
{
|
|
2250
|
+
"label": "pages",
|
|
2251
|
+
"const": true
|
|
2252
|
+
}
|
|
2253
|
+
],
|
|
2254
|
+
[
|
|
2255
|
+
{
|
|
2256
|
+
"label": "category name"
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
"label": "subcats",
|
|
2260
|
+
"const": true
|
|
2261
|
+
}
|
|
2262
|
+
],
|
|
2263
|
+
[
|
|
2264
|
+
{
|
|
2265
|
+
"label": "category name"
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
"label": "files",
|
|
2269
|
+
"const": true
|
|
2270
|
+
}
|
|
2271
|
+
]
|
|
2272
|
+
],
|
|
2273
|
+
"description": "**[Expensive]** Number of pages (including subcategories and files if no second argument is provided) in the given [category](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Categories)."
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
"aliases": [
|
|
2277
|
+
"numberingroup",
|
|
2278
|
+
"numingroup",
|
|
2279
|
+
"组中用户数"
|
|
2280
|
+
],
|
|
2281
|
+
"signatures": [
|
|
2282
|
+
[
|
|
2283
|
+
{
|
|
2284
|
+
"label": "group name"
|
|
2285
|
+
}
|
|
2286
|
+
],
|
|
2287
|
+
[
|
|
2288
|
+
{
|
|
2289
|
+
"label": "group name"
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
"label": "R",
|
|
2293
|
+
"const": true
|
|
2294
|
+
}
|
|
2295
|
+
]
|
|
2296
|
+
],
|
|
2297
|
+
"description": "Number of users in a specific [group](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:User_rights)."
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
"aliases": [
|
|
2301
|
+
"fullpagename",
|
|
2302
|
+
"页面全称",
|
|
2303
|
+
"完整页面名称"
|
|
2304
|
+
],
|
|
2305
|
+
"signatures": [
|
|
2306
|
+
[],
|
|
2307
|
+
[
|
|
2308
|
+
{
|
|
2309
|
+
"label": "page name"
|
|
2310
|
+
}
|
|
2311
|
+
]
|
|
2312
|
+
],
|
|
2313
|
+
"description": "Namespace and full page title (including all subpage levels)."
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
"aliases": [
|
|
2317
|
+
"fullpagenamee",
|
|
2318
|
+
"完整页面名称等同"
|
|
2319
|
+
],
|
|
2320
|
+
"signatures": [
|
|
2321
|
+
[],
|
|
2322
|
+
[
|
|
2323
|
+
{
|
|
2324
|
+
"label": "page name"
|
|
2325
|
+
}
|
|
2326
|
+
]
|
|
2327
|
+
],
|
|
2328
|
+
"description": "URL encoded namespace and full page title (including all subpage levels)."
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
"aliases": [
|
|
2332
|
+
"pagename",
|
|
2333
|
+
"页名",
|
|
2334
|
+
"页面名",
|
|
2335
|
+
"页面名称",
|
|
2336
|
+
"頁面名稱"
|
|
2337
|
+
],
|
|
2338
|
+
"signatures": [
|
|
2339
|
+
[],
|
|
2340
|
+
[
|
|
2341
|
+
{
|
|
2342
|
+
"label": "page name"
|
|
2343
|
+
}
|
|
2344
|
+
]
|
|
2345
|
+
],
|
|
2346
|
+
"description": "Full page title (including all subpage levels) without the namespace."
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
"aliases": [
|
|
2350
|
+
"pagenamee",
|
|
2351
|
+
"页面名等同",
|
|
2352
|
+
"页面名称等同"
|
|
2353
|
+
],
|
|
2354
|
+
"signatures": [
|
|
2355
|
+
[],
|
|
2356
|
+
[
|
|
2357
|
+
{
|
|
2358
|
+
"label": "page name"
|
|
2359
|
+
}
|
|
2360
|
+
]
|
|
2361
|
+
],
|
|
2362
|
+
"description": "URL encoded full page title (including all subpage levels) without the namespace."
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"aliases": [
|
|
2366
|
+
"basepagename",
|
|
2367
|
+
"基础页面名称"
|
|
2368
|
+
],
|
|
2369
|
+
"signatures": [
|
|
2370
|
+
[],
|
|
2371
|
+
[
|
|
2372
|
+
{
|
|
2373
|
+
"label": "page name"
|
|
2374
|
+
}
|
|
2375
|
+
]
|
|
2376
|
+
],
|
|
2377
|
+
"description": "Page title of the page in the immediately superior [subpage](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Subpages) level without the namespace."
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
"aliases": [
|
|
2381
|
+
"basepagenamee",
|
|
2382
|
+
"基础页面名称等同"
|
|
2383
|
+
],
|
|
2384
|
+
"signatures": [
|
|
2385
|
+
[],
|
|
2386
|
+
[
|
|
2387
|
+
{
|
|
2388
|
+
"label": "page name"
|
|
2389
|
+
}
|
|
2390
|
+
]
|
|
2391
|
+
],
|
|
2392
|
+
"description": "URL encoded page title of the page in the immediately superior [subpage](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Subpages) level without the namespace."
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
"aliases": [
|
|
2396
|
+
"rootpagename",
|
|
2397
|
+
"根页面名称",
|
|
2398
|
+
"根頁面名稱"
|
|
2399
|
+
],
|
|
2400
|
+
"signatures": [
|
|
2401
|
+
[],
|
|
2402
|
+
[
|
|
2403
|
+
{
|
|
2404
|
+
"label": "page name"
|
|
2405
|
+
}
|
|
2406
|
+
]
|
|
2407
|
+
],
|
|
2408
|
+
"description": "Name of the root of the current page."
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
"aliases": [
|
|
2412
|
+
"rootpagenamee",
|
|
2413
|
+
"根页面名称等同",
|
|
2414
|
+
"根頁面名稱e"
|
|
2415
|
+
],
|
|
2416
|
+
"signatures": [
|
|
2417
|
+
[],
|
|
2418
|
+
[
|
|
2419
|
+
{
|
|
2420
|
+
"label": "page name"
|
|
2421
|
+
}
|
|
2422
|
+
]
|
|
2423
|
+
],
|
|
2424
|
+
"description": "URL encoded name of the root of the current page."
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"aliases": [
|
|
2428
|
+
"subpagename",
|
|
2429
|
+
"子页面名称"
|
|
2430
|
+
],
|
|
2431
|
+
"signatures": [
|
|
2432
|
+
[],
|
|
2433
|
+
[
|
|
2434
|
+
{
|
|
2435
|
+
"label": "page name"
|
|
2436
|
+
}
|
|
2437
|
+
]
|
|
2438
|
+
],
|
|
2439
|
+
"description": "The [subpage](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Subpages) title. If no subpage exists the value of `{{PAGENAME}}` is returned."
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
"aliases": [
|
|
2443
|
+
"subpagenamee",
|
|
2444
|
+
"子页面名称等同"
|
|
2445
|
+
],
|
|
2446
|
+
"signatures": [
|
|
2447
|
+
[],
|
|
2448
|
+
[
|
|
2449
|
+
{
|
|
2450
|
+
"label": "page name"
|
|
2451
|
+
}
|
|
2452
|
+
]
|
|
2453
|
+
],
|
|
2454
|
+
"description": "The URL encoded [subpage](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Subpages) title. If no subpage exists the value of `{{PAGENAME}}` is returned."
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
"aliases": [
|
|
2458
|
+
"subjectpagename",
|
|
2459
|
+
"articlepagename",
|
|
2460
|
+
"主名字空间页面名称",
|
|
2461
|
+
"条目页面名称"
|
|
2462
|
+
],
|
|
2463
|
+
"signatures": [
|
|
2464
|
+
[],
|
|
2465
|
+
[
|
|
2466
|
+
{
|
|
2467
|
+
"label": "page name"
|
|
2468
|
+
}
|
|
2469
|
+
]
|
|
2470
|
+
],
|
|
2471
|
+
"description": "Full page name of the associated subject (e.g. article or file). Useful on talk pages."
|
|
2472
|
+
},
|
|
2473
|
+
{
|
|
2474
|
+
"aliases": [
|
|
2475
|
+
"subjectpagenamee",
|
|
2476
|
+
"articlepagenamee",
|
|
2477
|
+
"主名字空间页面名称等同",
|
|
2478
|
+
"条目页面名称等同"
|
|
2479
|
+
],
|
|
2480
|
+
"signatures": [
|
|
2481
|
+
[],
|
|
2482
|
+
[
|
|
2483
|
+
{
|
|
2484
|
+
"label": "page name"
|
|
2485
|
+
}
|
|
2486
|
+
]
|
|
2487
|
+
],
|
|
2488
|
+
"description": "URL encoded full page name of the associated subject (e.g. article or file). Useful on talk pages."
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
"aliases": [
|
|
2492
|
+
"talkpagename",
|
|
2493
|
+
"讨论页面名称",
|
|
2494
|
+
"对话页面名称"
|
|
2495
|
+
],
|
|
2496
|
+
"signatures": [
|
|
2497
|
+
[],
|
|
2498
|
+
[
|
|
2499
|
+
{
|
|
2500
|
+
"label": "page name"
|
|
2501
|
+
}
|
|
2502
|
+
]
|
|
2503
|
+
],
|
|
2504
|
+
"description": "Full page name of the associated talk page."
|
|
2505
|
+
},
|
|
2506
|
+
{
|
|
2507
|
+
"aliases": [
|
|
2508
|
+
"talkpagenamee",
|
|
2509
|
+
"讨论页面名称等同",
|
|
2510
|
+
"对话页面名称等同"
|
|
2511
|
+
],
|
|
2512
|
+
"signatures": [
|
|
2513
|
+
[],
|
|
2514
|
+
[
|
|
2515
|
+
{
|
|
2516
|
+
"label": "page name"
|
|
2517
|
+
}
|
|
2518
|
+
]
|
|
2519
|
+
],
|
|
2520
|
+
"description": "URL encoded full page name of the associated talk page."
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
"aliases": [
|
|
2524
|
+
"namespace",
|
|
2525
|
+
"名字空间",
|
|
2526
|
+
"命名空間",
|
|
2527
|
+
"命名空間數"
|
|
2528
|
+
],
|
|
2529
|
+
"signatures": [
|
|
2530
|
+
[],
|
|
2531
|
+
[
|
|
2532
|
+
{
|
|
2533
|
+
"label": "page name"
|
|
2534
|
+
}
|
|
2535
|
+
]
|
|
2536
|
+
],
|
|
2537
|
+
"description": "Name of the page's namespace (except for main space)"
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
"aliases": [
|
|
2541
|
+
"namespacee",
|
|
2542
|
+
"名字空间等同"
|
|
2543
|
+
],
|
|
2544
|
+
"signatures": [
|
|
2545
|
+
[],
|
|
2546
|
+
[
|
|
2547
|
+
{
|
|
2548
|
+
"label": "page name"
|
|
2549
|
+
}
|
|
2550
|
+
]
|
|
2551
|
+
],
|
|
2552
|
+
"description": "URL encoded name of the page's namespace (except for main space)"
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"aliases": [
|
|
2556
|
+
"namespacenumber",
|
|
2557
|
+
"名字空间编号"
|
|
2558
|
+
],
|
|
2559
|
+
"signatures": [
|
|
2560
|
+
[],
|
|
2561
|
+
[
|
|
2562
|
+
{
|
|
2563
|
+
"label": "page name"
|
|
2564
|
+
}
|
|
2565
|
+
]
|
|
2566
|
+
],
|
|
2567
|
+
"description": "[ID](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Namespace#Built-in_namespaces) of the page's namespace"
|
|
2568
|
+
},
|
|
2569
|
+
{
|
|
2570
|
+
"aliases": [
|
|
2571
|
+
"subjectspace",
|
|
2572
|
+
"articlespace",
|
|
2573
|
+
"主名字空间",
|
|
2574
|
+
"条目名字空间"
|
|
2575
|
+
],
|
|
2576
|
+
"signatures": [
|
|
2577
|
+
[],
|
|
2578
|
+
[
|
|
2579
|
+
{
|
|
2580
|
+
"label": "page name"
|
|
2581
|
+
}
|
|
2582
|
+
]
|
|
2583
|
+
],
|
|
2584
|
+
"description": "Name of the associated content namespace"
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"aliases": [
|
|
2588
|
+
"subjectspacee",
|
|
2589
|
+
"articlespacee",
|
|
2590
|
+
"主名字空间等同",
|
|
2591
|
+
"条目名字空间等同"
|
|
2592
|
+
],
|
|
2593
|
+
"signatures": [
|
|
2594
|
+
[],
|
|
2595
|
+
[
|
|
2596
|
+
{
|
|
2597
|
+
"label": "page name"
|
|
2598
|
+
}
|
|
2599
|
+
]
|
|
2600
|
+
],
|
|
2601
|
+
"description": "URL encoded name of the associated content namespace"
|
|
2602
|
+
},
|
|
2603
|
+
{
|
|
2604
|
+
"aliases": [
|
|
2605
|
+
"talkspace",
|
|
2606
|
+
"讨论空间",
|
|
2607
|
+
"讨论名字空间",
|
|
2608
|
+
"對話空間"
|
|
2609
|
+
],
|
|
2610
|
+
"signatures": [
|
|
2611
|
+
[],
|
|
2612
|
+
[
|
|
2613
|
+
{
|
|
2614
|
+
"label": "page name"
|
|
2615
|
+
}
|
|
2616
|
+
]
|
|
2617
|
+
],
|
|
2618
|
+
"description": "Name of the associated talk namespace"
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
"aliases": [
|
|
2622
|
+
"talkspacee",
|
|
2623
|
+
"讨论空间等同",
|
|
2624
|
+
"讨论名字空间等同"
|
|
2625
|
+
],
|
|
2626
|
+
"signatures": [
|
|
2627
|
+
[],
|
|
2628
|
+
[
|
|
2629
|
+
{
|
|
2630
|
+
"label": "page name"
|
|
2631
|
+
}
|
|
2632
|
+
]
|
|
2633
|
+
],
|
|
2634
|
+
"description": "URL encoded name of the associated talk namespace"
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
"aliases": [
|
|
2638
|
+
"!"
|
|
2639
|
+
],
|
|
2640
|
+
"description": "Used to include a vertical bar (pipe).\n\nSee [Help:Extension:ParserFunctions#Escaping pipe characters in tables](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Extension:ParserFunctions#Escaping_pipe_characters_in_tables) for further explanation."
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
"aliases": [
|
|
2644
|
+
"="
|
|
2645
|
+
],
|
|
2646
|
+
"description": "Used to include an equal sign.\n\nSee [Help:Extension:ParserFunctions#Raw equal signs](https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Extension:ParserFunctions#Raw_equal_signs) for further explanation."
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
"aliases": [
|
|
2650
|
+
"pagesize",
|
|
2651
|
+
"页面大小"
|
|
2652
|
+
],
|
|
2653
|
+
"signatures": [
|
|
2654
|
+
[],
|
|
2655
|
+
[
|
|
2656
|
+
{
|
|
2657
|
+
"label": "page name"
|
|
2658
|
+
}
|
|
2659
|
+
],
|
|
2660
|
+
[
|
|
2661
|
+
{
|
|
2662
|
+
"label": "page name"
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"label": "R",
|
|
2666
|
+
"const": true
|
|
2667
|
+
}
|
|
2668
|
+
]
|
|
2669
|
+
],
|
|
2670
|
+
"description": "**[Expensive]** Returns the byte size of the specified page."
|
|
2671
|
+
}
|
|
2672
|
+
]
|
|
2673
|
+
}
|