This repository was archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtitle.json
366 lines (366 loc) · 8.86 KB
/
title.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
{
"@metadata": {
"name": "title",
"comment": "This is a mixed library and object. The creator act as a library and can be fully identified by its library prefix, but the created object can not be identified unless intellisense is active.",
"authors": [
"Jeblad"
]
},
"mw.title 001 ": {
"prefix": "mw.title.equals( a, b )",
"body": [
"mw.title.equals( ${1:a}, ${2:b} )$0"
],
"description": "Checks whether two titles are logical equal, as a boolean.\n"
},
"mw.title 002 ": {
"prefix": "mw.title.compare( a, b )",
"body": [
"mw.title.compare( ${1:a}, ${2:b} )$0"
],
"description": "Cheks how two titles are grammatically ordered, as an integer.\n"
},
"mw.title 003 ": {
"prefix": "mw.title.getCurrentTitle()",
"body": [
"mw.title.getCurrentTitle()$0"
],
"description": "Gets the title for the current page, as an object.\n"
},
"mw.title 004 ": {
"prefix": "mw.title.new( text, namespace)",
"body": [
"mw.title.new( ${1:text}, ${2:namespace} )$0"
],
"description": "Creates a new title object.\n"
},
"mw.title 005 ": {
"prefix": "mw.title.new( idNumber)",
"body": [
"mw.title.new( ${1:idNumber} )$0"
],
"description": "Creates a new title object.\n"
},
"mw.title 006 ": {
"prefix": "mw.title.makeTitle( namespace, title, fragment, interwiki )",
"body": [
"mw.title.makeTitle( ${1:namespace}, ${2:title}${3:, ${4:fragment}${5:, ${6:interwiki}}} )$0"
],
"description": "Creates a title object in the given namespace namespace.\n"
},
"mw.title 007 ": {
"prefix": "mw.title.id",
"body": [
".id$0"
],
"description": "The instance id, as an integer(?).\n"
},
"mw.title 008 ": {
"prefix": "mw.title.interwiki",
"body": [
".interwiki$0"
],
"description": "The instance interwiki, as a string.\n"
},
"mw.title 009 ": {
"prefix": "mw.title.namespace",
"body": [
".namespace$0"
],
"description": "The instance namespace, as an integer.\n"
},
"mw.title 010 ": {
"prefix": "mw.title.fragment",
"body": [
".fragment$0"
],
"description": "The instance fragment, as a string.\n"
},
"mw.title 011 ": {
"prefix": "mw.title.nsText",
"body": [
".nsText$0"
],
"description": "The instance namespace text, as a string.\n"
},
"mw.title 012 ": {
"prefix": "mw.title.subjectNsText",
"body": [
".subjectNsText$0"
],
"description": "The instance subject namespace text, as a string.\n"
},
"mw.title 013 ": {
"prefix": "mw.title.text",
"body": [
".text$0"
],
"description": "The instance text, as a string.\n"
},
"mw.title 014 ": {
"prefix": "mw.title.prefixedText",
"body": [
".prefixedText$0"
],
"description": "The instance prefixed text, as a string.\n"
},
"mw.title 015 ": {
"prefix": "mw.title.fullText",
"body": [
".fullText$0"
],
"description": "The instance full text, as a string.\n"
},
"mw.title 016 ": {
"prefix": "mw.title.rootText",
"body": [
".rootText$0"
],
"description": "The instance root text, as a string.\n"
},
"mw.title 017 ": {
"prefix": "mw.title.baseText",
"body": [
".baseText$0"
],
"description": "The instance base text, as a string.\n"
},
"mw.title 018 ": {
"prefix": "mw.title.subpageText",
"body": [
".subpageText$0"
],
"description": "The instance subpage text, as a string.\n"
},
"mw.title 019 ": {
"prefix": "mw.title.canTalk",
"body": [
".canTalk$0"
],
"description": "Whether the instance can have a talk page, as a boolean(?).\n"
},
"mw.title 020 ": {
"prefix": "mw.title.exists",
"body": [
".exists$0"
],
"description": "Whether the instance exists, as a boolean.\n"
},
"mw.title 021 ": {
"prefix": "mw.title.fileExists",
"body": [
".fileExists$0"
],
"description": "Whether the instance has a file substructure, as a boolean(?).\n"
},
"mw.title 022 ": {
"prefix": "mw.title.file",
"body": [
".file$0"
],
"description": "Root for the instance file substructure, as a table.\n"
},
"mw.title 023 ": {
"prefix": "mw.title.isContentPage",
"body": [
".isContentPage$0"
],
"description": "Whether the instance is in a content namespace, as a boolean.\n"
},
"mw.title 024 ": {
"prefix": "mw.title.isExternal",
"body": [
".isExternal$0"
],
"description": "Whether the instance has an interwiki prefix, as a boolean.\n"
},
"mw.title 025 ": {
"prefix": "mw.title.isLocal",
"body": [
".isLocal$0"
],
"description": "Whether the instance is local to the project, as a boolean.\n"
},
"mw.title 026 ": {
"prefix": "mw.title.isRedirect",
"body": [
".isRedirect$0"
],
"description": "Whether the instance is a redirect, as a boolean.\n"
},
"mw.title 027 ": {
"prefix": "mw.title.isSpecialPage",
"body": [
".isSpecialPage$0"
],
"description": "Whether the instance is a special page, as a boolean.\n"
},
"mw.title 028 ": {
"prefix": "mw.title.isSubpage",
"body": [
".isSubpage$0"
],
"description": "Whether the instance is a subpage, as a boolean.\n"
},
"mw.title 029 ": {
"prefix": "mw.title.isTalkPage",
"body": [
".isTalkPage$0"
],
"description": "Whether the instance is a talk page, as a boolean.\n"
},
"mw.title 030 ": {
"prefix": "mw.title:isSubpageOf( parent )",
"body": [
":isSubpageOf( ${1:parent} )$0"
],
"description": "Checks whether the instance is a subpage of the parent title, as a boolean.\n"
},
"mw.title 031 ": {
"prefix": "mw.title:inNamespace( ns )",
"body": [
":inNamespace( ${1:ns} ):$0"
],
"description": "Checks whether the instance is within the given namespace, as a boolean.\n"
},
"mw.title 032 ": {
"prefix": "mw.title:inNamespaces( ... )",
"body": [
":inNamespaces( $1{:...} )$0"
],
"description": "Checks whether the instance is within one of the given namespaces, as a boolean.\n"
},
"mw.title 033 ": {
"prefix": "mw.title:hasSubjectNamespace( ns )",
"body": [
":hasSubjectNamespace( ${1:ns} )$0"
],
"description": "Checks whether the instance subject namespace is within the given namespace, as a boolean.\n"
},
"mw.title 034 ": {
"prefix": "mw.title.contentModel",
"body": [
".contentModel$0"
],
"description": "The instance content model, as a string.\n"
},
"mw.title 035 ": {
"prefix": "mw.title.basePageTitle",
"body": [
".basePageTitle$0"
],
"description": "The instance base page title, as a title object.\n"
},
"mw.title 036 ": {
"prefix": "mw.title.rootPageTitle",
"body": [
".rootPageTitle$0"
],
"description": "The instance root page title, as a title object.\n"
},
"mw.title 037 ": {
"prefix": "mw.title.talkPageTitle",
"body": [
".talkPageTitle$0"
],
"description": "The instance talk page title, as a title object.\n"
},
"mw.title 038 ": {
"prefix": "mw.title.subjectPageTitle",
"body": [
".subjectPageTitle$0"
],
"description": "The instance subject page title, as a title object.\n"
},
"mw.title 039 ": {
"prefix": "mw.title.redirectTarget",
"body": [
".redirectTarget$0"
],
"description": "Gets the instance target if it is a redirect, as a title object.\n"
},
"mw.title 040 ": {
"prefix": "mw.title.protectionLevels",
"body": [
".protectionLevels$0"
],
"description": "The instance protection level, as a table.\n"
},
"mw.title 041 ": {
"prefix": "mw.title:subPageTitle( text )",
"body": [
":subPageTitle( ${1:text} )$0"
],
"description": "Sets the instance subpage title, as a title object.\n"
},
"mw.title 042 ": {
"prefix": "mw.title:partialUrl( query, proto )",
"body": [
":$0"
],
"description": "Gets the instance subject page title, as a string.\n"
},
"mw.title 043 ": {
"prefix": "mw.title:localUrl( query )",
"body": [
":partialUrl( ${1:query}, ${2:proto} )$0"
],
"description": "The instance local url, as a (?)\n"
},
"mw.title 044 ": {
"prefix": "mw.title:canonicalUrl( query )",
"body": [
":canonicalUrl( ${1:query} )$0"
],
"description": "The instance canonical url, as a (?)\n"
},
"mw.title 045 ": {
"prefix": "mw.title:getContent()",
"body": [
":getContent()$0"
],
"description": "The instance unparsed content, as a string.\n"
},
"mw.title 046 ": {
"prefix": "mw.title.file.exists",
"body": [
".exists$0"
],
"description": "Whether the instance exists, as a boolean.\n"
},
"mw.title 047 ": {
"prefix": "mw.title.file.width",
"body": [
".width$0"
],
"description": "The instance width, as an integer.\n"
},
"mw.title 048 ": {
"prefix": "mw.title.file.height",
"body": [
".height$0"
],
"description": "The instance height, as an integer.\n"
},
"mw.title 049 ": {
"prefix": "mw.title.file.pages",
"body": [
".pages$0"
],
"description": "The instance pages, as a table.\n"
},
"mw.title 050 ": {
"prefix": "mw.title.file.size",
"body": [
".size$0"
],
"description": "The instance size, in bytes.\n"
},
"mw.title 051 ": {
"prefix": "mw.title.file.mimeType",
"body": [
".mimeType$0"
],
"description": "The instance mime type, as a string.\n"
}
}