User talk:Robinr78/common.js: Difference between revisions

From Robin's SM-201 Website
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* stable as of 11/11/19 */
<pre>
var customizeToolbar = function () {
var customizeToolbar = function () {
/* srtable as of 2021-0218 */


/* ======================================Add SM-201 & category Sections */
/* Enable section:SM-201 */
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'sections': {
Line 14: Line 12:
} );
} );


/* Enable section:Other */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
  'sections': {
'Cats': {
'Other': {
'type': 'toolbar', // Can also be 'booklet'
'type': 'toolbar', // Can also be 'booklet'
'label': 'Cats'
'label': 'Other'
}
}
}
}
Line 24: Line 23:




/* ===============================================================Add groups */


/* -------------------add Format group ------------------- */
/* Enable Group:Format: */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'SM-201',
section: 'SM-201',
'groups': {
'groups': {
'Format': {
'Format': {
Line 36: Line 34:
} );
} );


/* ------------------- add files group ----------------------*/
/* --- Enable Format:Comment */
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'SM-201',
section: 'SM-201',
'groups': {
group: 'Format',
'Files': {
tools: {
'label': 'Files'  
"Comment": {
label: 'Comment',
type: 'button',
icon: 'http://www.sm-201.org/a/images/6/66/Editor_!.png',
action: {
type: 'encapsulate',
options: {
pre:  '<!-- ',
post: ' -->'
}
}
}
}
}
}
} );
} );


/* ------------------- add <inc> group ----------------------*/
/* --- Enable Format:Apostrophe */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'SM-201',
section: 'SM-201',
'groups': {
group: 'Format',
'Inc': {
tools: {
'label': 'Inc'  
"Apostrope": {
label: 'Apostrophe',
type: 'button',
icon: 'http://www.sm-201.org/a/images/3/39/Editor_apos.png',
action: {
type: 'encapsulate',
options: {
pre:  "'",
post: "'"
}
}
}
}
}
}
} );
} );


/* ------------------- add footers group ----------------------*/
/* --- Enable Format:<clear /> */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'SM-201',
section: 'SM-201',
'groups': {
group: 'Format',
'Footer': {
tools: {
'label': 'Footer'  
"Clear": {
label: 'Clear',
type: 'button',
icon: 'http://sm-201.org/a/images/b/be/Editor_c.png',
action: {
type: 'encapsulate',
options: {
pre: '<br clear="all"> ',
post: ''  
}
}
}
}
}
}
} );
});


/* ------------------- add Needs group ----------------------*/
/* --- Enable Format:List Item */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'SM-201',
section: 'SM-201',
'groups': {
group: 'Format',
'Needs': {
tools: {
'label': 'Needs'  
"Item2": {
label: 'Item2',
type: 'button',
icon: 'http://sm-201.org/a/images/7/79/Button_item.jpg',
action: {
type: 'encapsulate',
options: {
pre: '* [[',
post: ']]'  
}
}
}
}
}
}
} );
});
/* ------------------- add Categories group -----------------*/
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
/* --- Enable Format:Template Item */
'section': 'Cats',
$('#wpTextbox1').wikiEditor('addToToolbar', {
'groups': {
section: 'SM-201',
'Cats': {
group: 'Format',
'label': 'Cats'
tools: {
"Item": {
label: 'Item',
type: 'button',
icon: 'http://sm-201.org/a/images/0/02/Button_dot.png',
action: {
type: 'encapsulate',
options: {
pre: ' • [[',
post: ']]'  
}
}
}
}
}
}
} );
});


/* --- Enable Format:Tempate:BC */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Format',
tools: {
"{{bc": {
label: '{{bc',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
action: {
type: 'encapsulate',
options: {
pre: "{{bc|",
                                        post:"}}"
}
}
}
}
});


/* ====================================================== Add <Inc> buttons === */
/* --- Enable Format:Book title */
 
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Inc',
group: 'Format',
tools: {
tools: {
"Incl": {
"{{Titles": {
label: 'Incl',
label: 'Titles',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/3/3b/Button_in.jpg',  
  icon: 'http://www.sm-201.org/a/images/f/f4/Button_ititle.jpg',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "<includeonly>",
pre: "{{Titles|",
                                         post:"</includeonly>"
                                         post:"}}"
}
}
}
}
Line 107: Line 175:
});
});


 
/* --- Enable Format:Book title */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Inc',
group: 'Format',
tools: {
tools: {
"Noinclude": {
"Book link": {
label: 'Noinclude',
label: 'Book link',
type: 'button',
type: 'button',
      icon: 'http://www.sm-201.org/a/images/1/1b/Button_no.jpg',  
  icon: 'http://www.sm-201.org/a/images/e/e0/Editor_book.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "<noinclude>",
pre: '"<I>[[',
                                         post:"</noinclude>"
                                         post: ']]</I>"'
}
}
}
}
Line 127: Line 195:
});
});


/* --- Enable Format:Book title */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Inc',
group: 'Format',
tools: {
tools: {
"Nowiki": {
"Book title": {
label: 'Nowiki',
label: 'Book Title',
type: 'button',
type: 'button',
      icon: 'http://www.sm-201.org/a/images/a/a6/Button_quiet.jpg',  
  icon: 'http://www.sm-201.org/a/images/e/e0/Editor_book.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "<nowiki>",
pre: '"<I>',
                                         post:"</nowiki>"
                                         post: '</I>"'
}
}
}
}
Line 146: Line 215:
});
});


/* ================================================================== Needs ======*/
/* --- Enable button Other:Also:Movies */
 
$('#wpTextbox1').wikiEditor('addToToolbar', {
 
/* Toolbar Category Button  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Needs',
group: 'Format',
tools: {
tools: {
"Cats": {
"Movies": {
label: 'Category',
label: 'Movies',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png',
      icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '[[Category:',
pre: "{{Movies",
post: ']]'
                    post:"}}"
}
}
}
}
}
}
}
}
} );
});
 


/* --- Enable Format:Underline */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Needs',
group: 'Format',
tools: {
tools: {
"Needs": {
"Underline": {
label: 'Header',
label: 'Underline',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
icon: 'http://www.sm-201.org/a/images/7/73/Editor_ul.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Header}} ",
pre: "<u>",
                                        post:""
post: "</u>",
}
}
}
}
Line 189: Line 255:
});
});


/* --- Enable Format:Strike through*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Needs',
group: 'Format',
tools: {
tools: {
"Footer": {
"Strike": {
label: 'Footer',
label: 'Strike',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png',
icon: 'http://www.sm-201.org/a/images/c/c9/Button_strike.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Footer}} ",
pre: '<s>',
                                        post:""
post: '</s>',
}
}
}
}
Line 208: Line 275:
});
});


/* --- Enable Format:button [[link]] */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
group: 'Format',
tools: {
"Template": {
label: 'Link',
type: 'button',
icon: 'http://www.sm-201.org/a/images/c/c0/Button_link.png',
action: {
type: 'encapsulate',
options: {
pre:  '[[',
post: ']]'
}
}
}
}
} );


/* --- Enable Format:button {{ }} */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
group: 'format',
tools: {
"Template": {
label: 'Template',
type: 'button',
icon: 'http://www.sm-201.org/a/images/5/5f/Button_temp.png',
action: {
type: 'encapsulate',
options: {
pre: "{{",
post: "}}"
}
}
}
}
} );


