Vorlage Diskussion:Marker

Letzter Kommentar: vor 1 Jahr von RolandUnger in Abschnitt Maybe a bug with MAKI icons

Bug with show=none parameter?

Bearbeiten

Hi:

Sorry for writing in English but I'm not sure which is the best place to report. I found what seems a bug with the show parameter. In Wikivoyage ES (https://es.wikivoyage.org/wiki/Usuario:Urci_dream/Taller2) I have a set of marker points without no public coordinates, as you can check in Wikidata (https://www.wikidata.org/wiki/Q97286349). I would like to use the parameter show=none since, according template documentation it instructs the template to omit the coordinates information printing. This never works to me. I tested both Wikivoyages ES and DE so it looks to me it could be a bug.

This is how I'm using it:

{{marker
| name =Fortín 12 
| type = other
| wikidata =Q97286349
| show = none
}}

and result is:

  • Fortín 12 Länge und/oder Breite fehlt

Could anybody please check if I'm doing something wrong or confirm the bug? Thanks a lot. Olea (Diskussion) 12:09, 22. Mär. 2022 (CET)Beantworten

There is no bug. A marker needs a coordinate in any case, and Q97286349 hasn't. Markers should only be used for geographical objects normaly shown on maps. I am planning to program templates for non-geographical objects which do not need so much computing time. But it will take some time. --RolandUnger (Diskussion) 13:08, 22. Mär. 2022 (CET)Beantworten
I see. Then, I could say the show=none parameter has no sense. Is this right? Olea (Diskussion) 13:14, 22. Mär. 2022 (CET)Beantworten
I will remove the show=none parameter when I finished the new templates (also the type parameter makes no sense). I will inform you. --RolandUnger (Diskussion) 17:22, 22. Mär. 2022 (CET)Beantworten
Oh, no need to inform, just wanted to be sure. Thanks a lot :-) Olea (Diskussion) 17:23, 22. Mär. 2022 (CET)Beantworten

──────────────────────────────────────────────────────────────────────────────────────────────────── @Olea: Please use {{Sitelinks}} template for non-geographic objects or objects without coordinates. Within next days I will make this template available on Spanish Wikivoyage, too. --RolandUnger (Diskussion) 07:33, 5. Jun. 2022 (CEST)Beantworten

BTW, did you finally ported {{Sitelinks}} to ESvoy? I can't find it. Olea (Diskussion) 10:26, 8. Jun. 2023 (CEST)Beantworten

Use multiple map-groups

Bearbeiten

Hi: Is it possible to use more than one map-group? I would like to show some markers in a general map and their respective detailed map. Thanks :-) Olea (Diskussion) 17:19, 6. Jun. 2023 (CEST)Beantworten

@Olea: Unfortunately, only one group (map-group) is allowed for mapframe/maplink tags. --RolandUnger (Diskussion) 07:24, 8. Jun. 2023 (CEST)Beantworten
Ok, thanks.
Please consider this as a suggestion for a potential future feature  :-) Olea (Diskussion) 10:23, 8. Jun. 2023 (CEST)Beantworten

Maybe a bug with MAKI icons

Bearbeiten

Hi:

I'm using symbols with the template in ESvoy and found something looking like a little bug. This is an example:   Mirador panorámico de Montefrío .

And the code:

{{marker |wikidata=Q119138825 |name=Mirador panorámico de Montefrío |map-group=Montefrío |symbol=viewpoint}}

The marker works fine in the map but the icon doesn't appear in the text. Also, the page is automatically categorized Categoría:Marcador:_Falta_la_imagen_MAKI. I didn't checked if this happens with other symbols than viewpoint.

You can check the full article at my worshop page in ESvoy.

Thanks :-) Olea (Diskussion) 13:48, 13. Jun. 2023 (CEST)Beantworten

@Olea: We need additional (white) images for display in text. These images are noted in Modul:Marker utilities/Maki icons. As you can see, there are only a few images available. The marker you see is a fallback in case of missing images. --RolandUnger (Diskussion) 06:12, 14. Jun. 2023 (CEST)Beantworten
How can I help? Uploading a MAKI icon to Commons? Do we have license rights? Olea (Diskussion) 07:00, 14. Jun. 2023 (CEST)Beantworten
I think I fixed it in ESvoy. Please check and update in DEvoy at your consideration. I don't want to break things around here :-) Olea (Diskussion) 22:45, 14. Jun. 2023 (CEST)Beantworten
@Olea: It is correct. Unfortunately, only black MAKI icons are stored on Wikimedia Commons, whereas we had to develop white ones or find alternatives. Thanks for your work. --RolandUnger (Diskussion) 07:35, 15. Jun. 2023 (CEST)Beantworten
It's very easy to create the white ones with Inkscape. I think I could help with this. Olea (Diskussion) 08:58, 15. Jun. 2023 (CEST)Beantworten
@Olea: Thanks for your support. It is easier to edit the SVG text file with a text editor. The files usually have a <path ...>-Tag and it is only necessary to add a style parameter like style="fill:#ffffff" at the end of the tag before the slash. You can check this by inspecting the files I uploaded. Now, we need anybody who will do this job and upload (all) the other icons. I will add icons on demand like today the recycling icon.
By the way, using markers and listings helps me to improve the modul code. --RolandUnger (Diskussion) 07:29, 19. Jun. 2023 (CEST)Beantworten
Zurück zur Seite „Marker“.