This repository has been 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 pathwikibase.json
205 lines (205 loc) · 6.71 KB
/
wikibase.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
{
"@metadata": {
"name": "wikibase",
"comment": "The library is imported as default, it is \"implied\", and can be fully identified by the library prefix. This is nearly always named as \"wikibase\", so it is pretty safe to assume it can be used as prefix.",
"authors": [
"Jeblad"
]
},
"mw.wikibase 001": {
"prefix": "mw.wikibase.getEntity( [entityId] )",
"body": [
"mw.wikibase.getEntity( ${1:entityId} )$0"
],
"description": "Returns the entity forthe current item, or the one with the entity id.\n"
},
"mw.wikibase 002": {
"prefix": "mw.wikibase.getEntityObject( [entityId] )",
"body": [
"mw.wikibase.getEntityObject( ${1:entityId} )$0"
],
"description": "Returns the entity for the current item, or the one with the entity id.\nAlias for mw.wikibase.getEntity\n"
},
"mw.wikibase 003": {
"prefix": "mw.wikibase.getEntityIdForCurrentPage()",
"body": [
"mw.wikibase.getEntityIdForCurrentPage()$0"
],
"description": "Returns the entity id for the current page.\n"
},
"mw.wikibase 004": {
"prefix": "mw.wikibase.getEntityIdForTitle( title )",
"body": [
"mw.wikibase.getEntityIdForTitle( ${1:title} )"
],
"description": "Returns the entity id for the linked title.\n"
},
"mw.wikibase 005": {
"prefix": "mw.wikibase.getEntityUrl( [entityId] )",
"body": [
"mw.wikibase.getEntityUrl( ${1:entityId} )$0"
],
"description": "Returns the url for the current item, or the one with the entity id.\n"
},
"mw.wikibase 006": {
"prefix": "mw.wikibase.label( [entityId] )",
"body": [
"mw.wikibase.label( ${1:entityId} )$0"
],
"description": "Returns the label for the current item, or the one with the entity id.\n"
},
"mw.wikibase 007": {
"prefix": "mw.wikibase.getLabelWithLang( [entityId] )",
"body": [
"mw.wikibase.getLabelWithLang( ${1:entityId} )$0"
],
"description": "Returns the label and language for the current item, or the one with the entity id.\n"
},
"mw.wikibase 008": {
"prefix": "mw.wikibase.sitelink( [entityId] )",
"body": [
"mw.wikibase.sitelink( ${1:entityId} )$0"
],
"description": "Returns the sitelink (page title) for the current item, or the one with the entity id.\n"
},
"mw.wikibase 009": {
"prefix": "mw.wikibase.description( [entityId] )",
"body": [
"mw.wikibase.description( ${1:entityId} )$0"
],
"description": "Returns the description for the current item, or the one with the entity id.\n"
},
"mw.wikibase 010": {
"prefix": "mw.wikibase.getDescriptionWithLang( [entityId] )",
"body": [
"mw.wikibase.getDescriptionWithLang( ${1:entityId} )$0"
],
"description": "Returns the description and language for the current item, or the one with the entity id.\n"
},
"mw.wikibase 011": {
"prefix": "mw.wikibase.renderSnak( snak )",
"body": [
"mw.wikibase.renderSnak( ${1:snak} )$0"
],
"description": "Returns an escaped wikitext version of the snak.\n"
},
"mw.wikibase 012": {
"prefix": "mw.wikibase.formatValue( snak )",
"body": [
"mw.wikibase.formatValue( ${1:snak} )$0"
],
"description": "Returns a rich wikitext version of the snak.\n"
},
"mw.wikibase 013": {
"prefix": "mw.wikibase.renderSnaks( snaks )",
"body": [
"mw.wikibase.renderSnaks( ${1:snaks} )$0"
],
"description": "Returns escaped wikitext versions of the snaks.\n"
},
"mw.wikibase 014": {
"prefix": "mw.wikibase.formatValues( snaks )",
"body": [
"mw.wikibase.formatValues( ${1:snaks} )$0"
],
"description": "Returns rich wikitext versions of the snaks.\n"
},
"mw.wikibase 015": {
"prefix": "mw.wikibase.resolvePropertyId( propertyLabelOrId )",
"body": [
"mw.wikibase.resolvePropertyId( ${1:propertyLabelOrId} )$0"
],
"description": "Returns the property id for the property with the label or id.\n"
},
"mw.wikibase 016": {
"prefix": "mw.wikibase.getPropertyOrder()",
"body": [
"mw.wikibase.getPropertyOrder()$0"
],
"description": "Returns a table with properties given weights.\n"
},
"mw.wikibase 017": {
"prefix": "mw.wikibase.orderProperties( propertyIds )",
"body": [
"mw.wikibase.orderProperties( ${1:propertyIds} )$0"
],
"description": "Returns a table with the property ids in sorted order.\n"
},
"mw.wikibase 018": {
"prefix": "mw.wikibase.getBestStatements( entityId, propertyId )",
"body": [
"mw.wikibase.getBestStatements( ${1:entityId}, ${2:propertyId} )$0"
],
"description": "Returns the best statements for the given entity and property id.\n"
},
"mw.wikibase 019": {
"prefix": "mw.wikibase:getLabel( [langCode] )",
"body": [
":getLabel( ${1:langCode} )$0"
],
"description": "Returns the label for the instance, in the current or given language.\n"
},
"mw.wikibase 020": {
"prefix": "mw.wikibase:getLabelWithLang( [langCode] )",
"body": [
":getLabelWithLang( ${1:langCode} )$0"
],
"description": "Returns the label and language for the instance, in the current or given language.\n"
},
"mw.wikibase 021": {
"prefix": "mw.wikibase:getSitelink( [globalSiteId] )",
"body": [
":getSitelink( ${1:globalSiteId} )$0"
],
"description": "Returns the sitelink (page title) for the instance, for the current or given global site id.\n"
},
"mw.wikibase 022": {
"prefix": "mw.wikibase:getDescription( [langCode] )",
"body": [
":getDescription( ${1:langCode} )$0"
],
"description": "Returns the description for the instance, in the current or given language.\n"
},
"mw.wikibase 023": {
"prefix": "mw.wikibase:getDescriptionWithLang( [langCode] )",
"body": [
":getDescriptionWithLang( ${1:langCode} )$0"
],
"description": "Returns the description and language for the instance, in the current or given language.\n"
},
"mw.wikibase 024": {
"prefix": "mw.wikibase:getProperties()$0",
"body": [
":getProperties()"
],
"description": "Returns a table for the instance with all used property ids.\n"
},
"mw.wikibase 025": {
"prefix": "mw.wikibase:getBestStatements( propertyId )",
"body": [
":getBestStatements( ${1:propertyId} )$0"
],
"description": "Returns the best statements for the instance, given the property id.\n"
},
"mw.wikibase 026": {
"prefix": "mw.wikibase:formatPropertyValues( propertyLabelOrId[, acceptableRanks] )",
"body": [
":formatPropertyValues( ${1:propertyId}${2:, ${3:acceptableRanks}} )$0"
],
"description": "Returns an escaped wikitext version of the snak.\n"
},
"mw.wikibase 027": {
"prefix": "mw.wikibase:formatStatements( propertyLabelOrId[, acceptableRanks] )",
"body": [
":formatStatements( ${1:propertyId}${2:, ${3:acceptableRanks}} )$0"
],
"description": "Returns a rich wikitext version of the snak.\n"
},
"mw.wikibase 028": {
"prefix": "mw.wikibase.entity.claimRanks",
"body": [
"mw.wikibase.entity.claimRanks$0"
],
"description": "A table that contains a map of all available claim ranks.\n"
}
}