/* --- Enable Format:button Quotes */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Needs',
group: 'Format',
tools: {
tools: {
"Needs": {
"Quotes": {
label: 'Needs',
label: 'Quotes',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
icon: 'http://www.sm-201.org/a/images/7/7d/Button_quot.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Needs}} ",
pre: '"',
                                        post:""
post: '"',
}
}
}
}
Line 229: Line 335:
});
});


/* --- Enable Format:button moz-column */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Needs',
group: 'Format',
tools: {
tools: {
"Needs": {
"Columns": {
label: 'Wikimain',
label: 'Columns',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/8/82/Wikilogo-20.png',  
icon: 'http://www.sm-201.org/a/images/0/04/Button_multicol.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Wikimain|_| }}",
pre: "<div style='-moz-column-count:2; column-count:2;'>",
                                        post:""
post: "</div>",
}
}
}
}
Line 248: Line 355:
});
});


/* --- Enable Format:button Center */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Needs',
group: 'Format',
tools: {
tools: {
"Needs": {
"Center": {
label: '@',
label: 'Center',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/e/eb/Button_@.png',
icon: 'http://www.sm-201.org/a/images/5/5f/Button_center.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{WorldMap|",
pre: '<center>',
                                        post:"}} {{@wr}}"
post: '</center>',
}
}
}
}
Line 267: Line 375:
});
});


/* =================================================== Add footer buttons ====*/
/* --- Enable Format:button Justify */
/* Add Footers */
 
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Format',
tools: {
tools: {
"Footer": {
"Justify": {
label: 'Footer',
label: 'Justify',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png',
icon: 'http://www.sm-201.org/a/images/0/0f/Button_just.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Header}} ",
pre: '<p align="justify">',
                                        post:"{{Footer}} "
post: '</p>',
}
}
}
}
Line 289: Line 395:
});
});


/* Enable Group:Inc:  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
'groups': {
'Inc': {
'label': 'Inc'
}
}
} );


/* Add Biofooters - Biographies */
/* --- Enable button Inc:Includeonly */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Inc',
tools: {
tools: {
"Biofooter": {
"Incl": {
label: 'Biofooter',
label: 'Incl',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
  icon: 'http://www.sm-201.org/a/images/3/3b/Button_in.jpg',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Bioheader}}",
pre: "<includeonly>",
                                         post:"{{Biofooter}}"
                                         post:"</includeonly>"
}
}
}
}
Line 310: Line 425:
});
});


/* Add Historyfooter */
/* --- Enable button Inc:Noinclude */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Inc',
tools: {
tools: {
"Historyfooter": {
"Noinclude": {
label: 'History footer',
label: 'Noinclude',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
      icon: 'http://www.sm-201.org/a/images/1/1b/Button_no.jpg',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Historyheader}}<br>",
pre: "<noinclude>",
                                         post: "{{Historyfooter}}<br>"
                                         post:"</noinclude>"
}
}
}
}
Line 330: Line 445:
});
});


 
/* --- Enable button Inc:Nowiki */
/* Add Iconfooter */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Inc',
tools: {
tools: {
"Iconfooter": {
"Nowiki": {
label: 'Icon footer',
label: 'Nowiki',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png',
      icon: 'http://www.sm-201.org/a/images/a/a6/Button_quiet.jpg',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Iconheader}}<br>",
pre: "<nowiki>",
                                         post: "{{Iconfooter}}<br>"
                                         post:"</nowiki>"
}
}
}
}
Line 351: Line 465:
});
});


/* Add Libfooter Library*/
/* Enable group:Notes: */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
    section: 'SM-201',
'groups': {
'Refs': {
'label': 'Refs'
}
}
} );
 
 
/* --- Enable button Refs:<ref> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Refs',
tools: {
tools: {
"Libraryfooter": {
"Ref": {
label: 'Libraryfooter',
label: 'RefLink',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/e/e0/Editor_book.png',
      icon: 'http://www.sm-201.org/a/images/7/79/Button_reflink.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Libheader}}<br>",
pre: "<ref>",
                                         post: "{{Libfooter}}<br>"
                                         post:"</ref>"
}
}
}
}
Line 371: Line 496:
});
});


/* Add Lifefooter */
/* --- Enable button Refs:<ref> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Refs',
tools: {
tools: {
"Life Lessons footer": {
"Note": {
label: 'Lifefooter',
label: 'Note',
type: 'button',
type: 'button',
   icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png',
   icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Lifeheader}}<br>",
pre: "<ref group="Note"",
                                        post: "{{Lifefooter}}<br>"
                    post:"</ref>"
}
}
}
}
Line 391: Line 516:
});
});


 
/* --- Enable button Notes:Calendar  */
/* Add Macrofooter */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Refs',
tools: {
tools: {
"Life Lessons footer": {
"Access": {
label: 'Macrofooter',
label: 'Access',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/f/fc/Editor_mac.png',
icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  "{{Macroheader}} ",
pre:  "accessed = ",
                                        post: "{{Macrofooter}}"
post: ""
}
}
}
}
}
}
}
}
});
} );
 


/* Add Microfooter */
/* --- Enable button Refs:<reflist> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Refs',
tools: {
tools: {
"Micropedia footers": {
"Ref": {
label: 'Microfooter',
label: 'RefList',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/9/95/Editor_mic.png',
      icon: 'http://www.sm-201.org/a/images/3/32/Button_reflist.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Microheader}} ",
pre: "== References ==<br><References />,
                                         post: "{{Microfooter}}"
                                         post:""
}
}
}
}
Line 432: Line 557:
});
});


 
/* --- Enable button Refs:<reflist> */
/* Add RLPMfooters */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Refs',
tools: {
tools: {
"Robins Personal memories": {
"Ref": {
label: 'Robin Mem',
label: 'RefList',
type: 'button',
type: 'button',
   icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',
   icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Pmheader}} ",
pre: "<references group="Note" />",
                                         post: "{{Pmfooter}}"
                                         post:""
}
}
}
}
Line 454: Line 578:




/* Add RL footers */
 
 
 
 
/* --- Enable button model */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Refs',
tools: {
tools: {
"Resource Guide": {
"Main": {
label: 'Resources',
label: 'Main',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png',
      icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{rl-header}} ",
pre: "{{Main|",
                                        post: "{{rl-footer}}"
                    post:"}}"
}
}
}
}
Line 473: Line 601:
}
}
});
});
/* Add Storyfooters */
 
 
 
/* ---- Enable Links:Site ok */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Refs',
tools: {
tools: {
"Storyfooter": {
"Refs": {
label: 'Storyfooter',
label: 'YGroups',
type: 'button',
type: 'button',
   icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
   icon: 'http://www.sm-201.org/a/images/f/f1/Editor_y.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Storyheader}} ",
pre: "{{YGroups|",
                                        post:"{{Storyfooter}}"
                    post:"}}"
}
}
}
}
Line 493: Line 624:
});
});


