Ir al contenido

Módulo:Marker utilities/Groups/doc

De Wikiviajes, la guía libre de viajes

Esta es la página de documentación de Módulo:Marker utilities/Groups

Uso

[editar]

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.

Version check

[editar]

Designación de la versión en Wikidata: 2024-07-08 Ok!

Meaning of the sub-keys

[editar]
  • 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

[editar]
Mapa
Map of group colors

White numbers

[editar]

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

[editar]

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.

References

[editar]
  • 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