11 766
modifications
(7 versions intermédiaires par 2 utilisateurs non affichées) | |||
Ligne 329 : | Ligne 329 : | ||
---[[Utilisateur:Egel|Egel]] ([[Discussion utilisateur:Egel|discussion]]) 15 juillet 2022 à 13:02 (CEST) | ---[[Utilisateur:Egel|Egel]] ([[Discussion utilisateur:Egel|discussion]]) 15 juillet 2022 à 13:02 (CEST) | ||
::Hi, would be great to share the code with me. Can you please do so? Thanks in advance. | ::Hi, would be great to share the code with me. Can you please do so? Thanks in advance. | ||
[[Utilisateur:Paul TESSON|Paul TESSON]] ([[Discussion utilisateur:Paul TESSON|discussion]]) 16 juillet 2022 à 17:05 (CEST) | ::[[Utilisateur:Paul TESSON|Paul TESSON]] ([[Discussion utilisateur:Paul TESSON|discussion]]) 16 juillet 2022 à 17:05 (CEST) | ||
:::A link to the code should be in your Email | |||
:::[[Utilisateur:Egel|Egel]] ([[Discussion utilisateur:Egel|discussion]]) 16 juillet 2022 à 22:53 (CEST) | |||
hhhh | |||
== Maps in infoboxes? == | |||
Hi Egel,<br> | |||
I just discoverd that on scoutpedia.nl, there are maps included in some infoboxes, for example [[nl:Sjabloon:Beweging]]. Is it possible to add that here ? From what I see in the code, I would need to add something similar to ''<nowiki>{{Infobox/kaartje|{{{lat|0}}}|{{{lon|0}}}|{{{Land}}}|{{{Type|groep}}}|{{{Zoom|6}}}|{{{Plaats|}}}|{{{Provincie|}}}}}</nowiki>'' to [[modèle:Infobox mouvement]] just above the footing (''<nowiki>{{Infobox/voet</nowiki>''), so that would require to add a template similar to [[nl:Sjabloon:Infobox/kaartje]] ([[Modèle:Infobox/carte]]?), which itself needs [[nl:Sjabloon:Kaartje geocode]] ([[Modèle:Infobox:Carte géocode]] ?), and that is where I am bit lost. Apparently, [[nl:Sjabloon:Kaartje geocode]] needs ("Op deze pagina gebruikte sjablonen:") two templates : | |||
#[[nl:Sjabloon:Kaartje geocode]] | |||
#*This I don't get : how can a template need itself ? | |||
#[[nl:Sjabloon:Slim Geocode]] | |||
#*From what I read there, this just seems to correct some redirections ? | |||
Other question : how does [[nl:Sjabloon:Infobox/kaartje]] get the position of the "pin" on the map? Is it only based on the city ? (this is the feeling I get from looking at [[nl:World Organization of Independent Scouts]], for example.) | |||
Thanks for your feedback! <br> | |||
[[Utilisateur:Francoisdbe|Francoisdbe]] ([[Discussion utilisateur:Francoisdbe|discussion]]) 22 janvier 2024 à 18:14 (CET) | |||
:I will answer you after dinner. --[[Utilisateur:Egel|Egel]] ([[Discussion utilisateur:Egel|discussion]]) 22 janvier 2024 à 18:16 (CET) | |||
::Thanks ! no hurry at all. [[Utilisateur:Francoisdbe|Francoisdbe]] ([[Discussion utilisateur:Francoisdbe|discussion]]) 22 janvier 2024 à 18:30 (CET) | |||
:::I made it wonderfully complicated. But you don't have to do it the same way. | |||
:::Yes, you can use it here.<br />The simplest thing is to add something like this to [[:Modèle:Infobox groupe]]: | |||
:::<nowiki>{{#display_map: {{{lat|0}}},{{{lon|0}}} |width=215 |height=215 }}</nowiki> | |||
:::That produces something like this:<br />{{#display_map:43.299839,-0.369363|width=215|height=215}} | |||
:::But what do you do if no coordinates are entered? This should work too:<br /><nowiki>{{#display_map: {{{adresse|}}} {{{ville|}}} {{{arrondissement|}}}|width=215 |height=215 }}</nowiki><br />{{#display_map: Pau |width=215 |height=215 }} | |||
:::For more possibilities see: https://maps.extension.wiki/wiki/Maps_for_MediaWiki | |||
:::#Your first question is answered here: [[mediawikiwiki:Help:Templates#Control_template_inclusion]] | |||
:::#Yes [[nl:Sjabloon:Slim Geocode]] is used to just correct some things. It mainly ensures that some old names can be used for places in former colonies. | |||
:::If a coordinate is entered then I use it, otherwise the coordinate is determined from the city, state and country. | |||
:::I do this through all kinds of templates because at the same time I also determine as many coordinates as possible for the map on "Catégorie:Région........". | |||
:::--[[Utilisateur:Egel|Egel]] ([[Discussion utilisateur:Egel|discussion]]) 22 janvier 2024 à 20:38 (CET) | |||
::::Thanks for your quick and detailled answer! I'll try to insert that :) | |||
::::[[Utilisateur:Francoisdbe|Francoisdbe]] ([[Discussion utilisateur:Francoisdbe|discussion]]) 23 janvier 2024 à 09:03 (CET) |