/* Add Timefooters */
/* --- Enable button Notes:@wr */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Refs',
tools: {
tools: {
"Timefooter": {
"Needs": {
label: 'Timefooter',
label: '{wref"}',
type: 'button',
type: 'button',
   icon: 'http://www.sm-201.org/a/images/1/19/Editor_t.png',
   icon: 'http://www.sm-201.org/a/images/e/eb/Button_@.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Timeheader}} ",
pre: '{{wref"|',
                                        post:"{{Timefooter}}"
                    post:"}}"
}
}
}
}
Line 513: Line 644:
});
});


/*===================================================Format Button====*/
/* Enable group:Notes: */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
    section: 'SM-201',
'groups': {
'Notes': {
'label': 'Notes'
}
}
} );


/* Toolbar <Comment Button */
/* --- Enable button Notes:Category */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Comment": {
"Cats": {
label: 'Comment',
label: 'Category',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/6/66/Editor_!.png',
icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '<!-- ',
pre:  '[[Category:',
post: ' -->'
post: ']]'
}
}
}
}
Line 535: Line 674:
} );
} );


/* Toolbar Apostrophe Button */
/* --- Enable button Notes:Calendar */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Apostrope": {
"mm/yr": {
label: 'Apostrphe',
label: '02/21',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/3/39/Editor_apos.png',
icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  "'",
pre:  "02/21",
post: "'"
post: ""
}
}
}
}
Line 555: Line 694:
} );
} );


/* --- Enable button Notes:header  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Needs',
tools: {
"Needs": {
label: 'Header',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Header",
                                        post:"}}"
}
}
}
}
});


/* Add  'clear'  =====================*/
/* --- Enable button Notes:header| */
 
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Clear": {
"Needs": {
label: 'Clear',
label: 'Header',
type: 'button',
type: 'button',
icon: 'http://sm-201.org/a/images/b/be/Editor_c.png',
  icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '<br clear="all"> ',
pre: "{{Header|",
post: ''
                                        post:" 02/21}}"
}
}
}
}
Line 577: Line 734:
});
});


/* --- Enable button Notes:footer  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Item": {
"Footer": {
label: 'Item',
label: 'Footer',
type: 'button',
type: 'button',
icon: 'http://sm-201.org/a/images/0/02/Button_dot.png',
  icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: ' • [[',
pre: "{{Footer",
post: ']]'
                                        post:"}}"
}
}
}
}
Line 596: Line 754:
});
});


/* Add Files group buttons ========================================================== */
/* --- Enable button Notes:Category:needs */
/* Toolbar Models category Buttons  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Files',
group: 'Notes',
tools: {
tools: {
"Bond70": {
"Needs": {
label: 'Bond70',
label: 'Notes',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/ea/Cat-model.jpg',
  icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                pre: '{{bond-1970|',
pre: "{{Needs",
post: '}}'
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});


 
/* --- Enable button model */
 
$('#wpTextbox1').wikiEditor('addToToolbar', {
/* Toolbar copyright button =======================*/
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Files',
group: 'Notes',
tools: {
tools: {
"Copy": {
"Model": {
label: 'Copy',
label: 'Model',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/2/22/Button-copy.jpg',
      icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: 'Copyright info not available/ownership unkown',
pre: "{{Infobox model",
post: ''
                                        post:""
}
}
}
}
}
}
}
}
} );
});


/* Toolbar date button =======================*/
/* --- Enable button Pornstud  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Files',
group: 'Notes',
tools: {
tools: {
"Date": {
"Pornstud": {
label: 'Date',
label: 'Model',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/0/01/Button-cal.jpg',
      icon: 'http://www.sm-201.org/a/images/9/9f/Button_male.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '06/01/2018',
pre: "{{Infobox pornstud",
post: ''
                                        post:""
}
}
}
}
}
}
}
}
} );
});


/* Toolbar gallery button =======================*/
/* --- Enable Pornstar */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Files',
group: 'Notes',
tools: {
tools: {
"Gallery": {
"Model": {
label: 'Gallery',
label: 'Model',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/3/35/Editor_g.png',
icon: 'http://www.sm-201.org/a/images/e/ea/Cat-model.jpg',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '<gallery mode="packed" heights="200px"> ',
                                pre:  '{{Infobox pornstar',
post: '</gallery>'
post: ''
}
}
}
}
Line 679: Line 834:
} );
} );


 
/* --- Enable button Notes:toporn  */
/* Toolbar thumb button =======================*/
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Files',
group: 'Notes',
tools: {
tools: {
"Thumb": {
"toporn": {
label: 'Thumb',
label: '',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/6/6f/Button_thumb.jpg',
icon: 'http://sm-201.org/a/images/1/19/Editor_t.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '[[File',
pre:  '{{toporn|add=} }',
post: '|thumb|right|130px| ]]'
post: ''
}
}
}
}
Line 700: Line 854:
} );
} );


/*   Add Book Title    */
 
/* --- Enable button Notes:ok  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Files',
group: 'Notes',
tools: {
tools: {
"Book title": {
"Needs": {
label: 'Book Title',
label: 'sa-porn',
type: 'button',
type: 'button',
   icon: 'http://www.sm-201.org/a/images/e/e0/Editor_book.png',
   icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '"<I>',
pre: "{{sa-porn",
                                        post: '</I>"'
                    post:"}}"
}
}
}
}
Line 720: Line 875:
});
});


 
/* --- Enable button Notes:ltx8 */
/* Strike through =====================*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Strike": {
"ltx8": {
label: 'Strike',
label: 'ltx8',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/c/c9/Button_strike.png',
  icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '<s>',
pre: "{{ltx8|Latex‏|Latex shopping‏‎|Latex clothing|Latex stores|Latex online|Latex clothing designers|Latex clothing manufacturers|Latex suppliers",
post: '</s>',
post:"‏‎"
}
}
}
}
Line 741: Line 895:
});
});


/* Toolbar [[ ]] Button */
/* --- Enable button Notes:Heads2 */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Template": {
"A2": {
label: 'Link',
label: 'Heads2',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/c/c0/Button_link.png',
icon: 'http://www.sm-201.org/a/images/e/e9/Button_headline2.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '[[',
pre:  '==',
post: ']]'
post: '=='
}
}
}
}
Line 761: Line 915:
} );
} );


/* Toolbar double curly brackets Button */
 
/* --- Enable button Notes:dagger */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'format',
group: 'Notes',
tools: {
tools: {
"Template": {
"dagger": {
label: 'Template',
label: 'dagger',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/5/5f/Button_temp.png',
icon: 'http://www.sm-201.org/a/images/b/b1/Button_dagger.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{",
pre: '&dagger;',
post: "}}"
post: ''
}
}
}
}
Line 781: Line 936:
} );
} );


/* Quotes */
/* --- Enable button Notes:Wiki:@  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Quotes": {
"Needs": {
label: 'Quotes',
label: 'Wikimain',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/7/7d/Button_quot.png',
  icon: 'http://www.sm-201.org/a/images/8/82/Wikilogo-20.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '"',
pre: "{{Wikimain|",
post: '"',
                                        post:"|_}}"
}
}
}
}
Line 801: Line 956:
});
});


 
/* --- Enable button Notes:Redirect */
/* MulttiColumns */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Columns": {
"Redirect": {
label: 'Columns',
label: 'Redirect',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/0/04/Button_multicol.png',
  icon: 'http://www.sm-201.org/a/images/c/c8/Button_redirect.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "<div style='-moz-column-count:2; column-count:2;'>",
pre: "#REDIRECT [[",
post: "</div>",
                                        post:"]]"
}
}
}
}
Line 822: Line 976:
});
});


