Zum Inhalt springen

Modul:Marker utilities/Groups/Doku

Aus Wikivoyage

Usage

[Bearbeiten]

This module supplies a table with the properties of the {{Marker}}/{{vCard}} groups like color, translation and the adapted translation without special characters for the use on Kartographer maps.

Versionsbezeichnung auf Wikidata: 2024-07-08 Ok!

Meaning of the sub-keys

[Bearbeiten]
  • color: hexadecimal color value including # sign,
  • alias: alias for keys like mask, do, see, etc. for internationalization,
  • is: type of data set: system only for internal use, color represents a color instead of a logical key name. Don’t change this sub-key.
  • label: group name for the vCard/listing editor and the Kartographer-map layers tool. If label is missing alias or the key values are used,
  • withEvents: marks groups where events belong to

Don’t change the names of the keys like mask, do, see, etc.

Enter the map, label or alias name to the showAll parameter in this and Mapshape utilities/i18n modules, namely the value of the first sub-key used in that succession.

Group overview

[Bearbeiten]
Karte
Map of group colors

White numbers

[Bearbeiten]

1 error 1 area 1 buy 1 do 1 drink 1 eat 1 go 1 health 1 nature 1 other 1 populated 1 see 1 sleep 1 view 1 purple 1 red

Black numbers

[Bearbeiten]

1 religion 1 cosmos 1 gold 1 lime 1 mediumaquamarine 1 orange 1 plum 1 silver

In Module:Marker utilities, the background color value for the type error (magenta, #FF00FF) serves as the relative luminance threshold (0.2848) which is greater than the value of about 0.211 as proposed by Github user Makizushi. But the color estimation at the Wikimedia’s map server seems to be different from that of Makizushi.

Verwendung in anderen Modulen

Dieses Modul ist notwendig für die Ausführung folgender Module. Bei Anpassungen sollte die Funktionstüchtigkeit der folgenden Module geprüft werden. Benutze dazu auch diese Tracking-Kategorie um Fehler zu finden, die sich dann auf Artikel auswirken:

References

[Bearbeiten]
  • Relative luminance, Web Content Accessibility Guidelines (WCAG) 2.0, W3.org. The minimum contrast ratio ( (L-lighter + 0.05) / (L-darker + 0.05) ) should be at least 4.5:1
  • Makizushi’s code for markers. It seems that the relative luminance threshold of about 0.211 differs from that of Kartotherian’s definition. The pushpin’s text color is estimated at the Wikimedia’s map server and not by Makizushi’s script.
  • Kartotherian