Discussion modèle:Bannière page

Le contenu de la page n’est pas pris en charge dans d’autres langues.
De Wikivoyage

Catégorie cachée[modifier]

Bonjour, je propose d'ajouter à ce modèle deux catégories cachées pour la maintenance : Catégorie:Page avec bannière personnalisée et Catégorie:Page avec bannière invalide; La première pour faire des statistique et savoir quelles pages ont une bannière personnalisée la seconde si tout simplement le nom de fichier n'existe pas sur commons. Otourly (discussion) 14 octobre 2013 à 17:06 (UTC)[répondre]

Catégories: Catégorie:Article avec bannière personnalisée et Catégorie:Article avec bannière invalide crées.--Adehertogh (discussion) 14 octobre 2013 à 18:00 (UTC)[répondre]
Quelle réactivité ! Merci ! Otourly (discussion) 14 octobre 2013 à 19:54 (UTC)[répondre]

Double titre avec la bannière de page[modifier]

(Sorry for writing in English. You can translate the proposal.)

Few days ago both in en:voy and it:voy arisen the need of eliminating the double title caused by the Modèle:Bannière page on the articles that use it (e.g. Paris).

I've found a solution and it has been implemented in both the above mentioned sites (see Parigi and/or Paris).

If you want to eliminate the double title here as well, an admin should add the following two lines in your common.js:

$(".topbanner").closest(".mw-body").children(".firstHeading").hide();
$(".topbanner").closest("#mw-content-text").children("#geoCoord").css({top:0});

--Andyrom75 (discussion) 24 juin 2013 à 06:35 (UTC)[répondre]

Il y a quelques jours à la fois sur WV anglais et italien, le besoin s'est fait sentir pour éliminer le double titre causée par le Modèle:Bannière page sur les articles qui l'utilisent.
S'il y a un consensus sur cette page, il existe une solution qui a été mis en place dans les deux sites mentionnés ci-dessus (par exemple Paris ou Parigi) et il est possible de l'implémenter sur WV français.--Adehertogh (discussion) 24 juin 2013 à 07:00 (UTC)[répondre]
Après essai, il y a un problème avec l'affichage des coordonnées du modèle Geo. On ne peut pas l'appliquer en l'état.--Adehertogh (discussion) 24 juin 2013 à 12:55 (UTC)[répondre]
(Sorry for replying in English.)
If I've understood correctly, Adehertogh is speaking about an issue but I haven't got which one in particular. I've applied the above instructions on Paris, Île-de-France and France and in all the three pages, that represent three different categories (1) articles without pagebanner, 2) articles with pagebanner without geo coordinates, 3) articles with pagebanner with geo coordinates) the resulting layout is correct. Please give me more details to understand better the situation. --Andyrom75 (discussion) 24 juin 2013 à 20:58 (UTC)[répondre]
I tried with explorer9 and the script hides the title when there is a banner (That's wanted so OK it works) but hides as well the geo coordinate when there are some...--Adehertogh (discussion) 25 juin 2013 à 05:12 (UTC)[répondre]
Thanks, now I got the point :-) Here in fr:voy, before the implementation, I've tested it only with Chrome. I've seen that you have a different (from the other sites) map+coordinates layout. I'll make some test in order to try to find out a custom solution for fr:voy. --Andyrom75 (discussion) 25 juin 2013 à 05:44 (UTC)[répondre]
I have IE8 (unfortunately not IE9) but it works perfectly (the same layout of Chrome). I'll try to find out an user with IE9 just to double check it, because it's strange that the JS behaviour between IE8 and IE9 would be different. --Andyrom75 (talk) 25 juin 2013 à 05:56 (UTC)[répondre]
just to avoid misunderstanding: I've made the above mentioned test on Paris because it's an article that show the coordinates. Are we on the same page? --Andyrom75 (talk) 25 juin 2013 à 07:05 (UTC)[répondre]
Yes, I tried also on the page Paris, the same for Košice and all the pages with Banner and Geo.--Adehertogh (discussion) 25 juin 2013 à 10:23 (UTC)[répondre]
I've noticed that Modèle:Geo has been copied from de:Vorlage:Geo (with minor changes). If you look at those two templates, the French one has a display issue: the icon it's not shown in top-right position. This means that css associated to the id=geoCoord doesn't work properly. You can make a test (visualization only) on the German one, removing that id, the result is the same wrong position of the French one. This means that the problem is on the code related to this template only.
You must search on all the JS/CSS file of fr:voy the ones that affect the following elements: #geoCoord (take a look also to .icon, .printNoLink and .plainlinks ...with less priority). At least one of these has one mistake.
Furthermore you should take time to revise and clean the JS/CSS files (at least Commons). It's a tedious taks but one day someone has to do it. It helps to remove useless/harmful stuff. Just for example: #geoCoordOld is it used by any template? The word Old suggest me "no", but I'm not sure.
Once reparied this template, you could add my code without any problem ;-) --Andyrom75 (talk) 26 juin 2013 à 06:42 (UTC)[répondre]
Any comments since last time? --Andyrom75 (talk) 27 juin 2013 à 18:40 (UTC)[répondre]
I don't have enought time to take a look at that now. If someboby else can do it, I would be glad.--Adehertogh (discussion) 28 juin 2013 à 05:29 (UTC)[répondre]