/* Center */
/* --- Enable button Notes:SHP matrix */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Center": {
"SHP": {
label: 'Center',
label: 'SHP',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/5/5f/Button_center.png',
  icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '<center>',
pre: "{{shp|rpm=|emh=|bah=|etv=|bur=|msh=|pin=|sph=|show=|eve=|wwii=|yank=}}",
post: '</center>',
                    post:""
}
}
}
}
Line 842: Line 996:
});
});


 
/* --- Enable button Notes:Defaultsort  */
/* Justify */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Justify": {
"{DS}": {
label: 'Justify',
label: '(DS)',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/0/0f/Button_just.png',
  icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '<p align="justify">',
pre: "{{DEFAULTSORT:",
post: '</p>',
                                        post:"}}"
}
}
}
}
Line 863: Line 1,016:
});
});


/* =========================================== Add Category Buttons==== */
/* --- Enable button Notes:insert image */
 
$('#wpTextbox1').wikiEditor('addToToolbar', {
 
section: 'SM-201',
/* Toolbar Category Button  */
group: 'Notes',
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
group: 'Cats',
tools: {
tools: {
"Cats": {
"Needs": {
label: 'Category',
label: 'image:',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png',
  icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '[[Category:',
    pre: "Image:",
post: ']]'
                                    post:""
}
}
}
}
}
}
}
}
} );
});


/* Artist Category Button  */
/* --- Enable button mt - MT coloumn */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Notes',
tools: {
tools: {
"Cats": {
"MT": {
label: 'Artist',
label: 'MT',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/3/32/Button-art.png',
  icon: 'http://www.sm-201.org/a/images/a/ad/Button_mt.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Artists}} {{Art forms}} {{Art techniques}} ',
pre: "|| &nbsp; ",
post: ' {{BDSM artists}} {{Fetish artists}} {{Pin-up artists}} {{Vintart}} '
                    post:""
}
}
}
}
}
}
}
}
} );
});
 
 
 
 




/* Author Category Button  */
/* --- Enable button Notes:@wr */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Notes',
tools: {
tools: {
"Cats": {
"Needs": {
label: 'Authors',
label: '{wr}',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/1/15/Button-quil.png',
  icon: 'http://www.sm-201.org/a/images/e/eb/Button_@.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Adult authors}} {{BDSM authors}} {{Fetish authors}} ',
pre: "{{@wr",
post: '{{SciFi authors}} '
                    post:"}}"
}
}
}
}
}
}
});
/* Enable group:Links: */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
'groups': {
'Links': {
'label': 'Links'
}
}
}
}
} );
} );


/* Toolbar Anatomy category Button  */
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
/* --- Enable Links:External links*/
section: 'Cats',
$('#wpTextbox1').wikiEditor('addToToolbar', {
group: 'Cats',
section: 'SM-201',
group: 'Links',
tools: {
tools: {
"Template": {
'External': {
label: 'Human anatomy',
label: 'External',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e0/Editor_a.png',
icon: 'http://www.sm-201.org/a/images/e/e3/Editor_e.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{anatomy}}',
                pre: "== External links ==",
post: ''
post: '',
}
}
}
}
}
}
}
}
} );
});
 
 
 
 


/* Toolbar Anatomy category Button  */
/* ---- Enable Links:Sanity */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Links',
tools: {
tools: {
"Template": {
"Links": {
label: 'Book',
label: 'Sanity',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
  icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Books}} {{Art books}} {{BDSM books}} {{Fetbooks}} {{Novels}} {{Photobooks}} {{Vintbooks}} ',
pre: "{{Sanity check|02/21|R/}}",
post: ''
                post:""
}
}
}
}
}
}
}
}
} );
});
/* Toolbar "Classes" category Button  */
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
/* ---- Enable Links:Site ok */
section: 'Cats',
$('#wpTextbox1').wikiEditor('addToToolbar', {
group: 'Cats',
section: 'SM-201',
group: 'Links',
tools: {
tools: {
"Template": {
"Links": {
label: 'Classes',
label: 'Link OK',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/6/67/Cat-class.jpg',
  icon: 'http://www.sm-201.org/a/images/f/f1/Editor_y.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Classes}} {{BD classes}} {{schools}}',
pre: "{{Site-ok|02/21 R/}} ",
post: ''
                    post:""
}
}
}
}
}
}
}
}
} );
});


 
/* ---- Enable Links:Red */
/* Toolbar "Club" category Button  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'Cats',
group: 'Links',
group: 'Cats',
tools: {
tools: {
"Template": {
"Links": {
label: '{{Club}}',
label: 'Footer',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/3/31/Cat-club.jpg',
  icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Club}} {{Clubbing}} {{org}} {{night}} {{bd club}}',
pre: "{{Site-red|02/21 R/}} ",
post: ''
                    post:""
}
}
}
}
}
}
}
}
} );
});


/* Toolbar "Club" category Button  */
/* --- Enable Links:Strike through*/
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Links',
tools: {
tools: {
"Template": {
"Strike": {
label: 'Corset',
label: 'Strike',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/0/0d/Cat-corset.jpg',
icon: 'http://www.sm-201.org/a/images/c/c9/Button_strike.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{Corsets}} {{Corsetry}}',
pre:  '<s>',
post: ''
post: '</s>',
}
}
}
}
}
}
}
}
} );
});


/* Toolbar Director/Producers category Button  */
/* ---- Enable Links:<cr> */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Links',
tools: {
tools: {
"Template": {
"Links": {
label: 'Director',
label: '<cr>',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/4/4a/Cat-meg.jpg',
  icon: 'http://www.sm-201.org/a/images/c/c7/Button_cr.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Directors}} {{Producers}} '
pre: "<br>",
/* post: '' */
                    post:""
}
}
}
}
}
}
});
/* Enable Group:Files:  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
'groups': {
'Files': {
'label': 'Files'
}
}
}
}
} );
} );
 
/* Toolbar "Events" category Button  */
/* --- Enable Files:Copyright unknown */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Files',
tools: {
tools: {
"Events": {
"Copy": {
label: 'Events',
label: 'Copy',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/9/96/Cat-event.jpg',
icon: 'http://www.sm-201.org/a/images/2/22/Button-copy.jpg',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{events}} {{BD events}}',
pre:  'Copyright info not available/ownership unkown',
post: ''
post: ''
}
}
Line 1,067: Line 1,246:
} );
} );


 
/* --- Enable Files:Mo/Yr */
/* Toolbar Fetish category Button  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Files',
tools: {
tools: {
"Template": {
"Date": {
label: 'Fetish',
label: 'Date',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/9/9f/Cat-ballet.jpg',
icon: 'http://www.sm-201.org/a/images/0/01/Button-cal.jpg',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{fetish articles}} {{fetish clubs}} {{fetish events}}',
pre:  '02/2120',
  post: ''  
post: ''
}
}
}
}
Line 1,088: Line 1,266:
} );
} );


 
/* --- Enable Files:Thumbnail */
/* Toolbar Film category button  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Files',
tools: {
tools: {
"Film": {
"Thumb": {
label: 'Film',
label: 'Thumb',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/b/bd/Cat-film.jpg',
icon: 'http://www.sm-201.org/a/images/6/6f/Button_thumb.jpg',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{Filmography}}',
pre:  '[[File:',
post: ''
post: '|thumb|right|200px| ]]'
}
}
}
}
Line 1,109: Line 1,286:
} );
} );


/* Toolbar Health category button  */
/* --- Enable Files:Gallery */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Files',
tools: {
tools: {
"Health": {
"Gallery": {
label: 'Health',
label: 'Gallery',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/b/ba/Cat-health.jpg',
icon: 'http://www.sm-201.org/a/images/3/35/Editor_g.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{Health}}',
pre:  '<gallery mode="packed" heights="200px" caption=""> ',
post: ''
post: '</gallery>'
}
}
}
}
Line 1,129: Line 1,306:
} );
} );


