forked from MapComplete/MapComplete
Add comments
This commit is contained in:
parent
f7953e46cf
commit
eba36af657
1 changed files with 6 additions and 1 deletions
|
@ -136,6 +136,11 @@ export default class Wikidata {
|
||||||
UIEventSource<{ success: WikidataResponse } | { error: any }>
|
UIEventSource<{ success: WikidataResponse } | { error: any }>
|
||||||
>()
|
>()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Same as LoadWikidataEntry, but wrapped into a UIEventSource
|
||||||
|
* @param value
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
public static LoadWikidataEntry(
|
public static LoadWikidataEntry(
|
||||||
value: string | number
|
value: string | number
|
||||||
): UIEventSource<{ success: WikidataResponse } | { error: any }> {
|
): UIEventSource<{ success: WikidataResponse } | { error: any }> {
|
||||||
|
@ -186,7 +191,7 @@ export default class Wikidata {
|
||||||
} .
|
} .
|
||||||
?label wikibase:apiOutput mwapi:label .
|
?label wikibase:apiOutput mwapi:label .
|
||||||
?description wikibase:apiOutput "@description" .
|
?description wikibase:apiOutput "@description" .
|
||||||
}
|
}
|
||||||
${instanceOf}
|
${instanceOf}
|
||||||
${minusPhrases.join("\n ")}
|
${minusPhrases.join("\n ")}
|
||||||
} ORDER BY ASC(?num) LIMIT ${options.maxCount ?? 20}`
|
} ORDER BY ASC(?num) LIMIT ${options.maxCount ?? 20}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue