Revision 4019834 of "User:Ineuw/vector.js" on enwikisource

// if (mw.toolbar != undefined ){

if ( $.isArray( window.mwCustomEditButtons ) ) {

//User annotation
mw.toolbar.addButton(
      "",
      " Ua ",
      '<ref>{{Ua|note=',
      '}}</ref>',
      ""
);

// &emdash;
mw.toolbar.addButton(
      "http://upload.wikimedia.org/wikipedia/commons/8/8b/Button_mdash.png",
      " — ",
      '—',
      '',
      ""
);

// Category
mw.toolbar.addButton(
      "",
      " [[Cat ",
      '[[Category:',
      '|{{SUBPAGENAME}}]]\n',
      ""
);

//section begin=E
mw.toolbar.addButton(
      "",
      " sbE ",
      '<section begin=E',
      ' />',
      ""
);

//section end=E section begin=B
mw.toolbar.addButton(
      "",
      " seEsbB ",
      '{{PSM rule}}\n<section end=E',
      ' /><section begin=B />\n\n',
      ""
);

//section end=B
mw.toolbar.addButton(
      "",
      " seB ",
      '<section end=B',
      ' />',
      ""
);

//Under construction
mw.toolbar.addButton(
      "",
      " Und ",
      '{{Under construction}}',
      '',
      ""
);

//PSMTable
mw.toolbar.addButton(
      "",
      " Tbl ",
      '{{PSMTable}}',
      '',
      ""
);

//PSMImages
mw.toolbar.addButton(
      "",
      " Img ",
      '{{PSMImages}}',
      '',
      ""
);

}