/* Toolbar History category button */
/*  =========================================== Add "Other" Buttons==== */
 
/* Enable section:Categories */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'Cats',
group: 'Cats',
'groups': {
'Cats': {
'label': 'Cats'
}
}
} );
 
 
 
/* Enable group:Other: */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
    section: 'Other',
'groups': {
'Also': {
'label': 'Also'
}
}
} );
 
/* --- Enable button Cats:Also:Mast */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Also',
tools: {
tools: {
"History": {
"ASFR": {
label: 'History',
label: 'ASFR',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
      icon: 'http://sm-201.org/a/images/e/e0/Editor_a.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{BD history}} {{History}}',
pre: "{{Sex asfr",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});


 
/* --- Enable button Other:DS roles */
/* Toolbar Icon category Button */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
section: 'Cats',
group: 'Also',
group: 'Cats',
tools: {
tools: {
"Icon": {
"{DS}": {
label: 'Icon',
label: 'DS roles',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png',
  icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Icons}} {{Index}} {{menu}}',
pre: "{{DS roles",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});


 
/* --- Enable button Other:Also:Human sexuality */
/* Toolbar Link category Button  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
section: 'Cats',
group: 'Also',
group: 'Cats',
tools: {
tools: {
"Link": {
"Human": {
label: 'Link',
label: 'Human',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png',
  icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Links}} {{lists}}',
pre: "{{Human sex",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});


 
/* --- Enable button Other:DS roles */
/* Toolbar Magazine category Button */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
section: 'Cats',
group: 'Also',
group: 'Cats',
tools: {
tools: {
"Magazine": {
"ID": {
label: 'Magazine',
label: 'Sex ids',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png',
  icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Mags}} {{Bondmags}} {{Fetmags}}',
pre: "{{Sex ids",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});


 
/* --- Enable button Other:Also:Sex Industry */
/* Toolbar Models category Buttons  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
section: 'Cats',
group: 'Also',
group: 'Cats',
tools: {
tools: {
"Model": {
"Industy": {
label: 'Model',
label: 'Industry',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/ea/Cat-model.jpg',
  icon: 'http://www.sm-201.org/a/images/9/9e/Button_$.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                pre: '{{Bondmodel}} {{fetmodel}} {{pinmodel}}',
pre: "{{Sex Industry",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});




 
/* --- Enable button Other:Also:LGBT slang */
/* Toolbar N=Info Box category Button  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
section: 'Cats',
group: 'Also',
group: 'Cats',
tools: {
tools: {
"Info box": {
"LGBT slang": {
label: 'Info box',
label: 'LGBT slang',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
  icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Info box}}',
pre: "{{LGBT slang",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});




/* Toolbar Photography categories Button  */
/* --- Enable button Other:Also:Other */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'Other',
group: 'Cats',
group: 'Also',
tools: {
tools: {
"Template": {
"sa-off": {
label: 'Photogs',
label: 'sa-off',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e8/Cat-photo.jpg',
      icon: 'http://www.sm-201.org/a/images/b/b6/Editor_o.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                pre: '{{Bondphotog}} {{Fetphotog}} {{Pinphotog}}',
pre: "{{sa-offenses",
                                post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});


/* Toolbar Photography categories Button  */
/* ---- Enable Footers:Porn */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'Other',
group: 'Cats',
group: 'Also',
tools: {
tools: {
"Template": {
"Porno": {
label: 'Places',
label: 'Porno',
type: 'button',
type: 'button',
   icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',
   icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                pre:  '{{places}} {{locations}} {{settings}}',
pre:  "{{Porno",
post: ''
                                        post: "}}"
}
}
}
}
}
}
}
}
} );
});




