From eba36af65724f531815650caf9f623f99b8d1253 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 14 Nov 2022 00:45:23 +0100 Subject: [PATCH] Add comments --- Logic/Web/Wikidata.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Logic/Web/Wikidata.ts b/Logic/Web/Wikidata.ts index cd09485d5d..8818be52fa 100644 --- a/Logic/Web/Wikidata.ts +++ b/Logic/Web/Wikidata.ts @@ -136,6 +136,11 @@ export default class Wikidata { UIEventSource<{ success: WikidataResponse } | { error: any }> >() + /** + * Same as LoadWikidataEntry, but wrapped into a UIEventSource + * @param value + * @constructor + */ public static LoadWikidataEntry( value: string | number ): UIEventSource<{ success: WikidataResponse } | { error: any }> { @@ -186,7 +191,7 @@ export default class Wikidata { } . ?label wikibase:apiOutput mwapi:label . ?description wikibase:apiOutput "@description" . - } + } ${instanceOf} ${minusPhrases.join("\n ")} } ORDER BY ASC(?num) LIMIT ${options.maxCount ?? 20}`