|
|
Riga 26: |
Riga 26: |
| Il tutto è stato testato con Iceweasel 10.0.11 e WikEd 0.9.109a. La versione di WikEd è possibile leggerla lasciando il mouse sopra l'icona in alto a destra.<br/> | | Il tutto è stato testato con Iceweasel 10.0.11 e WikEd 0.9.109a. La versione di WikEd è possibile leggerla lasciando il mouse sopra l'icona in alto a destra.<br/> |
|
| |
|
| <pre>
| | {{Warningbox| Script - Problemi con la visualizzazione nel Wiki dovuti a diff e i codici HTML dei caratteri < >}} |
| --- 12529.user.js 2013-01-16 01:35:19.565400356 +0100
| | |
| +++ 12529.user.js.new 2013-01-16 01:35:46.901401743 +0100
| |
| @@ -90,6 +90,25 @@
| |
| 'wikEdBold title': 'Bold text',
| |
| 'wikEdItalic alt': 'Italic',
| |
| 'wikEdItalic title': 'Italic text',
| |
| +//Bottoni Wiki Debianizzati
| |
| + 'wikEdPre title': 'Pre',
| |
| + 'wikEdPre alt': 'Pre',
| |
| + 'wikEdCode title': 'Code',
| |
| + 'wikEdBr alt': 'br/',
| |
| + 'wikEdBr title': 'br/',
| |
| + 'wikEdNote title': 'Template Box',
| |
| + 'wikEdNote alt': 'Template Box',
| |
| + 'wikEdTip title': 'Template Suggerimento',
| |
| + 'wikEdTip alt': 'Template Suggerimento',
| |
| + 'wikEdWarn title': 'Template WarningBox',
| |
| + 'wikEdWarn alt': 'Template WarningBox',
| |
| + 'wikEdStub title': 'Template Stub',
| |
| + 'wikEdStub alt': 'Template Stub',
| |
| + 'wikEdAutori title': 'Template Autori',
| |
| + 'wikEdAutori alt': 'Template Autori',
| |
| + 'wikEdComp title': 'Versioni compatibili',
| |
| + 'wikEdComp alt': 'Versioni compatibili',
| |
| +//Fine Bottoni Wiki Debianizzati
| |
| 'wikEdUnderline alt': 'Underline',
| |
| 'wikEdUnderline title': 'Underline text',
| |
| 'wikEdStrikethrough alt': 'Strikethrough',
| |
| @@ -471,6 +490,17 @@
| |
| 'webLink': '1/16/WikEd_weblink.png',
| |
| 'wikEdDiff': 'c/c6/WikEdDiff.png',
| |
| 'wikify': '9/9f/WikEd_wikify.png',
| |
| +//Immagini bottoni Wiki Debianizzati
| |
| + 'Autori': 'd/de/Group.png',
| |
| + 'Pre': 'c/c5/WikEd_dummy.png',
| |
| + 'Code': 'c/c5/WikEd_dummy.png',
| |
| + 'Compatibili': 'c/c9/Tux_icon.png',
| |
| + 'Warning': '9/97/Red_braces.png',
| |
| + 'Note': '4/4b/Blu_braces.png',
| |
| + 'Tip': '9/9d/Yellow_braces.png',
| |
| + 'Stub': '3/36/Grey_braces.png',
| |
| + 'Br': 'c/c3/Break1.png',
| |
| +//Fine immagini bottoni Wiki Debianizzati
| |
| 'wikiLink': '2/21/WikEd_wikilink.png'
| |
| });
| |
| };
| |
| @@ -488,9 +518,10 @@
| |
| '.wikEdFrameBodyPlain': 'height: auto; min-height: 100%; width: auto; background: transparent; margin: 0; padding: 0; padding-left: 0.25em; overflow: auto; font-family: monospace;',
| |
|
| |
| '.wikEdFrameBodySyntax': 'height: auto; min-height: 100%; width: auto; background: transparent; margin: 0; padding: 0; padding-left: 0.25em; overflow: auto; font-family: monospace; text-shadow: white -1px -1px 0, white -1px 0 0, white -1px 1px 0, white 0 -1px 0, white 0 1px 0, white 1px -1px 0, white 1px 0 0, white 1px 1px 0;',
| |
| - '::selection': 'text-shadow: none; color: #fff; background: #006;',
| |
| - '::-moz-selection': 'text-shadow: none; color: #fff; background: #006;',
| |
| - '::-webkit-selection': 'text-shadow: none; color: #fff; background: #006;',
| |
| +// Selezione azzurra Wiki Debianizzati
| |
| + '::selection': 'text-shadow: none; color: #fff; background: #418bd4;',
| |
| + '::-moz-selection': 'text-shadow: none; color: #fff; background: #418bd4;',
| |
| + '::-webkit-selection': 'text-shadow: none; color: #fff; background: #418bd4;',
| |
| '.wikEdFrameBodyNewbie': 'height: auto; min-height: 100%; width: auto; background: transparent; margin: 0; padding: 0; padding-left: 0.25em; overflow: auto; font-family: monospace;',
| |
|
| |
| // reselection / scroll to selection
| |
| @@ -978,6 +1009,18 @@
| |
| 78: ['wikEdDiff', 'wikEdButtonUnchecked', wikEd.config.text['wikEdDiff title'], wikEd.config.image['wikEdDiff'], '16', '16', wikEd.config.text['wikEdDiff alt'], 'wikEd.Button(obj, objId, true);' ],
| |
| 74: ['wikEdScrollToEdit4', 'wikEdButtonSolo', wikEd.config.text['wikEdScrollToEdit4 title'], wikEd.config.image['scrollToEditDown'], '16', '16', wikEd.config.text['wikEdScrollToEdit4 alt'], 'wikEd.Button(obj, objId);' ],
| |
|
| |
| + // Bottoni Debianizzati
| |
| + 100: ['wikEdCode', 'wikEdButton', wikEd.config.text['wikEdCode title'], wikEd.config.image['Code'], '16', '16', wikEd.config.text['wikEdCode alt'], 'wikEd.EditButton(obj, objId);' ],
| |
| + 101: ['wikEdPre', 'wikEdButton', wikEd.config.text['wikEdPre title'], wikEd.config.image['Pre'], '16', '16', wikEd.config.text['wikEdPre alt'], 'wikEd.EditButton(obj, objId);' ],
| |
| + 102: ['wikEdAutori', 'wikEdButton', wikEd.config.text['wikEdAutori title'], wikEd.config.image['Autori'], '16', '16', wikEd.config.text['wikEdAutori alt'], 'wikEd.EditButton(obj, objId);' ],
| |
| + 103: ['wikEdComp', 'wikEdButton', wikEd.config.text['wikEdComp title'], wikEd.config.image['Compatibili'], '16', '16', wikEd.config.text['wikEdComp alt'], 'wikEd.EditButton(obj, objId);' ],
| |
| + 104: ['wikEdNote', 'wikEdButton', wikEd.config.text['wikEdNote title'], wikEd.config.image['Note'], '16', '16', wikEd.config.text['wikEdNote alt'], 'wikEd.EditButton(obj, objId);' ],
| |
| + 105: ['wikEdTip', 'wikEdButton', wikEd.config.text['wikEdTip title'], wikEd.config.image['Tip'], '16', '16', wikEd.config.text['wikEdTip alt'], 'wikEd.EditButton(obj, objId);' ],
| |
| + 106: ['wikEdWarn', 'wikEdButton', wikEd.config.text['wikEdWarn title'], wikEd.config.image['Warning'], '16', '16', wikEd.config.text['wikEdComp alt'], 'wikEd.EditButton(obj, objId);' ],
| |
| + 107: ['wikEdStub', 'wikEdButton', wikEd.config.text['wikEdStub title'], wikEd.config.image['Stub'], '16', '16', wikEd.config.text['wikEdStub alt'], 'wikEd.EditButton(obj, objId);' ],
| |
| + 108: ['wikEdBr', 'wikEdButton', wikEd.config.text['wikEdBr title'], wikEd.config.image['Br'], '16', '16', wikEd.config.text['wikEdBr alt'], 'wikEd.EditButton(obj, objId);' ],
| |
| +// Fine Bottoni Debianizzati
| |
| +
| |
| // dummy (empty placeholder)
| |
| 76: ['wikEdDummy', 'wikEdButtonDummy', '', wikEd.config.image['dummy'], '16', '16', '', '' ],
| |
|
| |
| @@ -1010,7 +1053,8 @@
| |
| wikEd.InitObject(wikEd.config.buttonBar, {
| |
| 'format': ['wikEdButtonBarFormat', 'wikEdButtonBarFormat', 'wikEdButtonsFormat', 'wikEdButtonsFormat', 44, wikEd.config.text['wikEdGripFormat title'], [1,2,3,4,5,6,7,8,9,10,12,13,14,'br',15,16,17,19,20,21,22,23,24,11,80,25,76] ],
| |
| 'textify': ['wikEdButtonBarTextify', 'wikEdButtonBarTextify', 'wikEdButtonsTextify', 'wikEdButtonsTextify', 44, wikEd.config.text['wikEdGripTextify title'], [26,'br',27] ],
| |
| - 'custom1': ['wikEdButtonBarCustom1', 'wikEdButtonBarCustom1', 'wikEdButtonsCustom1', 'wikEdButtonsCustom1', 44, wikEd.config.text['wikEdGripCustom1 title'], [ ] ],
| |
| +// Barra personalizzata bottoni Debianizzati
| |
| + 'custom1': ['wikEdButtonBarCustom1', 'wikEdButtonBarCustom1', 'wikEdButtonsCustom1', 'wikEdButtonsCustom1', 44, wikEd.config.text['wikEdGripCustom1 title'], [100,108,102,104,105,'br',101,76,103,106,107] ],
| |
| 'find': ['wikEdButtonBarFind', 'wikEdButtonBarFind', 'wikEdButtonsFind', 'wikEdButtonsFind', 44, wikEd.config.text['wikEdGripFind title'], [39,40,'find',41,76,43,44,'br',46,47,'replace',48,49,50,51] ],
| |
| 'fix': ['wikEdButtonBarFix', 'wikEdButtonBarFix', 'wikEdButtonsFix', 'wikEdButtonsFix', 44, wikEd.config.text['wikEdGripFix title'], [52,53,54,55,56,81,'br',58,59,60,61,62,57] ],
| |
| 'custom2': ['wikEdButtonBarCustom2', 'wikEdButtonBarCustom2', 'wikEdButtonsCustom2', 'wikEdButtonsCustom2', 44, wikEd.config.text['wikEdGripCustom2 title'], [ ] ],
| |
| @@ -5566,6 +5610,15 @@
| |
| // basic wiki character formatting: selection / focusWord / cursor
| |
| case 'wikEdBold':
| |
| case 'wikEdItalic':
| |
| + case 'wikEdCode':
| |
| + case 'wikEdPre':
| |
| + case 'wikEdBr':
| |
| + case 'wikEdAutori':
| |
| + case 'wikEdNote':
| |
| + case 'wikEdWarn':
| |
| + case 'wikEdStub':
| |
| + case 'wikEdTip':
| |
| + case 'wikEdComp':
| |
| case 'wikEdUnderline':
| |
| case 'wikEdStrikethrough':
| |
| case 'wikEdNowiki':
| |
| @@ -5964,6 +6017,78 @@
| |
| }
| |
| }
| |
| obj.changed.keepSel = true;
| |
| + break;
| |
| +
| |
| + // code
| |
| + case 'wikEdCode':
| |
| +
| |
| + // remove markup
| |
| + if ( /&lt;code&gt;((.|\n)*?)&lt;\/code&gt;/i.test(obj.changed.plain) ) {
| |
| + obj.changed.plain = obj.changed.plain.replace(/&lt;code&gt;((.|\n)*?)&lt;\/code&gt;/gi, '$1');
| |
| + }
| |
| +
| |
| + // add markup
| |
| + else {
| |
| + obj.changed.plain = '&lt;code&gt;' + obj.changed.plain + '&lt;\/code&gt;';
| |
| + if (emptyOrSpaces == false) {
| |
| + obj.changed.plain = obj.changed.plain.replace(/^(&lt;code&gt;)(\s*)((.|\n)*?)(\s*)(&lt;\/code&gt;)$/, '$2$1$3$6$5');
| |
| + }
| |
| + }
| |
| + obj.changed.keepSel = true;
| |
| + break;
| |
| +
| |
| + // br
| |
| + case 'wikEdBr':
| |
| + obj.changed.plain = '&lt;br/&gt;>';
| |
| + break;
| |
| +
| |
| + // autori
| |
| + case 'wikEdAutori':
| |
| + obj.changed.plain = '{{Autori\n|Autore=~~~~\n|Verificata_da=\n|Estesa_da=\n|Numero_revisori=0\n}}';
| |
| + break;
| |
| +
| |
| + // versioni compatibili
| |
| + case 'wikEdComp':
| |
| + obj.changed.plain = '{{Versioni compatibili}}\n';
| |
| + break;
| |
| +
| |
| + // suggerimento
| |
| + case 'wikEdTip':
| |
| + obj.changed.plain = '{{Suggerimento|}}\n';
| |
| + break;
| |
| + // Warninbox
| |
| + case 'wikEdWarn':
| |
| + obj.changed.plain = '{{Warningbox|}}\n';
| |
| + break;
| |
| + // Note
| |
| + case 'wikEdNote':
| |
| + obj.changed.plain = '{{Box||}}\n';
| |
| + break;
| |
| + // stub
| |
| + case 'wikEdStub':
| |
| + obj.changed.plain = '{{Stub}}\n';
| |
| + break;
| |
| + // Template Autori
| |
| + case 'wikEdAutori':
| |
| + obj.changed.plain = '{{Autori\n|Autore=~~~~\n|Verificata_da=\n|Estesa_da=\n|Numero_revisori=0\n}}';
| |
| + break;
| |
| +
| |
| + // pre
| |
| + case 'wikEdPre':
| |
| +
| |
| + // remove markup
| |
| + if ( /&lt;pre&gt;((.|\n)*?)&lt;\/pre&gt;/i.test(obj.changed.plain) ) {
| |
| + obj.changed.plain = obj.changed.plain.replace(/&lt;pre&gt;((.|\n)*?)&lt;\/pre&gt;/gi, '$1');
| |
| + }
| |
| +
| |
| + // add markup
| |
| + else {
| |
| + obj.changed.plain = '&lt;pre&gt;' + obj.changed.plain + '&lt;\/pre&gt;';
| |
| + if (emptyOrSpaces == false) {
| |
| + obj.changed.plain = obj.changed.plain.replace(/^(&lt;pre&gt;)(\s*)((.|\n)*?)(\s*)(&lt;\/pre&gt;)$/, '$2$1$3$6$5');
| |
| + }
| |
| + }
| |
| + obj.changed.keepSel = true;
| |
| break;
| |
|
| |
| // underline
| |
| </pre>
| |
|
| |
|
| === Applicare e rimuovere la patch === | | === Applicare e rimuovere la patch === |