/* Toolbar Photography categories Button  */
/* --- Enable button Other:Also:Relationship */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'Other',
group: 'Cats',
group: 'Also',
tools: {
tools: {
"Template": {
"Relationship": {
label: 'Spiderpool',
label: 'Relationship',
type: 'button',
type: 'button',
   icon: 'http://www.sm-201.org/a/images/b/bc/Cat-spider.jpg',
   icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png',
 
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                pre: '{{Spiderpool}}',
pre: "{{Relationships",
                                post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});




/* --- Enable button Cats:Also:Sex terms */
 
$('#wpTextbox1').wikiEditor('addToToolbar', {
/* Toolbar ProDom categories Button  */
section: 'Other',
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
group: 'Also',
section: 'Cats',
group: 'Cats',
tools: {
tools: {
"ProDom": {
"Sexual terms": {
label: 'ProDom',
label: 'Sexual terms',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/a/a8/Cat-pro.jpg',
      icon: 'http://sm-201.org/a/images/1/19/Editor_t.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{prodom}} {{prosub}} {{provenue}}',
pre: "{{Sexual terms",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});
 


/* Toolbar Sessions category Button  */
/* --- Enable button Refs:<reflist> */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'Other',
group: 'Cats',
group: 'Also',
tools: {
tools: {
"Sessions": {
"BDSM": {
label: 'Sessions',
label: 'BDSM',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
      icon: 'http://www.sm-201.org/a/images/3/32/Button_reflist.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Sessions}} {{session content}} ',
pre: "{{Outline of BDSM",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});
 


/* Toolbar Spanking categories Button  */
/* Enable Group:Format: */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'Other',
group: 'Cats',
'groups': {
tools: {
'Tables': {
"Template": {
'label': 'Table'  
label: 'Spanking',
type: 'button',
icon: 'http://www.sm-201.org/a/images/9/99/Cat-spank.jpg',
action: {
type: 'encapsulate',
options: {
pre:  '{{cat-Spanking-a}} {{spanking furniture}} {{cat-Spanking-f}} {{Spanking implements}} {{cat-Spanking-i}} ',
post: '{{Spanking positions}} {{cat-Spanking-p}} {{Spanking terms}} {{cat-Spanking-t}}'
}
}
}
}
}
}
} );
} );


/* Toolbar Toy box category Button  */
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
/* --- Enable button Expl */
section: 'Cats',
$('#wpTextbox1').wikiEditor('addToToolbar', {
group: 'Cats',
section: 'Other',
group: 'Table',
tools: {
tools: {
"Toy box": {
"Expl 1": {
label: 'Toy box',
label: 'Expl 1 !',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/1/19/Editor_t.png',
      icon: 'http://sm-201.org/a/images/a/af/Button_%21.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                        pre: '{{Sex toys}} {{Bondequip}} {{Basic terms}}',
pre: "{{!",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});
 


/* --- Enable button Expl */
/* Toolbar BD on TV categories Button  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
section: 'Cats',
group: 'Table',
group: 'Cats',
tools: {
tools: {
"Template": {
"Expl 2": {
label: 'BD on TV',
label: 'Expl 1 !',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/2/25/Cat-tv.jpg',
      icon: 'http://sm-201.org/a/images/b/b6/Button_%21%21.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '[[Category:bondage on TV articles]]',
pre: "{{!!",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});




Line 1,439: Line 1,623:
} );
} );
}
}
</pre>

Revision as of 17:23, 18 February 2021

var customizeToolbar = function () { /* srtable as of 2021-0218 */

/* Enable section:SM-201 */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'sections': { 'SM-201': { 'type': 'toolbar', // Can also be 'booklet' 'label': 'SM-201' } } } );

/* Enable section:Other */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {

  'sections': {

'Other': { 'type': 'toolbar', // Can also be 'booklet' 'label': 'Other' } } } );


/* Enable Group:Format: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', 'groups': { 'Format': { 'label': 'Format' } } } );

/* --- Enable Format:Comment */

$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Comment": { label: 'Comment', type: 'button', icon: 'http://www.sm-201.org/a/images/6/66/Editor_!.png', action: { type: 'encapsulate', options: { pre: } } } } } );

/* --- Enable Format:Apostrophe */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Apostrope": { label: 'Apostrophe', type: 'button', icon: 'http://www.sm-201.org/a/images/3/39/Editor_apos.png', action: { type: 'encapsulate', options: { pre: "'", post: "'" } } } } } );

/* --- Enable Format:<clear /> */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Clear": { label: 'Clear', type: 'button', icon: 'http://sm-201.org/a/images/b/be/Editor_c.png', action: { type: 'encapsulate', options: { pre: '
', post: } } } } });

/* --- Enable Format:List Item */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Item2": { label: 'Item2', type: 'button', icon: 'http://sm-201.org/a/images/7/79/Button_item.jpg', action: { type: 'encapsulate', options: { pre: '* [[', post: ']]' } } } } });

/* --- Enable Format:Template Item */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Item": { label: 'Item', type: 'button', icon: 'http://sm-201.org/a/images/0/02/Button_dot.png', action: { type: 'encapsulate', options: { pre: ' • [[', post: ']]' } } } } });

/* --- Enable Format:Tempate:BC */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "{{bc": { label: '{{bc', type: 'button',

 icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',

action: { type: 'encapsulate', options: {

pre: "

", post:"

"

} } } } });

/* --- Enable Format:Book title */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "{{Titles": { label: 'Titles', type: 'button',

 icon: 'http://www.sm-201.org/a/images/f/f4/Button_ititle.jpg',

action: { type: 'encapsulate', options: { pre: """,

                                       post:"""

} } } } });

/* --- Enable Format:Book title */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Book link": { label: 'Book link', type: 'button',

 icon: 'http://www.sm-201.org/a/images/e/e0/Editor_book.png',

action: { type: 'encapsulate', options: { pre: '"[[',

                                       post: ']]"'

} } } } });

/* --- Enable Format:Book title */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Book title": { label: 'Book Title', type: 'button',

 icon: 'http://www.sm-201.org/a/images/e/e0/Editor_book.png',

action: { type: 'encapsulate', options: { pre: '"',

                                       post: '"'

} } } } });

/* --- Enable button Other:Also:Movies */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Movies": { label: 'Movies', type: 'button',

     icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png', 

action: { type: 'encapsulate', options: { pre: "{{Movies",

                   post:"}}"

} } } } });

/* --- Enable Format:Underline */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Underline": { label: 'Underline', type: 'button', icon: 'http://www.sm-201.org/a/images/7/73/Editor_ul.png', action: { type: 'encapsulate', options: { pre: "", post: "", } } } } });

/* --- Enable Format:Strike through*/ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Strike": { label: 'Strike', type: 'button', icon: 'http://www.sm-201.org/a/images/c/c9/Button_strike.png', action: { type: 'encapsulate', options: { pre: '', post: '', } } } } });

/* --- Enable Format:button link */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Template": { label: 'Link', type: 'button', icon: 'http://www.sm-201.org/a/images/c/c0/Button_link.png', action: { type: 'encapsulate', options: { pre: '[[', post: ']]' } } } } } );

/* --- Enable Format:button {{ }} */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'format', tools: { "Template": { label: 'Template', type: 'button', icon: 'http://www.sm-201.org/a/images/5/5f/Button_temp.png', action: { type: 'encapsulate', options: { pre: "{{", post: "}}" } } } } } );

/* --- Enable Format:button Quotes */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Quotes": { label: 'Quotes', type: 'button', icon: 'http://www.sm-201.org/a/images/7/7d/Button_quot.png', action: { type: 'encapsulate', options: { pre: '"', post: '"', } } } } });

/* --- Enable Format:button moz-column */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Columns": { label: 'Columns', type: 'button', icon: 'http://www.sm-201.org/a/images/0/04/Button_multicol.png', action: { type: 'encapsulate', options: {

pre: "

", post: "

",

} } } } });

/* --- Enable Format:button Center */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Center": { label: 'Center', type: 'button', icon: 'http://www.sm-201.org/a/images/5/5f/Button_center.png', action: { type: 'encapsulate', options: {

pre: '

', post: '

',

} } } } });

/* --- Enable Format:button Justify */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Justify": { label: 'Justify', type: 'button', icon: 'http://www.sm-201.org/a/images/0/0f/Button_just.png', action: { type: 'encapsulate', options: {

pre: '

', post: '

',

} } } } });

/* Enable Group:Inc: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', 'groups': { 'Inc': { 'label': 'Inc' } } } );

/* --- Enable button Inc:Includeonly */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Inc', tools: { "Incl": { label: 'Incl', type: 'button',

  icon: 'http://www.sm-201.org/a/images/3/3b/Button_in.jpg', 

action: { type: 'encapsulate', options: { pre: "" } } } } });

/* --- Enable button Inc:Noinclude */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Inc', tools: { "Noinclude": { label: 'Noinclude', type: 'button',

     icon: 'http://www.sm-201.org/a/images/1/1b/Button_no.jpg', 

action: { type: 'encapsulate', options: { pre: "",

                                       post:""

} } } } });

/* --- Enable button Inc:Nowiki */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Inc', tools: { "Nowiki": { label: 'Nowiki', type: 'button',

     icon: 'http://www.sm-201.org/a/images/a/a6/Button_quiet.jpg', 

action: { type: 'encapsulate', options: { pre: "", post:"" } } } } });

