Utente:Zyephyrus/vector.js

Da Wikisource.

Nota: dopo aver pubblicato, potrebbe essere necessario pulire la cache del proprio browser per vedere i cambiamenti.

  • Firefox / Safari: tieni premuto il tasto delle maiuscole Shift e fai clic su Ricarica, oppure premi Ctrl-F5 o Ctrl-R (⌘-R su Mac)
  • Google Chrome: premi Ctrl-Shift-R (⌘-Shift-R su un Mac)
  • Internet Explorer / Edge: tieni premuto il tasto Ctrl e fai clic su Aggiorna, oppure premi Ctrl-F5
  • Opera: premi Ctrl-F5.
/* Tastini personali */
/* Bl */
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'BibLink': {
          label: 'BibLink',
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1c/Comillas_angulares.png',
          action: {type: 'encapsulate',
            options: { pre: "{{BibLink|",  post: "}}"
}}}}});});}
/* Pt */
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'Pt': {
          label: 'St',
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/4/4b/Button_class_text.png',
          action: {type: 'encapsulate',
            options: { pre: "{{Pt|",  post: "|}}"
}}}}});});}

http://upload.wikimedia.org/wikipedia/commons/b/b8/Button_number_0.png

/* indentatura a sinistra */
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'csi': {
          label: 'csi',
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/b/b8/Button_number_0.png',
          action: {type: 'encapsulate',
            options: { pre: "{{Centrato|{{smaller|''", post: "''}}}}"
}}}}});});}

/* punto nota */
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'punto nota': {
          label: '',
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/c/c4/Button_ref.png',
          action: {type: 'encapsulate',
            options: { pre: "<sup>nota</sup>",  post: ""
}}}}});});}

/* punto rule 4em */
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'rule 4em': {
          label: '',
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/2/2a/Button_Subheadline.gif',
          action: {type: 'encapsulate',
            options: { pre: "\n\n{{rule|4em}}\n\n",  post: ""
}}}}});});}