Utilisateur:Tpt/externalLinksEdit.js
Apparence
Note : après avoir enregistré vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : Maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou pressez Ctrl-F5 ou Ctrl-R (⌘-R sur un Mac) ;
- Google Chrome : Appuyez sur Ctrl-Maj-R (⌘-Shift-R sur un Mac) ;
- Internet Explorer : Maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5 ;
- Opera : Allez dans Menu → Settings (Opera → Préférences sur un Mac) et ensuite à Confidentialité & sécurité → Effacer les données d'exploration → Images et fichiers en cache.
$.getScript( '//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-externalLinksEdit.js&action=raw', function() {
externalLinksEditTexts.buttonMenuLabel = 'Liens externes';
externalLinksEditTexts.buttonNavboxLabel= '[edit links]';
externalLinksEditTexts.buttonViafLabel= 'recherche dans le VIAF';
externalLinksEditTexts.editFormTitle= 'Modification des identifiants stockés sur Wikidiata';
externalLinksEditTexts.tips = {};
externalLinksEditTexts.tipDefault= 'L\'identifiant « {0} » est incorrect. Il doit respecter le format « {1} »';
externalLinksEditTexts.tipOnlyNumbers= 'L\'identifiant « {0} » ne doit contenir que des chiffres';
externalLinksEditTexts.buttonSave= 'Enregister';
externalLinksEditTexts.buttonCancel= 'Annuler';
externalLinksEditTexts.actionCentralauth = 'Get new global auth token';
externalLinksEditTexts.actionQueryInfoIntokenEdit = 'Get edit token for Q' + wgWikibaseItemId + '(«' + wgTitle + '»)';
externalLinksEditTexts.actionUpdateQualifier = 'Create profile address for «{label}» to «{value}» (claim «{claim}»)';
externalLinksEditTexts.actionCreateQualifier = 'Create profile address for «{label}» with value «{value}» (claim «{claim}»)';
externalLinksEditTexts.actionRemoveQualifier = 'Remove profile address for «{label}» (claim «{claim}»)';
externalLinksEditTexts.actionCreateQualifierPlaceholder = 'Add new property of porfile address for «{label}»';
externalLinksEditTexts.actionFillQualifierPlaceholder = 'Create «{label}» ID with value «{value}»';
externalLinksEditTexts.actionCreateClaim = 'Create «{label}» ID with value «{value}»';
externalLinksEditTexts.actionUpdateClaim = 'Update «{label}» ID to value «{value}» (claim «{claim}»)';
externalLinksEditTexts.actionDeleteClaim = 'Remove «{label}» ID (claim «{claim}»)';
externalLinksEditTexts.errorCantGetInfoIntokenEdit = 'Unable to obtain edit token';
externalLinksEdit.allowedNamespaces = [0,102];
externalLinksEdit.setup = function(){
var d = this.definitions;
this.groups = [];
this.groups.push( {
label: 'Official pages',
fields: [
d.Q171186, // blogspot.com
d.Q4037665, // dudu.com
d.Q355, // facebook.com
d.Q356, // plus.google.com
d.Q40629, // myspace.com
d.Q1002972, // spring.me
d.Q384060, // tumblr.com
d.Q918, // twitter.com
],
} );
this.groups.push( {
label: 'Audio, photo, video',
fields: [
d.P373, // commons.wikimedia.org
d.Q103204, // flickr.com
d.Q209330, // instagram.com
d.Q17117201, // promodj.com
d.Q568769, // soundcloud.com
d.Q156376, // vimeo.com
d.Q866, // youtube.com
],
} );
this.groups.push( {
label: 'Profiles: theater and movies',
fields: [
d.P1265, // allocine.fr
d.P1266, // allocine.fr
d.P1267, // allocine.fr
d.P1237, // boxofficemojo.com
d.P1217, // ibdb.com
d.P1218, // ibdb.com
d.P1219, // ibdb.com
d.P1220, // ibdb.com
d.P345, // imdb.com
d.P1258, // rottentomatoes.com
],
} );
this.groups.push( {
label: 'Profiles: music',
fields: [
d.P839, // imslp.org
d.P434, // musicbrainz.org
],
} );
this.groups.push( {
label: 'Profiles: books',
fields: [
d.P1233, // isfdb.org
d.P1234, // isfdb.org
d.P1235, // isfdb.org
d.P1239, // isfdb.org
],
} );
this.groups.push( {
label: 'Profiles: science',
fields: [
d.P549, // genealogy.ams.org
d.P496, // orcid.org
d.P1053, // researcherid.com
d.P1153, // scopus.com
],
} );
this.groups.push( {
label: 'Profiles: other',
fields: [
d.P535, // findagrave.com
],
} );
this.groups.push( {
label: 'Encyclopedias and dictionaries',
fields: [
d.P902, // hls-dhs-dss.ch
d.P886, // e-lir.ch
],
} );
this.groups.push( {
label: 'Authority control (VIAF)',
fields: [
d.P213, // ISNI
d.P214, // VIAF
d.P1017, // BAV
d.P1015, // BIBSYS
d.P1273, // BNC
d.P950, // BNE
d.P268, // BNF
d.P651, // BPN
d.P1309, // EGAXA
d.P227, // DNB / GND
d.P396, // ICCU / SBN
d.P244, // LCCN
d.P349, // NDL
d.P691, // NKC
d.P409, // NLA
d.P1006, // NTA
d.P951, // NSZL
d.P1207, // NUKAT
d.P1005, // PTBNP
d.P947, // RSL
d.P906, // SELIBR / LIBRIS
d.P269, // SUDOC
d.P245, // ULAN
],
} );
this.groups.push( {
label: 'Authority control (etc.)',
fields: [
d.P1315, // NLA PI
d.P270, // CALIS
d.P1213, // NLC
d.P271, // CiNii
d.P1003, // BNR
d.P1280, // CONOR
],
} );
};
externalLinksEdit.setup();
});