/* Enable group:Notes: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {

   section: 'SM-201',

'groups': { 'Refs': { 'label': 'Refs' } } } );


/* --- Enable button Refs:Cite error: Closing </ref> missing for <ref> tag" } } } } });

/* --- Enable button Refs:[1]" } } } } });

/* --- Enable button Notes:Calendar */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Access": { label: 'Access', type: 'button', icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png', action: { type: 'encapsulate', options: { pre: "accessed = ", post: "" } } } } } );


/* --- Enable button Refs:<reflist> */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Ref": { label: 'RefList', type: 'button',

     icon: 'http://www.sm-201.org/a/images/3/32/Button_reflist.png', 

action: { type: 'encapsulate', options: {

pre: "== References ==

  1. */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Note": { label: 'Note', type: 'button', icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', action: { type: 'encapsulate', options: { pre: "<ref group="Note"", post:"

,

                                       post:""

} } } } });

/* --- Enable button Refs:<reflist> */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Ref": { label: 'RefList', type: 'button',

 icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',

action: { type: 'encapsulate', options: { pre: "",

                                       post:""

} } } } });




/* --- Enable button model */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Main": { label: 'Main', type: 'button',

     icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png', 

action: { type: 'encapsulate', options: { pre: "

Fleur-12.jpg Main article: [[",
                   post:"]]"

} } } } });


/* ---- Enable Links:Site ok */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Refs": { label: 'YGroups', type: 'button',

 icon: 'http://www.sm-201.org/a/images/f/f1/Editor_y.png',

action: { type: 'encapsulate', options: { pre: "(♦ This Yahoo Group closes 12/15/2020)" } } } } });

/* --- Enable button Notes:@wr */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Needs": { label: '{wref"}', type: 'button',

 icon: 'http://www.sm-201.org/a/images/e/eb/Button_@.png',

action: { type: 'encapsulate', options: { pre: "',

                   post:""[[Wikipedia:',
                   post:"|@wk]]"

} } } } });

/* Enable group:Notes: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {

   section: 'SM-201',

'groups': { 'Notes': { 'label': 'Notes' } } } );

/* --- Enable button Notes:Category */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Cats": { label: 'Category', type: 'button', icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png', action: { type: 'encapsulate', options: { pre: '[[Category:', post: ']]' } } } } } );

/* --- Enable button Notes:Calendar */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "mm/yr": { label: '02/21', type: 'button', icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png', action: { type: 'encapsulate', options: { pre: "02/21", post: "" } } } } } );

/* --- Enable button Notes:header */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Needs', tools: { "Needs": { label: 'Header', type: 'button',

 icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',

action: { type: 'encapsulate', options: { pre: "{{Header",

                                       post:"}}"

} } } } });

/* --- Enable button Notes:header| */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Needs": { label: 'Header', type: 'button',

 icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',

action: { type: 'encapsulate', options: { pre: " " } } } } });

/* --- Enable button Notes:footer */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Footer": { label: 'Footer', type: 'button',

 icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png',

action: { type: 'encapsulate', options: { pre: "{{Footer",

                                       post:"}}"

} } } } });

/* --- Enable button Notes:Category:needs */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Needs": { label: 'Notes', type: 'button',

 icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',

action: { type: 'encapsulate', options: { pre: "{{Needs",

                                       post:"}}"

} } } } });

/* --- Enable button model */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Model": { label: 'Model', type: 'button',

     icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png', 

action: { type: 'encapsulate', options: { pre: "{{Infobox model",

                                       post:""

} } } } });

/* --- Enable button Pornstud */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Pornstud": { label: 'Model', type: 'button',

     icon: 'http://www.sm-201.org/a/images/9/9f/Button_male.png', 

action: { type: 'encapsulate', options: { pre: "{{Infobox pornstud",

                                       post:""

} } } } });

/* --- Enable Pornstar */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Model": { label: 'Model', type: 'button', icon: 'http://www.sm-201.org/a/images/e/ea/Cat-model.jpg', action: { type: 'encapsulate', options: { pre: '{{Infobox pornstar', post: } } } } } );

/* --- Enable button Notes:toporn */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "toporn": { label: , type: 'button', icon: 'http://sm-201.org/a/images/1/19/Editor_t.png', action: { type: 'encapsulate', options: { pre: '{{toporn|add=} }', post: } } } } } );


/* --- Enable button Notes:ok */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Needs": { label: 'sa-porn', type: 'button',

 icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',

action: { type: 'encapsulate', options: { pre: "{{sa-porn",

                   post:"}}"

} } } } });

/* --- Enable button Notes:ltx8 */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "ltx8": { label: 'ltx8', type: 'button',

 icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png',

action: { type: 'encapsulate', options: { pre: "{{ltx8|Latex‏|Latex shopping‏‎|Latex clothing|Latex stores|Latex online|Latex clothing designers|Latex clothing manufacturers|Latex suppliers", post:"‏‎" } } } } });

/* --- Enable button Notes:Heads2 */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "A2": { label: 'Heads2', type: 'button', icon: 'http://www.sm-201.org/a/images/e/e9/Button_headline2.png', action: { type: 'encapsulate', options: { pre: '==', post: '==' } } } } } );


/* --- Enable button Notes:dagger */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "dagger": { label: 'dagger', type: 'button', icon: 'http://www.sm-201.org/a/images/b/b1/Button_dagger.png', action: { type: 'encapsulate', options: { pre: '†', post: } } } } } );

/* --- Enable button Notes:Wiki:@ */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Needs": { label: 'Wikimain', type: 'button',

 icon: 'http://www.sm-201.org/a/images/8/82/Wikilogo-20.png', 

action: { type: 'encapsulate', options: { pre: "

Wikilogo-20.png
Wikipedia article: [[wikipedia:",
                                       post:"|",
                                       post:"]]"

} } } } });

/* --- Enable button Notes:Redirect */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Redirect": { label: 'Redirect', type: 'button',

 icon: 'http://www.sm-201.org/a/images/c/c8/Button_redirect.png',

action: { type: 'encapsulate', options: { pre: "#REDIRECT [[",

                                       post:"]]"

} } } } });

/* --- Enable button Notes:SHP matrix */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "SHP": { label: 'SHP', type: 'button',

 icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',

action: { type: 'encapsulate', options: { pre: "

This article is part of
Click here for Special History Projects information

",

                   post:""

} } } } });

/* --- Enable button Notes:Defaultsort */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "{DS}": { label: '(DS)', type: 'button',

 icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png',

action: { type: 'encapsulate', options: { pre: "" } } } } });

/* --- Enable button Notes:insert image */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Needs": { label: 'image:', type: 'button',

 icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png',

action: { type: 'encapsulate', options: { pre: "Image:",

                                   post:""

} } } } });

/* --- Enable button mt - MT coloumn */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "MT": { label: 'MT', type: 'button',

 icon: 'http://www.sm-201.org/a/images/a/ad/Button_mt.png',

action: { type: 'encapsulate', options: { pre: "||   ",

                   post:""

} } } } });




/* --- Enable button Notes:@wr */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Needs": { label: '{wr}', type: 'button',

 icon: 'http://www.sm-201.org/a/images/e/eb/Button_@.png',

action: { type: 'encapsulate', options: { pre: "{{@wr",

                   post:"}}"

} } } } });

