diff --git a/Docs/SpecialInputElements.md b/Docs/SpecialInputElements.md index f9f701cad..845a93e08 100644 --- a/Docs/SpecialInputElements.md +++ b/Docs/SpecialInputElements.md @@ -11,11 +11,11 @@ + [string](#string) + [text](#text) + [date](#date) - + [direction](#direction) - + [length](#length) - + [wikidata](#wikidata) - + [int](#int) + [nat](#nat) + + [int](#int) + + [decimal](#decimal) + + [direction](#direction) + + [wikidata](#wikidata) + [pnat](#pnat) + [float](#float) + [pfloat](#pfloat) @@ -35,7 +35,7 @@ The listed types here trigger a special input element. Use them in `tagrendering -A basic string +A simple piece of text @@ -43,7 +43,7 @@ A basic string -A string, but allows input of longer strings more comfortably and supports newlines (a text area) +A longer piece of text @@ -51,7 +51,31 @@ A string, but allows input of longer strings more comfortably and supports newli -A date +A date with date picker + + + +### nat + + + +A positive number or zero + + + +### int + + + +A number + + + +### decimal + + + +A geographical length in meters (rounded at two points). Will give an extra minimap with a measurement tool. Arguments: [ zoomlevel, preferredBackgroundMapType (comma separated) ], e.g. `["21", "map,photo"] @@ -63,14 +87,6 @@ A geographical direction, in degrees. 0° is north, 90° is east, ... Will retur -### length - - - -A geographical length in meters (rounded at two points). Will give an extra minimap with a measurement tool. Arguments: [ zoomlevel, preferredBackgroundMapType (comma separated) ], e.g. `["21", "map,photo"] - - - ### wikidata @@ -118,22 +134,6 @@ removePostfixes | remove these snippets of text from the end of the passed strin -### int - - - -A number - - - -### nat - - - -A positive number or zero - - - ### pnat @@ -154,7 +154,7 @@ A decimal -A positive decimal (incl zero) +A positive decimal (inclusive zero) diff --git a/Models/ThemeConfig/LayoutConfig.ts b/Models/ThemeConfig/LayoutConfig.ts index 04c3b8022..1875b8d99 100644 --- a/Models/ThemeConfig/LayoutConfig.ts +++ b/Models/ThemeConfig/LayoutConfig.ts @@ -71,7 +71,7 @@ export default class LayoutConfig { this.credits = json.credits; this.version = json.version; this.language = json.mustHaveLanguage ?? Array.from(Object.keys(json.title)); - this.usedImages = Array.from(new ExtractImages().convertStrict(json, "while extracting the images of " + json.id + " " + context ?? "")).sort() + this.usedImages = Array.from(new ExtractImages(official).convertStrict(json, "while extracting the images of " + json.id + " " + context ?? "")).sort() { if (typeof json.title === "string") { throw `The title of a theme should always be a translation, as it sets the corresponding languages (${context}.title). The themenID is ${this.id}; the offending object is ${JSON.stringify(json.title)} which is a ${typeof json.title})`