« MediaWiki:Vector.js » : différence entre les versions
mAucun résumé des modifications |
Deutch |
||
| (3 versions intermédiaires par 2 utilisateurs non affichées) | |||
| Ligne 2 : | Ligne 2 : | ||
// Ajout d'une icone devant les liens interlangues. | // Ajout d'une icone devant les liens interlangues. | ||
$(function () { | $(function() { | ||
} | // Icône pour EN | ||
$('li.interwiki-en > .interlanguage-link-target') | |||
.prepend('<img style="margin-right:5px;" src="https://images.fallout.wiki/3/37/Wiki.webp" width="25" height="25">'); | |||
// Icône pour DE | |||
$('li.interwiki-de > .interlanguage-link-target') | |||
.prepend('<img style="margin-right:5px;" src="https://vaultpedia.de/images/b/b7/Fallout-Wiki_Icon.png" width="25" height="25">'); | |||
}); | |||
Dernière version du 7 mars 2026 à 17:25
/* Tout code JavaScript placé ici sera chargé avec les pages accédées par les utilisateurs de l’habillage Vector */
// Ajout d'une icone devant les liens interlangues.
$(function() {
// Icône pour EN
$('li.interwiki-en > .interlanguage-link-target')
.prepend('<img style="margin-right:5px;" src="https://images.fallout.wiki/3/37/Wiki.webp" width="25" height="25">');
// Icône pour DE
$('li.interwiki-de > .interlanguage-link-target')
.prepend('<img style="margin-right:5px;" src="https://vaultpedia.de/images/b/b7/Fallout-Wiki_Icon.png" width="25" height="25">');
});