/* Enable group:Links: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', 'groups': { 'Links': { 'label': 'Links' } } } );


/* --- Enable Links:External links*/ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Links', tools: { 'External': { label: 'External', type: 'button', icon: 'http://www.sm-201.org/a/images/e/e3/Editor_e.png', action: { type: 'encapsulate', options: { pre: "== External links ==", post: , } } } } });



/* ---- Enable Links:Sanity */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Links', tools: { "Links": { label: 'Sanity', type: 'button',

 icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',

action: { type: 'encapsulate', options: { pre: "

Sanity check was run on this list on 02/21 by R/

",

               post:""

} } } } });

/* ---- Enable Links:Site ok */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Links', tools: { "Links": { label: 'Link OK', type: 'button',

 icon: 'http://www.sm-201.org/a/images/f/f1/Editor_y.png',

action: { type: 'encapsulate', options: { pre: "( X site active 02/21 R/ ) ",

                   post:""

} } } } });

/* ---- Enable Links:Red */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Links', tools: { "Links": { label: 'Footer', type: 'button',

 icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',

action: { type: 'encapsulate', options: { pre: "( X Site down 02/21 R/ ) ",

                   post:""

} } } } });

/* --- Enable Links:Strike through*/ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Links', tools: { "Strike": { label: 'Strike', type: 'button', icon: 'http://www.sm-201.org/a/images/c/c9/Button_strike.png', action: { type: 'encapsulate', options: { pre: '', post: '', } } } } });

/* ---- Enable Links:<cr> */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Links', tools: { "Links": { label: '<cr>', type: 'button',

 icon: 'http://www.sm-201.org/a/images/c/c7/Button_cr.png',

action: { type: 'encapsulate', options: { pre: "
",

                   post:""

} } } } });

/* Enable Group:Files: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', 'groups': { 'Files': { 'label': 'Files' } } } );

/* --- Enable Files:Copyright unknown */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Files', tools: { "Copy": { label: 'Copy', type: 'button', icon: 'http://www.sm-201.org/a/images/2/22/Button-copy.jpg', action: { type: 'encapsulate', options: { pre: 'Copyright info not available/ownership unkown', post: } } } } } );

/* --- Enable Files:Mo/Yr */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Files', tools: { "Date": { label: 'Date', type: 'button', icon: 'http://www.sm-201.org/a/images/0/01/Button-cal.jpg', action: { type: 'encapsulate', options: { pre: '02/2120', post: } } } } } );

/* --- Enable Files:Thumbnail */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Files', tools: { "Thumb": { label: 'Thumb', type: 'button', icon: 'http://www.sm-201.org/a/images/6/6f/Button_thumb.jpg', action: { type: 'encapsulate', options: { pre: '[[File:', post: '|thumb|right|200px| ]]' } } } } } );

/* --- Enable Files:Gallery */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Files', tools: { "Gallery": { label: 'Gallery', type: 'button', icon: 'http://www.sm-201.org/a/images/3/35/Editor_g.png', action: { type: 'encapsulate', options: {

pre: '

'

} } } } } );

/* =========================================== Add "Other" Buttons==== */

/* Enable section:Categories */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Cats', 'groups': { 'Cats': { 'label': 'Cats' } } } );


/* Enable group:Other: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {

   section: 'Other',

'groups': { 'Also': { 'label': 'Also' } } } );

/* --- Enable button Cats:Also:Mast */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "ASFR": { label: 'ASFR', type: 'button',

     icon: 'http://sm-201.org/a/images/e/e0/Editor_a.png', 

action: { type: 'encapsulate', options: { pre: "{{Sex asfr",

                                       post:"}}"

} } } } });

/* --- Enable button Other:DS roles */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "{DS}": { label: 'DS roles', type: 'button',

 icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png',

action: { type: 'encapsulate', options: { pre: "{{DS roles",

                                       post:"}}"

} } } } });

/* --- Enable button Other:Also:Human sexuality */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "Human": { label: 'Human', type: 'button',

 icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',

action: { type: 'encapsulate', options: { pre: "{{Human sex",

                                       post:"}}"

} } } } });

/* --- Enable button Other:DS roles */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "ID": { label: 'Sex ids', type: 'button',

 icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png',

action: { type: 'encapsulate', options: { pre: "{{Sex ids",

                                       post:"}}"

} } } } });

/* --- Enable button Other:Also:Sex Industry */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "Industy": { label: 'Industry', type: 'button',

 icon: 'http://www.sm-201.org/a/images/9/9e/Button_$.png',

action: { type: 'encapsulate', options: { pre: "{{Sex Industry",

                                       post:"}}"

} } } } });


/* --- Enable button Other:Also:LGBT slang */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "LGBT slang": { label: 'LGBT slang', type: 'button',

 icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png',

action: { type: 'encapsulate', options: { pre: "{{LGBT slang",

                                       post:"}}"

} } } } });


/* --- Enable button Other:Also:Other */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "sa-off": { label: 'sa-off', type: 'button',

     icon: 'http://www.sm-201.org/a/images/b/b6/Editor_o.png', 

action: { type: 'encapsulate', options: { pre: "{{sa-offenses",

                                       post:"}}"

} } } } });

/* ---- Enable Footers:Porn */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "Porno": { label: 'Porno', type: 'button',

 icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',

action: { type: 'encapsulate', options: { pre: "{{Porno",

                                       post: "}}"

} } } } });


/* --- Enable button Other:Also:Relationship */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "Relationship": { label: 'Relationship', type: 'button',

 icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png',

action: { type: 'encapsulate', options: { pre: "{{Relationships",

                                       post:"}}"

} } } } });


/* --- Enable button Cats:Also:Sex terms */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "Sexual terms": { label: 'Sexual terms', type: 'button',

     icon: 'http://sm-201.org/a/images/1/19/Editor_t.png', 

action: { type: 'encapsulate', options: { pre: "{{Sexual terms",

                                       post:"}}"

} } } } });


/* --- Enable button Refs:<reflist> */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "BDSM": { label: 'BDSM', type: 'button',

     icon: 'http://www.sm-201.org/a/images/3/32/Button_reflist.png', 

action: { type: 'encapsulate', options: { pre: "{{Outline of BDSM",

                                       post:"}}"

} } } } });


/* Enable Group:Format: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Other', 'groups': { 'Tables': { 'label': 'Table' } } } );


/* --- Enable button Expl */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Table', tools: { "Expl 1": { label: 'Expl 1 !', type: 'button',

     icon: 'http://sm-201.org/a/images/a/af/Button_%21.png', 

action: { type: 'encapsulate', options: { pre: "{{!",

                                       post:"}}"

} } } } });


/* --- Enable button Expl */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Table', tools: { "Expl 2": { label: 'Expl 1 !', type: 'button',

     icon: 'http://sm-201.org/a/images/b/b6/Button_%21%21.png', 

action: { type: 'encapsulate', options: { pre: "{{!!",

                                       post:"}}"

} } } } });


/* Leave everything below this line alone ===================== */ };

/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */ if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) { mw.loader.using( 'user.options' ).then( function () { // This can be the string "0" if the user disabled the preference (phab:T54542#555387) if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) { $.when( mw.loader.using( 'ext.wikiEditor' ), $.ready ).then( customizeToolbar ); } } ); }