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
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* stable as of 11/11/19 */
<pre>
 
var customizeToolbar = function () {
var customizeToolbar = function () {
/* stable as of 2023-0107 */


/* ======================================Add SM-201 & category Sections */
/* ================================================== */
 
/*  Enable section:SM-201 */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'sections': {
Line 10: Line 10:
'type': 'toolbar', // Can also be 'booklet'
'type': 'toolbar', // Can also be 'booklet'
'label': 'SM-201'
'label': 'SM-201'
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'Cats': {
'type': 'toolbar', // Can also be 'booklet'
'label': 'Cats'
}
}
}
}
Line 24: Line 15:




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


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


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


/* ------------------- add footers group ----------------------*/
/* --- Enable Format:Apostrophe */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'SM-201',
section: 'SM-201',
'groups': {
group: 'Format',
'Footer': {
tools: {
'label': 'Footer'  
"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 Needs group ----------------------*/
/* --- Enable Format:<clear /> */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'SM-201',
section: 'SM-201',
'groups': {
group: 'Format',
'Needs': {
tools: {
'label': 'Needs'  
"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 Categories group -----------------*/
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'Cats',
'groups': {
'Cats': {
'label': 'Cats'
}
}
} );
 
 
/* ====================================================== Add <Inc> buttons === */


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


 
/* --- Enable Format:Template Dot */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Inc',
group: 'Format',
tools: {
tools: {
"Noinclude": {
"Dot": {
label: 'Noinclude',
label: 'Dot',
type: 'button',
type: 'button',
      icon: 'http://www.sm-201.org/a/images/1/1b/Button_no.jpg',  
icon: 'http://sm-201.org/a/images/0/02/Button_dot.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "<noinclude>",
pre: ' • [[',
                                        post:"</noinclude>"
post: ']]'
}
}
}
}
Line 127: Line 125:
});
});


/* --- Enable Format:Tempate:BC */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Inc',
group: 'Format',
tools: {
tools: {
"Nowiki": {
"{{bc": {
label: 'Nowiki',
label: '{{bc',
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/b/b4/Editor_b.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "<nowiki>",
pre: "{{bc|",
                                        post:"</nowiki>"
                    post:"}}"
}
}
}
}
Line 146: Line 145:
});
});


/* ================================================================== Needs ======*/


 
/* --- Enable Format:Book title */
/* Toolbar Category Button  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Needs',
group: 'Format',
tools: {
tools: {
"Cats": {
"{{Titles": {
label: 'Category',
label: 'Titles',
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/f/f4/Button_ititle.jpg',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '[[Category:',
pre: "{{Titles|",
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 186:
});
});


/* --- 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 206:
});
});


 
/* --- Enable Format:button [[ link ]] */
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Needs',
group: 'Format',
tools: {
tools: {
"Needs": {
"Template": {
label: 'Needs',
label: 'Link',
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/c/c0/Button_link.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Needs}} ",
pre: '[[',
                                        post:""
post: ']]'
}
}
}
}
}
}
}
}
});
} );


$('#wpTextbox1').wikiEditor('addToToolbar', {
/* --- Enable Format:button {{ }} */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Needs',
group: 'format',
tools: {
tools: {
"Needs": {
"Template": {
label: 'Wikimain',
label: 'Template',
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/5/5f/Button_temp.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Wikimain|_| }}",
pre: "{{",
                                        post:""
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: '@',
label: 'Quotes',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/e/eb/Button_@.png',
icon: 'http://www.sm-201.org/a/images/7/7d/Button_quot.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{WorldMap|",
pre: '"',
                                        post:"}} {{@wr}}"
post: '"',
}
}
}
}
Line 267: Line 266:
});
});


/* =================================================== Add footer buttons ====*/
/* --- Enable Format:button moz-column */
/* Add Footers */
 
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Format',
tools: {
tools: {
"Footer": {
"Columns": {
label: 'Footer',
label: 'Columns',
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/04/Button_multicol.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Header}} ",
pre: "<div style='-moz-column-count:2; column-count:2;'>",
                                        post:"{{Footer}} "
post: "</div>",
}
}
}
}
Line 289: Line 286:
});
});


 
/* --- Enable Format:button Center */
/* Add Biofooters - Biographies */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Format',
tools: {
tools: {
"Biofooter": {
"Center": {
label: 'Biofooter',
label: 'Center',
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/5/5f/Button_center.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Bioheader}}",
pre: '<center>',
                                        post:"{{Biofooter}}"
post: '</center>',
}
}
}
}
Line 310: Line 306:
});
});


/* Add Historyfooter */
/* --- Enable Format:button Justify */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Format',
tools: {
tools: {
"Historyfooter": {
"Justify": {
label: 'History footer',
label: 'Justify',
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/0/0f/Button_just.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  "{{Historyheader}}<br>",
pre:  '<p align="justify">',
                                        post: "{{Historyfooter}}<br>"
post: '</p>',
}
}
}
}
Line 330: Line 326:
});
});


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


/* Add Iconfooter */
/* --- Enable button Inc:Includeonly */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Inc',
tools: {
tools: {
"Iconfooter": {
"Incl": {
label: 'Icon footer',
label: 'Incl',
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/3/3b/Button_in.jpg',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Iconheader}}<br>",
pre: "<includeonly>",
                                         post: "{{Iconfooter}}<br>"
                                         post:"</includeonly>"
}
}
}
}
Line 351: Line 356:
});
});


/* Add Libfooter Library*/
/* --- Enable button Inc:Noinclude */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Inc',
tools: {
tools: {
"Libraryfooter": {
"Noinclude": {
label: 'Libraryfooter',
label: 'Noinclude',
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/1/1b/Button_no.jpg',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Libheader}}<br>",
pre: "<noinclude>",
                                         post: "{{Libfooter}}<br>"
                                         post:"</noinclude>"
}
}
}
}
Line 371: Line 376:
});
});


/* Add Lifefooter */
/* --- Enable button Inc:Nowiki */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Inc',
tools: {
tools: {
"Life Lessons footer": {
"Nowiki": {
label: 'Lifefooter',
label: 'Nowiki',
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/a/a6/Button_quiet.jpg',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Lifeheader}}<br>",
pre: "<nowiki>",
                                         post: "{{Lifefooter}}<br>"
                                         post:"</nowiki>"
}
}
}
}
Line 392: Line 397:




/* Add Macrofooter */
/* Enable group:SM-201:Cats  ============================ */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
    section: 'SM-201',
'groups': {
'Cats': {
'label': 'Cats'
}
}
} );
 
/* --- Enable button Cats:Category  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Cats',
tools: {
tools: {
"Life Lessons footer": {
"Cats": {
label: 'Macrofooter',
label: 'Category',
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/d/d0/Button_Cat.Png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  "{{Macroheader}} ",
pre:  '[[Category:',
                                        post: "{{Macrofooter}}"
post: ']]'
}
}
}
}
}
}
}
}
});
} );
 


/* Add Microfooter */
/* --- Enable button Cats:Category2  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Cats',
tools: {
tools: {
"Micropedia footers": {
"Cats": {
label: 'Microfooter',
label: 'Category',
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/d/d0/Button_Cat.Png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  "{{Microheader}} ",
pre:  '{{cat|',
                                        post: "{{Microfooter}}"
post: '}'
}
}
}
}
}
}
}
}
});
} );




/* Add RLPMfooters */
/* --- Enable button SM201|Cats:{{lc */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Cats',
tools: {
tools: {
"Robins Personal memories": {
"{{lc": {
label: 'Robin Mem',
label: '{{lc',
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/3/36/Button_lc.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  "{{Pmheader}} ",
pre:  "{{lc|",
                                        post: "{{Pmfooter}}"
post: "}}"
}
}
}
}
Line 454: Line 470:




/* Add RL footers */
/* Enable group:Refs: ========================= */
$( '#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: {
"Resource Guide": {
"Ref": {
label: 'Resources',
label: 'RefLink',
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/7/79/Button_reflink.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{rl-header}} ",
pre: "<ref>",
                                         post: "{{rl-footer}}"
                                         post:"</ref>"
}
}
}
}
Line 473: Line 500:
}
}
});
});
/* Add Storyfooters */
 
/* --- Enable button Refs:<ref> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Refs',
tools: {
tools: {
"Storyfooter": {
"Note": {
label: 'Storyfooter',
label: 'Note',
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/0/0e/Editor_n.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Storyheader}} ",
pre: '<ref group="Note">',
                                        post:"{{Storyfooter}}"
                    post:"</ref>"
}
}
}
}
Line 493: Line 521:
});
});


/* Add Timefooters */
/* --- Enable button Refs:<src> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Footer',
group: 'Refs',
tools: {
tools: {
"Timefooter": {
"Src": {
label: 'Timefooter',
label: 'Src',
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/6/60/Editor_s.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{Timeheader}} ",
pre: '<ref group="Source">',
                                        post:"{{Timefooter}}"
                    post:"</ref>"
}
}
}
}
Line 513: Line 541:
});
});


/*===================================================Format Button====*/
/* --- Enable button Notes:Calendar */
 
/* Toolbar <Comment Button */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Refs',
tools: {
tools: {
"Comment": {
"Access": {
label: 'Comment',
label: 'Access',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/6/66/Editor_!.png',
icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '<!-- ',
pre:  "accessed = ",
post: ' -->'
post: ""
}
}
}
}
Line 535: Line 561:
} );
} );


/* Toolbar Apostrophe Button  */
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
/* --- Enable button Refs:<reflist> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Refs',
tools: {
tools: {
"Apostrope": {
"Ref": {
label: 'Apostrphe',
label: 'RefList',
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/3/32/Button_reflist.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "'",
pre: "== References ==\n",
post: "'"
                                        post:"<References />"
}
}
}
}
}
}
}
}
} );
});
 
 
/* Add  'clear'  =====================*/


/* --- Enable button Refs:<reflist> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Refs',
tools: {
tools: {
"Clear": {
"Note": {
label: 'Clear',
label: 'Note',
type: 'button',
type: 'button',
icon: 'http://sm-201.org/a/images/b/be/Editor_c.png',
  icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '<br clear="all"> ',
pre: '== Notes ==\n',
post: ''  
                                        post:'<references group="Note" />'
}
}
}
}
Line 577: Line 602:
});
});


/* --- Enable button Refs:<reflist> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Refs',
tools: {
tools: {
"Item": {
"Ref": {
label: 'Item',
label: 'SrcList',
type: 'button',
type: 'button',
icon: 'http://sm-201.org/a/images/0/02/Button_dot.png',
icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: ' • [[',
pre: '== Sources ==\n',
post: ']]'  
                                        post:'<references group="Source" />'
}
}
}
}
Line 596: Line 622:
});
});


/* Add Files group buttons ========================================================== */
/* --- Enable button Notes:@wr */
/* Toolbar Models category Buttons  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Files',
group: 'Refs',
tools: {
tools: {
"Bond70": {
"Needs": {
label: 'Bond70',
label: '{wref"}',
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/e/eb/Button_@.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                pre: '{{bond-1970|',
pre: '{{wref"|',
post: '}}'
                    post:"}}"
}
}
}
}
}
}
});
/* Enable group:Notes: ======================== */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
    section: 'SM-201',
'groups': {
'Notes': {
'label': 'Notes'
}
}
}
}
Line 618: Line 653:




 
/* --- Enable button Notes:header| */
/* Toolbar copyright button =======================*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Files',
group: 'Notes',
tools: {
tools: {
"Copy": {
"Needs": {
label: 'Copy',
label: 'Header',
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/e/e4/Editor_h.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: 'Copyright info not available/ownership unkown',
pre: "{{Header|",
post: ''
                                        post:" 01/23}}"
}
}
}
}
Line 639: Line 673:
} );
} );


/* Toolbar date button =======================*/
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
/* --- Enable button Notes:headred */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Files',
group: 'Notes',
tools: {
tools: {
"Date": {
"Needs": {
label: 'Date',
label: 'Headred',
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/c/c8/Button_redirect.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '06/01/2018',
pre: "{{Headred|",
post: ''
                                        post:" 01/23}}"
}
}
}
}
}
}
}
}
} );
});


/* Toolbar gallery button =======================*/
/* --- Enable button Notes:Defaultsort  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Files',
group: 'Notes',
tools: {
tools: {
"Gallery": {
"{DS}": {
label: 'Gallery',
label: '(DS)',
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/1/18/Editor_d.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '<gallery mode="packed" heights="200px"> ',
pre: "{{DEFAULTSORT:",
post: '</gallery>'
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});




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


/*   Add Book Title    */
/* --- Enable button Notes:Category:needs */
$('#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: 'Needs',
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/0/0e/Editor_n.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '"<I>',
pre: "{{Needs}",
                                         post: '</I>"'
                                         post:""
}
}
}
}
Line 721: Line 756:




/* Strike through =====================*/
/* --- Enable button Notes:Heads2 */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Strike": {
"A2": {
label: 'Strike',
label: 'Heads2',
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/e/e9/Button_headline2.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '<s>',
pre:  '== ',
post: '</s>',
post: ' =='
}
}
}
}
}
}
}
}
});
} );
 


/* Toolbar [[ ]] Button */
/* --- Enable button Notes:Heads3 */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Template": {
"A3": {
label: 'Link',
label: 'Heads3',
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/3/3a/Button_headline3.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '[[',
pre:  '=== ',
post: ']]'
post: ' ==='
}
}
}
}
Line 761: Line 797:
} );
} );


/* Toolbar double curly brackets Button */
/* --- Enable button Notes:Wiki:@ */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'format',
group: 'Notes',
tools: {
tools: {
"Template": {
"Needs": {
label: 'Template',
label: 'Wikimain',
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/8/82/Wikilogo-20.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: "{{",
pre: "{{Wikimain|",
post: "}}"
                                        post:"|_}}"
}
}
}
}
}
}
}
}
} );
});


/* Quotes */
/* --- Enable button Notes:Wikilink */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Quotes": {
"{{Wl|": {
label: 'Quotes',
label: '{{wl|',
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/e/ef/Button_para.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '"',
pre: "{{Wl|",
post: '"',
                                        post:"}}"
}
}
}
}
Line 802: Line 838:




/* MulttiColumns */
 
/* --- Enable button Notes:Redirect */
$('#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 859:
});
});


/* Center */
 
/* --- Enable button Notes:Wikilink */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Center": {
"ReCat": {
label: 'Center',
label: 'ReCat',
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/7/70/RedirectCat.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '<center>',
pre: "#REDIRECT [[]]\n{{Headred|<from> 01/23}}\n",
post: '</center>',
                                        post:"{{DEFAULTSORT:<from>}}\n{{cat| }"
}
}
}
}
Line 842: Line 880:
});
});


 
/* --- Enable button Notes:SHP matrix */
/* Justify */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
section: 'SM-201',
group: 'Format',
group: 'Notes',
tools: {
tools: {
"Justify": {
"SHP": {
label: 'Justify',
label: 'SHP',
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/6/60/Editor_s.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '<p align="justify">',
pre: "{{shp|rpm=|emh=|bah=|etv=|bur=|msh=|pin=|sph=|show=|eve=|wwii=|yank=}}",
post: '</p>',
                    post:""
}
}
}
}
Line 863: Line 900:
});
});


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




/* Toolbar Category Button  */
/* ---- Enable Links:See also */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Links',
tools: {
tools: {
"Cats": {
"Links": {
label: 'Category',
label: 'See also',
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/c/c7/Button_see-also.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '[[Category:',
pre: "{{sa|",
post: ']]'
                post:"}}"
}
}
}
}
}
}
}
}
} );
});
 
/* ### So far, so good */


/* Artist Category Button  */
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
/* --- Enable Links:External links*/
section: 'Cats',
$('#wpTextbox1').wikiEditor('addToToolbar', {
group: 'Cats',
section: 'SM-201',
group: 'Links',
tools: {
tools: {
"Cats": {
'External': {
label: 'Artist',
label: 'External',
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/e/e3/Editor_e.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Artists}} {{Art forms}} {{Art techniques}} ',
                pre: "== External links ==",
post: ' {{BDSM artists}} {{Fetish artists}} {{Pin-up artists}} {{Vintart}} '
post: '',
}
}
}
}
}
}
}
}
} );
});


 
/* ---- Enable Links:Sanity */
/* Author Category Button  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
section: 'Cats',
group: 'Links',
group: 'Cats',
tools: {
tools: {
"Cats": {
"Links": {
label: 'Authors',
label: 'Sanity',
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/6/60/Editor_s.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Adult authors}} {{BDSM authors}} {{Fetish authors}} ',
pre: "{{Sanity check|01/23|R/}}",
post: '{{SciFi authors}} '
                post:""
}
}
}
}
}
}
}
}
} );
});
 


/* Toolbar Anatomy category Button  */
/* ---- Enable Links:Site ok */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Links',
tools: {
tools: {
"Template": {
"Links": {
label: 'Human anatomy',
label: 'Link OK',
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/f/f1/Editor_y.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{anatomy}}',
pre: "{{Site-ok|01/23 R/}} ",
post: ''
                    post:""
}
}
}
}
}
}
}
}
} );
});


/* Toolbar Anatomy category Button  */
/* ---- Enable Links:Red */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Links',
tools: {
tools: {
"Template": {
"Links": {
label: 'Book',
label: 'Footer',
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/0/0e/Editor_n.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Books}} {{Art books}} {{BDSM books}} {{Fetbooks}} {{Novels}} {{Photobooks}} {{Vintbooks}} ',
pre: "{{Site-red|01/23 R/}}{{Site-def|01/23 R/}}",
post: ''
                    post:"{{Site-hij|01/23 R/}}"
}
}
}
}
}
}
}
}
} );
});
/* Toolbar "Classes" category Button  */
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
 
section: 'Cats',
/* --- Enable Links:Strike through*/
group: 'Cats',
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Links',
tools: {
tools: {
"Template": {
"Strike": {
label: 'Classes',
label: 'Strike',
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/c/c9/Button_strike.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{Classes}} {{BD classes}} {{schools}}',
pre:  '<s>',
post: ''
post: '</s>',
}
}
}
}
}
}
}
}
} );
});


 
/* ---- Enable Links:<cr> */
/* 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: '<cr>',
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/c/c7/Button_cr.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Club}} {{Clubbing}} {{org}} {{night}} {{bd club}}',
pre: "<br>",
post: ''
                    post:""
}
}
}
}
}
}
});
/* Enable Group:Files: ============================== */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
'groups': {
'Files': {
'label': 'Files'
}
}
}
}
} );
} );


/* Toolbar "Club" category Button  */
/* --- Enable Files:Copyright unknown */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Files',
tools: {
tools: {
"Template": {
"Copy": {
label: 'Corset',
label: 'Copy',
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/e/eb/Button_@.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{Corsets}} {{Corsetry}}',
pre:  'Copyright info not available/ownership unknown',
post: ''
post: ''
}
}
Line 1,027: Line 1,090:
} );
} );


/* Toolbar Director/Producers category Button  */
 
 
/* --- Enable Files:{{fs */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Files',
tools: {
tools: {
"Template": {
"{fs": {
label: 'Director',
label: '{fs',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/4/4a/Cat-meg.jpg',
icon: 'http://sm-201.org/a/images/0/02/Button_dot.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{Directors}} {{Producers}} '
pre:  '.',
/* post: '' */
post: '.'
}
}
}
}
Line 1,046: Line 1,111:
}
}
} );
} );
 
/* Toolbar "Events" category Button  */
/* --- Enable Files:Mo/Yr */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Files',
tools: {
tools: {
"Events": {
"Date": {
label: 'Events',
label: 'Date',
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/0/01/Button-cal.jpg',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{events}} {{BD events}}',
pre:  '01/23',
post: ''
post: ''
}
}
Line 1,068: Line 1,133:




/* Toolbar Fetish category Button  */
 
/* --- Enable Files:Thumbnail */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Files',
tools: {
tools: {
"Template": {
"rasw": {
label: 'Fetish',
label: 'rasw',
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/d/d5/Editor_r.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{fetish articles}} {{fetish clubs}} {{fetish events}}',
pre:  '* {{rasw|',
  post: ''  
post: '}'
}
}
}
}
Line 1,088: Line 1,154:
} );
} );


 
/* --- 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|{{bc|}}]]'
}
}
}
}
Line 1,109: Line 1,174:
} );
} );


/* 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/6/60/Button_insert_table.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,195:
} );
} );


/* Toolbar History category button  */
 
/* --- Enable Files:Screenies */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'SM-201',
group: 'Cats',
group: 'Files',
tools: {
tools: {
"History": {
"Screenies": {
label: 'History',
label: 'Screenies',
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/0/0a/Button_screenie.jpg',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{BD history}} {{History}}',
pre:  '[[MOVB]] screenies for ',
post: ''
post: ''
}
}
}
}
}
}
}
} );
/* Enable section:Page =============================== */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
  'sections': {
'Info': {
'type': 'toolbar', // Can also be 'booklet'
'label': 'Info'
}
}
}
} );
} );




/* Toolbar Icon category Button  */
/* Enable Group:Format: */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'Info',
group: 'Cats',
'groups': {
'Page': {
'label': 'Page'
}
}
} );
 
/* --- Enable button model */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Page',
tools: {
tools: {
"Icon": {
"Model": {
label: 'Icon',
label: 'Model',
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/6/6d/Editor_m_.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Icons}} {{Index}} {{menu}}',
pre: "{{Infobox model",
post: ''
                                        post:""
}
}
}
}
}
}
}
}
} );
});


 
/* --- Enable Pornstar */
/* Toolbar Link category Button  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'Info',
group: 'Cats',
group: 'Page',
tools: {
tools: {
"Link": {
"Model": {
label: 'Link',
label: 'Model',
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/ea/Cat-model.jpg',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{Links}} {{lists}}',
                                pre:  '{{Infobox pornstar}',
post: ''
post: ''
}
}
Line 1,192: Line 1,277:




/* Toolbar Magazine category Button */
/* --- Enable button Pornstud */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'Info',
group: 'Cats',
group: 'Page',
tools: {
tools: {
"Magazine": {
"Pornstud": {
label: 'Magazine',
label: 'Model',
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/9/9f/Button_male.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Mags}} {{Bondmags}} {{Fetmags}}',
pre: "{{Infobox pornstud",
post: ''
                                        post:""
}
}
}
}
}
}
}
}
} );
});




/* Toolbar Models category Buttons */
/* --- Enable button Notes:top-tg */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'Info',
group: 'Cats',
group: 'Page',
tools: {
tools: {
"Model": {
"top-tg": {
label: 'Model',
label: 'Top-tg',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/ea/Cat-model.jpg',
icon: 'http://sm-201.org/a/images/5/5a/Editor_ques.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                pre:  '{{Bondmodel}} {{fetmodel}} {{pinmodel}}',
pre:  '{{top-tg|add=vedette and}}',
post: ''
post: ''
}
}
Line 1,233: Line 1,318:
} );
} );


 
/* --- Enable button Notes:toporn */
 
/* Toolbar N=Info Box category Button */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
section: 'Info',
group: 'Cats',
group: 'Page',
tools: {
tools: {
"Info box": {
"toporn": {
label: 'Info box',
label: 'top',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
icon: 'http://sm-201.org/a/images/1/19/Editor_t.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre:  '{{Info box}}',
pre:  '{{toporn|add=}}',
post: ''
post: ''
}
}
Line 1,255: Line 1,338:
} );
} );


 
/* --- Enable button Japan cinema */
/* Toolbar Photography categories Button */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Info',
section: 'Cats',
group: 'Page',
group: 'Cats',
tools: {
tools: {
"Template": {
"Japorn": {
label: 'Photogs',
label: 'Japorn',
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/c/c4/Circle_j.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                pre: '{{Bondphotog}} {{Fetphotog}} {{Pinphotog}}',
pre: "{{Japanese erotic cinema}}{{Japanese porn stars}}",
                                post: ''
                    post:""
}
}
}
}
}
}
}
}
} );
});
 


/* Toolbar Photography categories Button */
/* --- Enable button sa-porn */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'Info',
group: 'Cats',
group: 'Page',
tools: {
tools: {
"Template": {
"porn": {
label: 'Places',
label: 'sa-porn',
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: "{{sa-porn}}{{porn stars}} {{porn}}",
post: ''
                    post:""
}
}
}
}
}
}
}
});
/* Enable section:Other ============================= */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
  'sections': {
'Other': {
'type': 'toolbar', // Can also be 'booklet'
'label': 'Other'
}
}
}
} );
} );


 
/* --- Enable Other:Table:{!} */
/* Toolbar Photography categories Button  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
section: 'Cats',
group: 'Table',
group: 'Cats',
tools: {
tools: {
"Template": {
"valign": {
label: 'Spiderpool',
label: 'vt',
type: 'button',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/bc/Cat-spider.jpg',
      icon: 'http://sm-201.org/a/images/8/8e/Button_vt.png',  
 
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                pre: '{{Spiderpool}}',
pre: '|- valign ="top"\n',
                                post: ''  
                    post:'| {{#if: data | {{!}} text {{!!}} data }}'
}
}
}
}
}
}
}
}
} );
});




/* --- Enable Other:data*/
 
$('#wpTextbox1').wikiEditor('addToToolbar', {
/* Toolbar ProDom categories Button  */
section: 'Other',
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
group: 'Table',
section: 'Cats',
group: 'Cats',
tools: {
tools: {
"ProDom": {
"valign": {
label: 'ProDom',
label: 'data',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/a/a8/Cat-pro.jpg',
icon: 'http://www.sm-201.org/a/images/5/5f/Button_temp.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{prodom}} {{prosub}} {{provenue}}',
pre: '{{{',
post: ''
                    post:'|}}}'
}
}
}
}
}
}
}
}
} );
});




/* Toolbar Stories by Robin category Button  */
/* --- Enable Other:Table:{!} */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'Other',
group: 'Cats',
group: 'Table',
tools: {
tools: {
"Robin": {
"Pipe": {
label: 'Robin',
label: '{|}',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png',
      icon: 'http://sm-201.org/a/images/a/af/Button_%21.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Stories by Robin}} {{articles by Robin}}',
pre: "|",
post: ''
                    post:""
}
}
}
}
}
}
}
}
} );
});




/* Toolbar Sessions category Button  */
/* --- Enable Other:Table:{!} */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'Other',
group: 'Cats',
group: 'Table',
tools: {
tools: {
"Sessions": {
"Expl 1": {
label: 'Sessions',
label: '{!}',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
      icon: 'http://sm-201.org/a/images/a/af/Button_%21.png',  
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
pre: '{{Sessions}} {{session content}} ',
pre: "{{!",
post: ''
                                        post:"}}"
}
}
}
}
}
}
}
}
} );
});


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


/* Toolbar Toy box category Button  */
/* --- Enable Other:Table:Line1 */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'Other',
group: 'Cats',
group: 'Table',
tools: {
tools: {
"Toy box": {
"Line1": {
label: 'Toy box',
label: 'Line1',
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/7/74/Button_L1.png',
action: {
action: {
type: 'encapsulate',
type: 'encapsulate',
options: {
options: {
                                        pre:  '{{Sex toys}} {{Bondequip}} {{Basic terms}}',
pre:  " {{Line1}}",
post: ''
post: ""
}
}
}
}
}
}
}
}
} );
});
/* --- Enable Other:Table:Line2 */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Line2": {
label: 'Line2',
type: 'button',
icon: 'http://www.sm-201.org/a/images/7/7d/Button_L2.png',
action: {
type: 'encapsulate',
options: {
pre:  " {{Line2}}",
post: ""
}
}
}
}
});


 
/* Toolbar BD on TV categories Button  */
/* --- Enable Other:Table:' !! ' - New column */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Cats',
section: 'Other',
group: 'Cats',
group: 'Table',
tools: {
tools: {
"Template": {
"!!": {
label: 'BD on TV',
label: '!!',
type: 'button',
type: 'button',
icon: 'http://www.sm-201.org/a/images/2/25/Cat-tv.jpg',
icon: 'http://www.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:""
}
}
}
}
}
}
}
}
} );
});




/* Leave everything below this line alone ===================== */
/* --- Enable Other:Table:Empty column  */
};
$('#wpTextbox1').wikiEditor('addToToolbar', {
 
section: 'Other',
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */
group: 'Table',
if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
tools: {
mw.loader.using( 'user.options' ).then( function () {
"MT": {
// This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]])
label: 'MT',
if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
type: 'button',
$.when(
  icon: 'http://www.sm-201.org/a/images/a/ad/Button_mt.png',
mw.loader.using( 'ext.wikiEditor' ), $.ready
action: {
).then( customizeToolbar );
type: 'encapsulate',
options: {
pre: "|| &nbsp; ",
                    post:""
}
}
}
}
});
 
/* --- Enable Other:Table:wp0 */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"wp0": {
label: 'wp0',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/9/95/Button_wp0.png',
action: {
type: 'encapsulate',
options: {
pre: "{{wp0|",
                    post:"|2}}"
}
}
}
}
} );
}
});
 
 
/* --- Enable Other:Table:Columns */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Columns": {
label: 'Columns',
type: 'button',
icon: 'http://www.sm-201.org/a/images/0/04/Button_multicol.png',
action: {
type: 'encapsulate',
options: {
pre:  "<div style='-moz-column-count:2; column-count:2;'>",
post: "</div>"
}
}
}
}
});
 
 
/* --- Enable Other:Table:Columns */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Top": {
label: 'Top',
type: 'button',
icon: 'http://www.sm-201.org/a/images/7/78/Arrow-up.jpg',
action: {
type: 'encapsulate',
options: {
pre:  "{{top}}",
post: ""
}
}
}
}
});
 
/* Other Talk ======================================= */
/* Enable Group:Talk:  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
'groups': {
'Talk': {
'label': 'Talk'
}
}
} );
 
/* --- Enable Other:Talk:Date chg*/
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
group: 'Talk',
tools: {
"date": {
label: 'date',
type: 'button',
icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png',
action: {
type: 'encapsulate',
options: {
pre:  'January 01, 2023',
post: ''
}
}
}
}
} );
 
 
 
 
/* --- Enable button sa-porn  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Page',
tools: {
"bond": {
label: 'sa-bond',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
action: {
type: 'encapsulate',
options: {
pre: "{{sa-bond}}{{bondmods}}",
                    post:""
}
}
}
}
});
 
/* Enable Group:Files: ============================== */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Info',
'groups': {
'Pers': {
'label': 'Pers'
}
}
} );
 
 
 
/* --- Enable button Info|Pers|Name  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pers',
tools: {
"name": {
label: 'name',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
action: {
type: 'encapsulate',
options: {
pre: "|        name = ",
                                        post:""
}
}
}
}
});
 
 
/* --- Enable button Info:Pers:rose */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Info',
group: 'Pers',
tools: {
"rose": {
label: 'rose',
type: 'button',
icon: 'http://www.sm-201.org/a/images/1/16/Button_pink.jpg',
action: {
type: 'encapsulate',
options: {
pre: "| color    = mistyrose",
                                        post:""
}
}
}
}
} );
 
 
/* --- Enable Table:button*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pers',
tools: {
"blue": {
label: 'blank',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/ec/Button_base.png',
action: {
type: 'encapsulate',
options: {
pre:  "| color    = lightblue",
post: ""
}
}
}
}
});
 
 
/* --- Enable button Info|Pers|DOB  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pers',
tools: {
"birth": {
label: 'birth',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
action: {
type: 'encapsulate',
options: {
pre: "|    birthdate = {{dob",
                                        post:""
}
}
}
}
});
 
 
/* --- Enable button Info|Pers|Birthplace  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pers',
tools: {
"place": {
label: 'place',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',
action: {
type: 'encapsulate',
options: {
pre: "|  birthplace = ",
                                        post:""
}
}
}
}
});
 
 
/* --- Enable button Info|Pers|Alias */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pers',
tools: {
"Alias": {
label: 'alias',
type: 'button',
      icon: 'http://sm-201.org/a/images/b/b6/Editor_o.png',
action: {
type: 'encapsulate',
options: {
pre: "|    othername = ",
                                        post:""
}
}
}
}
});
 
/* --- Enable button Porn|Pers:{Star} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pers',
tools: {
"Star": {
label: '{Star}',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/1/14/Button_star2.jpg',
action: {
type: 'encapsulate',
options: {
pre: "{{star}}"
}
}
}
}
});
 
/* --- Enable button Info|Pers|cause */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pers',
tools: {
"cause": {
label: 'cause',
type: 'button',
icon: 'http://www.sm-201.org/a/images/2/29/Button_dagger2.jpg',
action: {
type: 'encapsulate',
options: {
pre: "|    deathcause = ",
                                        post:""
}
}
}
}
});
 
 
/* Enable Group:Files: ============================== */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Info',
'groups': {
'Vitals': {
'label': 'Vitals'
}
}
} );
 
 
/* --- Enable Info:Vitals:vlabel button*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Vitals',
tools: {
"Vitals": {
label: 'vlabel',
type: 'button',
      icon: 'http://www.sm-201.org/a/images/5/55/Boobs.jpg',
action: {
type: 'encapsulate',
options: {
pre: "|      vitals = {{vitals|",
                                        post:""
}
}
}
}
});
 
/* --- Enable Info:Vitals:Eyes button*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Vitals',
tools: {
"Eyes": {
label: 'Eye',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e3/Editor_e.png',
action: {
type: 'encapsulate',
options: {
pre: "|    eye color = ",
                                        post:""
}
}
}
}
});
 
/* --- Enable Info:Vitals:height*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Vitals',
tools: {
"height": {
label: 'Height',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
action: {
type: 'encapsulate',
options: {
pre: "|      height = ",
                                        post:"{{ht|?|?))"
}
}
}
}
});
 
/* --- Enable Info:Vitals:weight*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Vitals',
tools: {
"weight": {
label: 'Weight',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/f/ff/Editor_w.png',
action: {
type: 'encapsulate',
options: {
pre: "|      weight = ",
                                        post:"{{wt|}}"
}
}
}
}
});
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Info',
'groups': {
'Pro': {
'label': 'Pro'
}
}
} );
 
/*  &&&& */
 
 
/* --- Enable button Info|Pro|Genres = */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pro',
tools: {
"Genre": {
label: 'Genre',
type: 'button',
icon: 'http://www.sm-201.org/a/images/3/35/Editor_g.png',
action: {
type: 'encapsulate',
options: {
pre: "|        genre = ",
                                        post:""
}
}
}
}
});
 
 
 
 
/* --- Enable button Info|Pro|Specs = */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pro',
tools: {
"Specs": {
label: 'Specialty',
type: 'button',
icon: 'http://www.sm-201.org/a/images/a/a9/Button_star.png',
action: {
type: 'encapsulate',
options: {
pre: "{{porn stars}}",
                                    post:""
}
}
}
}
});
 
/* --- Enable button Info|Pro|Name  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pro',
tools: {
"years": {
label: 'years',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/f/f1/Editor_y.png',
action: {
type: 'encapsulate',
options: {
pre: "|  yearsactive = ",
                                      post:""
}
}
}
}
});
 
 
/* --- Enable button Info|Pro|Boygirl = */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pro',
tools: {
"boygirl": {
label: 'boygirl',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
action: {
type: 'encapsulate',
options: {
pre: "|      boygirl =  [[BJ]], [[Vaginal]], [[Anal]]",
                                        post:""
}
}
}
}
});
 
 
/* --- Enable button Info|Pro|Boygirl = */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pro',
tools: {
"lesbian": {
label: 'lesbian',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png',
action: {
type: 'encapsulate',
options: {
pre: "|      lesbian = [[Softcore]], [[Dildo]]",
                                        post:""
}
}
}
}
});
 
 
/* --- Enable button Info|Pro|Lesbian = */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pro',
tools: {
"solo": {
label: 'solo',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
action: {
type: 'encapsulate',
options: {
pre: "|        solo = [[Masturbation]], [[Dildo]]",
                                        post:""
}
}
}
}
});
 
 
 
/* --- Enable button Info|Pro|cat=Mistresses  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pro',
tools: {
"Mistresses": {
label: 'Mistresses',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/4/48/Whip.jpg',
action: {
type: 'encapsulate',
options: {
pre: '[[Category:Mistresses]',
post: ''
}
}
}
}
});
 
 
/* --- Enable button Other:Also:Circle-S */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pro',
tools: {
"Penthouse": {
label: 'Penthouse',
type: 'button',
      icon: 'http://www.sm-201.org/a/images/2/23/Cam.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Penthouse Pets 2020|year=}}",
                                post:""
}
}
}
}
});
 
 
/* --- Enable button Info|Pro|Imdb etc =  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pro',
tools: {
"imdb": {
label: 'imdb',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png',
action: {
type: 'encapsulate',
options: {
pre:  '|        iafd = \n|        imdb = \n',
post: '|        afdb = \n|        wiki = \n'
}
}
}
}
});
 
 
/* --- Enable button Info|Pers:{cat} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Info',
group: 'Pers',
tools: {
"cat": {
label: 'cat',
type: 'button',
icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png',
action: {
type: 'encapsulate',
options: {
pre: "{{sa-porn}}{{footer}}{{porn stars}}"
}
}
}
}
});
/*  &&&& */
 
/* Enable Group:Table */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
'groups': {
'Table': {
'label': 'Table'
}
}
} );
 
 
/* --- Enable Table:button*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"blank": {
label: 'blank',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/ec/Button_base.png',
action: {
type: 'encapsulate',
options: {
pre:  "| {{blank}} || ",
post: ""
}
}
}
}
});
 
 
/* --- Enable Other:Table:{!} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"valign": {
label: 'vt',
type: 'button',
      icon: 'http://sm-201.org/a/images/8/8e/Button_vt.png',
action: {
type: 'encapsulate',
options: {
pre: '|- valign ="top"\n',
                    post:'| {{#if: data | {{!}} text {{!!}} data }}'
}
}
}
}
});
 
 
/* --- Enable Other:data*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"valign": {
label: 'data',
type: 'button',
icon: 'http://www.sm-201.org/a/images/5/5f/Button_temp.png',
action: {
type: 'encapsulate',
options: {
pre: '{{{',
                    post:'|}}}'
}
}
}
}
});
 
 
/* --- Enable Other:Table:{!} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Pipe": {
label: '{|}',
type: 'button',
      icon: 'http://sm-201.org/a/images/a/af/Button_%21.png',
action: {
type: 'encapsulate',
options: {
pre: "|",
                    post:""
}
}
}
}
});
 
 
/* --- Enable Other:Table:{!} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Expl 1": {
label: '{!}',
type: 'button',
      icon: 'http://sm-201.org/a/images/a/af/Button_%21.png',
action: {
type: 'encapsulate',
options: {
pre: "{{!",
                                        post:"}}"
}
}
}
}
});
 
/* --- Enable Other:Table:{!!}  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Expl 2": {
label: '{!!}',
type: 'button',
      icon: 'http://sm-201.org/a/images/b/b6/Button_%21%21.png',
action: {
type: 'encapsulate',
options: {
pre: "{{!!}}",
                                        post:""
}
}
}
}
});
 
 
/* --- Enable Other:Table:Line1*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Line1": {
label: 'Line1',
type: 'button',
icon: 'http://www.sm-201.org/a/images/7/74/Button_L1.png',
action: {
type: 'encapsulate',
options: {
pre:  " {{Line1}}",
post: ""
}
}
}
}
});
/* --- Enable Other:Table:Line2*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Line2": {
label: 'Line2',
type: 'button',
icon: 'http://www.sm-201.org/a/images/7/7d/Button_L2.png',
action: {
type: 'encapsulate',
options: {
pre:  " {{Line2}}",
post: ""
}
}
}
}
});
 
 
/* --- Enable Other:Table:' !! ' - New column */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"!!": {
label: '!!',
type: 'button',
icon: 'http://www.sm-201.org/a/images/b/b6/Button_%21%21.png',
action: {
type: 'encapsulate',
options: {
pre: " || ",
                                        post:""
}
}
}
}
});
 
 
/* --- Enable Other:Table:Empty column  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"MT": {
label: 'MT',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/a/ad/Button_mt.png',
action: {
type: 'encapsulate',
options: {
pre: "|| &nbsp; ",
                    post:""
}
}
}
}
});
 
/* --- Enable Other:Table:wp0 */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"wp0": {
label: 'wp0',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/9/95/Button_wp0.png',
action: {
type: 'encapsulate',
options: {
pre: "{{wp0|",
                    post:"|2}}"
}
}
}
}
});
 
 
/* --- Enable Other:Table:Columns */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Columns": {
label: 'Columns',
type: 'button',
icon: 'http://www.sm-201.org/a/images/0/04/Button_multicol.png',
action: {
type: 'encapsulate',
options: {
pre:  "<div style='-moz-column-count:2; column-count:2;'>",
post: "</div>"
}
}
}
}
});
 
 
/* --- Enable Other:Table:Columns */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Top": {
label: 'Top',
type: 'button',
icon: 'http://www.sm-201.org/a/images/7/78/Arrow-up.jpg',
action: {
type: 'encapsulate',
options: {
pre:  "{{top}}",
post: ""
}
}
}
}
});
 
 
 
/* Enable group:Other:Cats */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Cats',
'groups': {
'Cats': {
'label': 'Cats'
}
}
} );
 
 
/* =================== group cats enable ==========
 
/* Enable group:Other: */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
    section: 'Other',
'groups': {
'Cats': {
'label': 'Cats'
}
}
} );
 
/* --- Enable button other|cats|!more  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"!more": {
label: '!more',
type: 'button',
icon: 'http://www.sm-201.org/a/images/6/66/Editor_!.png',
action: {
type: 'encapsulate',
options: {
pre: "{{!more}",
                                        post:""
}
}
}
}
});
 
 
/* --- Enable button Other:Cats:Letter_A  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"cats a": {
label: 'cats a',
type: 'button',
    icon: 'http://www.sm-201.org/a/images/2/23/Circle_a.png',
action: {
type: 'encapsulate',
options: {
pre: "{{cat|actors|actresses|artists|authors}",
                    post:""
}
}
}
}
});
 
 
/* --- Enable button Other:Cats:BondMod  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"BondMod": {
label: 'BondMod',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/ea/Cat-model.jpg',
action: {
type: 'encapsulate',
options: {
pre: "{{bondmod} {{bondmods} {{BL Models} {{Nudes}",
                    post:"{{actresses} {{Porn stars}"
}
}
}
}
});
 
 
/* --- Enable button Other:Also:Circle-J */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"Circle-J": {
label: 'Circle-J',
type: 'button',
      icon: 'http://www.sm-201.org/a/images/c/c4/Circle_j.png',
action: {
type: 'encapsulate',
options: {
pre: "{{AV Idols} }{{Japanese erotic cinema}",
                post:"{{Japanese Porn stars}"
}
}
}
}
});
 
 
/* --- Enable button Other:Also:Circle-S */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"Penthouse": {
label: 'Penthouse',
type: 'button',
      icon: 'http://www.sm-201.org/a/images/2/23/Cam.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Penthouse Pets 2020|year=}}",
                                post:""
}
}
}
}
});
 
 
/* --- Enable button Other:Cats:Playboy */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"Playboy": {
label: 'Playboy',
type: 'button',
      icon: 'http://www.sm-201.org/a/images/0/06/Playboy-i.jpg',
action: {
type: 'encapsulate',
options: {
pre: "{{sa-playboy}}",
                                post:""
}
}
}
}
});
 
 
 
/* --- Enable button spank  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"spank": {
label: 'spank',
type: 'button',
icon: 'http://www.sm-201.org/a/images/9/99/Cat-spank.jpg',
action: {
type: 'encapsulate',
options: {
pre: "{{spank}",
                                        post:""
}
}
}
}
});
 
/* --- Enable button Other:Cats:spider pool  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"spank": {
label: 'spider',
type: 'button',
icon: 'http://www.sm-201.org/a/images/b/bc/Cat-spider.jpg',
action: {
type: 'encapsulate',
options: {
pre: "{{cat|Spider Pool|Spider Pool history|Spider Pool models}",
                    post:""
}
}
}
}
});
 
 
/* --- Enable button Other:Cats:BDSMAuthors  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"Auth": {
label: 'BDSMauth',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
action: {
type: 'encapsulate',
options: {
pre: "{{bdsmauthors}",
                                        post:""
}
}
}
}
});
 
 
 
/* --- Enable button Other:Cats:(Computer technology)  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"CT": {
label: 'CT',
type: 'button',
    icon: 'http://sm-201.org/a/images/b/be/Editor_c.png',
action: {
type: 'encapsulate',
options: {
pre: "Computer technology",
                                        post:""
}
}
}
}
});
 
 
 
 
/* --- Enable button sa-bondfurn  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"Furn": {
label: 'Furn',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png',
action: {
type: 'encapsulate',
options: {
pre: "{{sa-bondfurn}",
                                        post:""
}
}
}
}
});
 
/* --- Enable button sa-bondpos  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"Pos": {
label: 'Pos',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',
action: {
type: 'encapsulate',
options: {
pre: "{{sa-bondpos}",
                                        post:""
}
}
}
}
});
 
/* --- Enable button sa-bondpos  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"Performer": {
label: 'Performer',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/3/33/Editor_q.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Burl perf}}",
                                        post:"[[Category:Vedettes]]"
}
}
}
}
});
 
 
/* --- Enable button sa-bondrest  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Cats',
tools: {
"Rest": {
label: 'Rest',
type: 'button',
  icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png',
action: {
type: 'encapsulate',
options: {
pre: "{{sa-bondrest}"
}
}
}
}
});
 
 
 
 
/* 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 );
}
} );
}
}
</pre>

Latest revision as of 16:55, 8 January 2023

var customizeToolbar = function () {
/* stable as of 2023-0107 */

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


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


$( '#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:  '<!-- ',
					post: ' -->'
				}
			}
		}
	}
} );

/* --- 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: '<br clear="all"> ',
					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 Dot */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'SM-201',
	group: 'Format',
	tools: {
		"Dot": {
			label: 'Dot',
			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:"}}"
				}
			}
		}
	}
});


/* --- 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: "{{Titles|",
                                        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:  "<u>",
					post: "</u>",
				}
			}
		}
	}
});

/* --- 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:  '<s>',
					post: '</s>',
				}
			}
		}
	}
});

/* --- 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:  "<div style='-moz-column-count:2; column-count:2;'>",
					post: "</div>",
				}
			}
		}
	}
});

/* --- 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:  '<center>',
					post: '</center>',
				}
			}
		}
	}
});

/* --- 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:  '<p align="justify">',
					post: '</p>',
				}
			}
		}
	}
});

/* 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: "<includeonly>",
                                        post:"</includeonly>"
				}
			}
		}
	}
});

/* --- 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: "<noinclude>",
                                        post:"</noinclude>"
				}
			}
		}
	}
});

/* --- 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:SM-201:Cats  ============================ */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
    section: 'SM-201',
	'groups': {
		'Cats': {
			'label': 'Cats' 
		}
	}
} );

/* --- Enable button Cats:Category  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'SM-201',
	group: 'Cats',
	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 Cats:Category2  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'SM-201',
	group: 'Cats',
	tools: {
		"Cats": {
			label: 'Category',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  '{{cat|',
					post: '}'
				}
			}
		}
	}
} );


/* --- Enable button SM201|Cats:{{lc */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'SM-201',
	group: 'Cats',
	tools: {
		"{{lc": {
			label: '{{lc',
			type: 'button',
 icon: 'http://www.sm-201.org/a/images/3/36/Button_lc.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  "{{lc|",
					post: "}}"
				}
			}
		}
	}
});


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


/* --- Enable button Refs:<ref> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'SM-201',
	group: 'Refs',
	tools: {
		"Ref": {
			label: 'RefLink',
			type: 'button',
      icon: 'http://www.sm-201.org/a/images/7/79/Button_reflink.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "<ref>",
                                        post:"</ref>"
				}
			}
		}
	}
});

/* --- Enable button Refs:<ref> */
$('#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:"</ref>"
				}
			}
		}
	}
});

/* --- Enable button Refs:<src> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'SM-201',
	group: 'Refs',
	tools: {
		"Src": {
			label: 'Src',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: '<ref group="Source">',
                    post:"</ref>"
				}
			}
		}
	}
});

/* --- 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 ==\n",
                                        post:"<References />"
				}
			}
		}
	}
});

/* --- Enable button Refs:<reflist> */
$('#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: '== Notes ==\n',
                                        post:'<references group="Note" />'
				}
			}
		}
	}
});

/* --- Enable button Refs:<reflist> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'SM-201',
	group: 'Refs',
	tools: {
		"Ref": {
			label: 'SrcList',
			type: 'button',
 icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: '== Sources ==\n',
                                        post:'<references group="Source" />'
				}
			}
		}
	}
});

/* --- 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: '{{wref"|',
                    post:"}}"
				}
			}
		}
	}
});

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


/* --- 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: "{{Header|",
                                        post:" 01/23}}"
				}
			}
		}
	}
} );


/* --- Enable button Notes:headred */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'SM-201',
	group: 'Notes',
	tools: {
		"Needs": {
			label: 'Headred',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/c/c8/Button_redirect.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{Headred|",
                                        post:" 01/23}}"
				}
			}
		}
	}
});

/* --- 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: "{{DEFAULTSORT:",
                                        post:"}}"
				}
			}
		}
	}
});


/* --- 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: 'Needs',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{Needs}",
                                        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:Heads3  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'SM-201',
	group: 'Notes',
	tools: {
		"A3": {
			label: 'Heads3',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/3/3a/Button_headline3.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: "{{Wikimain|",
                                        post:"|_}}"
				}
			}
		}
	}
});

/* --- Enable button Notes:Wikilink */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'SM-201',
	group: 'Notes',
	tools: {
		"{{Wl|": {
			label: '{{wl|',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/e/ef/Button_para.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{Wl|",
                                        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:Wikilink */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'SM-201',
	group: 'Notes',
	tools: {
		"ReCat": {
			label: 'ReCat',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/7/70/RedirectCat.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "#REDIRECT [[]]\n{{Headred|<from> 01/23}}\n",
                                        post:"{{DEFAULTSORT:<from>}}\n{{cat| }"
				}
			}
		}
	}
});

/* --- 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: "{{shp|rpm=|emh=|bah=|etv=|bur=|msh=|pin=|sph=|show=|eve=|wwii=|yank=}}",
                    post:""
				}
			}
		}
	}
});

/* Main Links ======================================= */

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


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

/* ### So far, so good */


/* --- 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|01/23|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: "{{Site-ok|01/23 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: "{{Site-red|01/23 R/}}{{Site-def|01/23 R/}}",
                    post:"{{Site-hij|01/23 R/}}"
				}
			}
		}
	}
});


/* --- 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:  '<s>',
					post: '</s>',
				}
			}
		}
	}
});

/* ---- 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: "<br>",
                    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/e/eb/Button_@.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  'Copyright info not available/ownership unknown',
					post: ''
				}
			}
		}
	}
} );



/* --- Enable Files:{{fs */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'SM-201',
	group: 'Files',
	tools: {
		"{fs": {
			label: '{fs',
			type: 'button',
icon: 'http://sm-201.org/a/images/0/02/Button_dot.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  '.',
					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:  '01/23',
					post: ''
				}
			}
		}
	}
} );



/* --- Enable Files:Thumbnail */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'SM-201',
	group: 'Files',
	tools: {
		"rasw": {
			label: 'rasw',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  '* {{rasw|',
					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|{{bc|}}]]'
				}
			}
		}
	}
} );


/* --- 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/6/60/Button_insert_table.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  '<gallery mode="packed" heights="200px" caption=""> ',
					post: '</gallery>'
				}
			}
		}
	}
} );


/* --- Enable Files:Screenies */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'SM-201',
	group: 'Files',
	tools: {
		"Screenies": {
			label: 'Screenies',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/0/0a/Button_screenie.jpg',
			action: {
				type: 'encapsulate',
				options: {
					pre:  '[[MOVB]] screenies for ',
					post: ''
				}
			}
		}
	}
} );
/* Enable section:Page =============================== */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
   'sections': {
		'Info': {
			'type': 'toolbar', // Can also be 'booklet'
			'label': 'Info'
	}
	}
} );


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

/* --- Enable button model */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Page',
	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 Pornstar */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'Info',
	group: 'Page',
	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 Pornstud  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Page',
	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 button Notes:top-tg  */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'Info',
	group: 'Page',
	tools: {
		"top-tg": {
			label: 'Top-tg',
			type: 'button',
icon: 'http://sm-201.org/a/images/5/5a/Editor_ques.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  '{{top-tg|add=vedette and}}',
					post: ''
				}
			}
		}
	}
} );

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

/* --- Enable button Japan cinema  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Page',
	tools: {
		"Japorn": {
			label: 'Japorn',
			type: 'button',
      icon: 'http://www.sm-201.org/a/images/c/c4/Circle_j.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{Japanese erotic cinema}}{{Japanese porn stars}}",
                    post:""
				}
			}
		}
	}
});


/* --- Enable button sa-porn  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Page',
	tools: {
		"porn": {
			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}}{{porn stars}} {{porn}}",
                    post:""
				}
			}
		}
	}
});

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

/* --- Enable Other:Table:{!} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"valign": {
			label: 'vt',
			type: 'button',
      icon: 'http://sm-201.org/a/images/8/8e/Button_vt.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: '|- valign ="top"\n',
                    post:'| {{#if: data | {{!}} text {{!!}} data }}'
				}
			}
		}
	}
});


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


/* --- Enable Other:Table:{!} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Pipe": {
			label: '{|}',
			type: 'button',
      icon: 'http://sm-201.org/a/images/a/af/Button_%21.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "|",
                    post:""
				}
			}
		}
	}
});


/* --- Enable Other:Table:{!} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Expl 1": {
			label: '{!}',
			type: 'button',
      icon: 'http://sm-201.org/a/images/a/af/Button_%21.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{!",
                                        post:"}}"
				}
			}
		}
	}
});

/* --- Enable Other:Table:{!!}  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Expl 2": {
			label: '{!!}',
			type: 'button',
      icon: 'http://sm-201.org/a/images/b/b6/Button_%21%21.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{!!}}",
                                        post:""
				}
			}
		}
	}
});


/* --- Enable Other:Table:Line1 */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Line1": {
			label: 'Line1',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/7/74/Button_L1.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  " {{Line1}}",
					post: ""
				}
			}
		}
	}
});
/* --- Enable Other:Table:Line2 */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Line2": {
			label: 'Line2',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/7/7d/Button_L2.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  " {{Line2}}",
					post: ""
				}
			}
		}
	}
});


/* --- Enable Other:Table:' !! ' - New column */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"!!": {
			label: '!!',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/b/b6/Button_%21%21.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: " || ",
                                        post:""
				}
			}
		}
	}
});


/* --- Enable Other:Table:Empty column  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	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 Other:Table:wp0 */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"wp0": {
			label: 'wp0',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/9/95/Button_wp0.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{wp0|",
                    post:"|2}}"
				}
			}
		}
	}
});


/* --- Enable Other:Table:Columns */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Columns": {
			label: 'Columns',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/0/04/Button_multicol.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  "<div style='-moz-column-count:2; column-count:2;'>",
					post: "</div>"
				}
			}
		}
	}
});


/* --- Enable Other:Table:Columns */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Top": {
			label: 'Top',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/7/78/Arrow-up.jpg',
			action: {
				type: 'encapsulate',
				options: {
					pre:  "{{top}}",
					post: ""
				}
			}
		}
	}
});

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

/* --- Enable Other:Talk:Date chg*/
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'Other',
	group: 'Talk',
	tools: {
		"date": {
			label: 'date',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  'January 01, 2023',
					post: ''
				}
			}
		}
	}
} );




/* --- Enable button sa-porn  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Page',
	tools: {
		"bond": {
			label: 'sa-bond',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{sa-bond}}{{bondmods}}",
                    post:""
				}
			}
		}
	}
});

/* Enable Group:Files: ============================== */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'Info',
	'groups': {
		'Pers': {
			'label': 'Pers' 
		}
	}
} );



/* --- Enable button Info|Pers|Name  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pers',
	tools: {
		"name": {
			label: 'name',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "|         name = ",
                                        post:""
				}
			}
		}
	}
});


/* --- Enable button Info:Pers:rose */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'Info',
	group: 'Pers',
	tools: {
		"rose": {
			label: 'rose',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/1/16/Button_pink.jpg',
			action: {
				type: 'encapsulate',
				options: {
					pre: "| color     = mistyrose",
                                        post:""
				}
			}
		}
	}
} );


/* --- Enable Table:button*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pers',
	tools: {
		"blue": {
			label: 'blank',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/e/ec/Button_base.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  "| color     = lightblue",
					post: ""
				}
			}
		}
	}
});


/* --- Enable button Info|Pers|DOB  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pers',
	tools: {
		"birth": {
			label: 'birth',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "|    birthdate = {{dob",
                                        post:""
				}
			}
		}
	}
});


/* --- Enable button Info|Pers|Birthplace  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pers',
	tools: {
		"place": {
			label: 'place',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "|   birthplace = ",
                                        post:""
				}
			}
		}
	}
});


/* --- Enable button Info|Pers|Alias */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pers',
	tools: {
		"Alias": {
			label: 'alias',
			type: 'button',
      icon: 'http://sm-201.org/a/images/b/b6/Editor_o.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "|    othername = ",
                                        post:""
				}
			}
		}
	}
});

/* --- Enable button Porn|Pers:{Star} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pers',
	tools: {
		"Star": {
			label: '{Star}',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/1/14/Button_star2.jpg',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{star}}"
				}
			}
		}
	}
});

/* --- Enable button Info|Pers|cause */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pers',
	tools: {
		"cause": {
			label: 'cause',
			type: 'button',
 icon: 'http://www.sm-201.org/a/images/2/29/Button_dagger2.jpg',
			action: {
				type: 'encapsulate',
				options: {
					pre: "|    deathcause = ",
                                        post:""
				}
			}
		}
	}
});


/* Enable Group:Files: ============================== */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'Info',
	'groups': {
		'Vitals': {
			'label': 'Vitals' 
		}
	}
} );


/* --- Enable Info:Vitals:vlabel button*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Vitals',
	tools: {
		"Vitals": {
			label: 'vlabel',
			type: 'button',
      icon: 'http://www.sm-201.org/a/images/5/55/Boobs.jpg', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "|       vitals = {{vitals|",
                                        post:""
				}
			}
		}
	}
});

/* --- Enable Info:Vitals:Eyes button*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Vitals',
	tools: {
		"Eyes": {
			label: 'Eye',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e3/Editor_e.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "|    eye color = ",
                                        post:""
				}
			}
		}
	}
});

/* --- Enable Info:Vitals:height*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Vitals',
	tools: {
		"height": {
			label: 'Height',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "|       height = ",
                                        post:"{{ht|?|?))"
				}
			}
		}
	}
});

/* --- Enable Info:Vitals:weight*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Vitals',
	tools: {
		"weight": {
			label: 'Weight',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/f/ff/Editor_w.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "|       weight = ",
                                        post:"{{wt|}}"
				}
			}
		}
	}
});

$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	section: 'Info',
	'groups': {
		'Pro': {
			'label': 'Pro' 
		}
	}
} );

/*  &&&& */


/* --- Enable button Info|Pro|Genres = */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pro',
	tools: {
		"Genre": {
			label: 'Genre',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/3/35/Editor_g.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "|        genre = ",
                                        post:""
				}
			}
		}
	}
});




/* --- Enable button Info|Pro|Specs = */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pro',
	tools: {
		"Specs": {
			label: 'Specialty',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/a/a9/Button_star.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{porn stars}}",
                                     post:""
				}
			}
		}
	}
});

/* --- Enable button Info|Pro|Name  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pro',
	tools: {
		"years": {
			label: 'years',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/f/f1/Editor_y.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "|  yearsactive = ",
                                      post:""
				}
			}
		}
	}
});


/* --- Enable button Info|Pro|Boygirl = */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pro',
	tools: {
		"boygirl": {
			label: 'boygirl',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "|      boygirl =  [[BJ]], [[Vaginal]], [[Anal]]",
                                        post:""
				}
			}
		}
	}
});


/* --- Enable button Info|Pro|Boygirl = */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pro',
	tools: {
		"lesbian": {
			label: 'lesbian',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "|      lesbian = [[Softcore]], [[Dildo]]",
                                        post:""
				}
			}
		}
	}
});


/* --- Enable button Info|Pro|Lesbian = */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pro',
	tools: {
		"solo": {
			label: 'solo',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "|         solo = [[Masturbation]], [[Dildo]]",
                                        post:""
				}
			}
		}
	}
});



/* --- Enable button Info|Pro|cat=Mistresses  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pro',
	tools: {
		"Mistresses": {
			label: 'Mistresses',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/4/48/Whip.jpg', 
			action: {
				type: 'encapsulate',
				options: {
					pre: '[[Category:Mistresses]',
					post: '' 
				}
			}
		}
	}
});


/* --- Enable button Other:Also:Circle-S */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pro',
	tools: {
		"Penthouse": {
			label: 'Penthouse',
			type: 'button',
      icon: 'http://www.sm-201.org/a/images/2/23/Cam.png', 
		action: {
				type: 'encapsulate',
				options: {
				pre: "{{Penthouse Pets 2020|year=}}",
                                post:""
				}
			}
		}
	}
});


/* --- Enable button Info|Pro|Imdb etc =  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pro',
	tools: {
		"imdb": {
			label: 'imdb',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre:  '|         iafd = \n|         imdb = \n',
					post: '|         afdb = \n|         wiki = \n' 
				}
			}
		}
	}
});


/* --- Enable button Info|Pers:{cat} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Info',
	group: 'Pers',
	tools: {
		"cat": {
			label: 'cat',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{sa-porn}}{{footer}}{{porn stars}}"
				}
			}
		}
	}
});
/*  &&&& */

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


/* --- Enable Table:button*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"blank": {
			label: 'blank',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/e/ec/Button_base.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  "| {{blank}} || ",
					post: ""
				}
			}
		}
	}
});


/* --- Enable Other:Table:{!} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"valign": {
			label: 'vt',
			type: 'button',
      icon: 'http://sm-201.org/a/images/8/8e/Button_vt.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: '|- valign ="top"\n',
                    post:'| {{#if: data | {{!}} text {{!!}} data }}'
				}
			}
		}
	}
});


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


/* --- Enable Other:Table:{!} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Pipe": {
			label: '{|}',
			type: 'button',
      icon: 'http://sm-201.org/a/images/a/af/Button_%21.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "|",
                    post:""
				}
			}
		}
	}
});


/* --- Enable Other:Table:{!} */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Expl 1": {
			label: '{!}',
			type: 'button',
      icon: 'http://sm-201.org/a/images/a/af/Button_%21.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{!",
                                        post:"}}"
				}
			}
		}
	}
});

/* --- Enable Other:Table:{!!}  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Expl 2": {
			label: '{!!}',
			type: 'button',
      icon: 'http://sm-201.org/a/images/b/b6/Button_%21%21.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{!!}}",
                                        post:""
				}
			}
		}
	}
});


/* --- Enable Other:Table:Line1*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Line1": {
			label: 'Line1',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/7/74/Button_L1.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  " {{Line1}}",
					post: ""
				}
			}
		}
	}
});
/* --- Enable Other:Table:Line2*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Line2": {
			label: 'Line2',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/7/7d/Button_L2.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  " {{Line2}}",
					post: ""
				}
			}
		}
	}
});


/* --- Enable Other:Table:' !! ' - New column */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"!!": {
			label: '!!',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/b/b6/Button_%21%21.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: " || ",
                                        post:""
				}
			}
		}
	}
});


/* --- Enable Other:Table:Empty column  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	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 Other:Table:wp0 */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"wp0": {
			label: 'wp0',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/9/95/Button_wp0.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{wp0|",
                    post:"|2}}"
				}
			}
		}
	}
});


/* --- Enable Other:Table:Columns */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Columns": {
			label: 'Columns',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/0/04/Button_multicol.png',
			action: {
				type: 'encapsulate',
				options: {
					pre:  "<div style='-moz-column-count:2; column-count:2;'>",
					post: "</div>"
				}
			}
		}
	}
});


/* --- Enable Other:Table:Columns */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Table',
	tools: {
		"Top": {
			label: 'Top',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/7/78/Arrow-up.jpg',
			action: {
				type: 'encapsulate',
				options: {
					pre:  "{{top}}",
					post: ""
				}
			}
		}
	}
});



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


/* =================== group cats enable ==========

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

/* --- Enable button other|cats|!more  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"!more": {
			label: '!more',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/6/66/Editor_!.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{!more}",
                                        post:""
				}
			}
		}
	}
});


/* --- Enable button Other:Cats:Letter_A  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"cats a": {
			label: 'cats a',
			type: 'button',
     icon: 'http://www.sm-201.org/a/images/2/23/Circle_a.png', 
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{cat|actors|actresses|artists|authors}",
                    post:""
				}
			}
		}
	}
});


/* --- Enable button Other:Cats:BondMod  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"BondMod": {
			label: 'BondMod',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/e/ea/Cat-model.jpg',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{bondmod} {{bondmods} {{BL Models} {{Nudes}",
                    post:"{{actresses} {{Porn stars}"
				}
			}
		}
	}
});


/* --- Enable button Other:Also:Circle-J */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"Circle-J": {
			label: 'Circle-J',
			type: 'button',
      icon: 'http://www.sm-201.org/a/images/c/c4/Circle_j.png', 
		action: {
				type: 'encapsulate',
				options: {
				pre: "{{AV Idols} }{{Japanese erotic cinema}",
                post:"{{Japanese Porn stars}"
				}
			}
		}
	}
});


/* --- Enable button Other:Also:Circle-S */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"Penthouse": {
			label: 'Penthouse',
			type: 'button',
      icon: 'http://www.sm-201.org/a/images/2/23/Cam.png', 
		action: {
				type: 'encapsulate',
				options: {
				pre: "{{Penthouse Pets 2020|year=}}",
                                post:""
				}
			}
		}
	}
});


/* --- Enable button Other:Cats:Playboy */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"Playboy": {
			label: 'Playboy',
			type: 'button',
      icon: 'http://www.sm-201.org/a/images/0/06/Playboy-i.jpg', 
		action: {
				type: 'encapsulate',
				options: {
				pre: "{{sa-playboy}}",
                                post:""
				}
			}
		}
	}
});



/* --- Enable button spank  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"spank": {
			label: 'spank',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/9/99/Cat-spank.jpg',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{spank}",
                                        post:""
				}
			}
		}
	}
});

/* --- Enable button Other:Cats:spider pool  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"spank": {
			label: 'spider',
			type: 'button',
icon: 'http://www.sm-201.org/a/images/b/bc/Cat-spider.jpg',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{cat|Spider Pool|Spider Pool history|Spider Pool models}",
                    post:""
				}
			}
		}
	}
});


/* --- Enable button Other:Cats:BDSMAuthors  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"Auth": {
			label: 'BDSMauth',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{bdsmauthors}",
                                        post:""
				}
			}
		}
	}
});



/* --- Enable button Other:Cats:(Computer technology)  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"CT": {
			label: 'CT',
			type: 'button',
     icon: 'http://sm-201.org/a/images/b/be/Editor_c.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "Computer technology",
                                        post:""
				}
			}
		}
	}
});




/* --- Enable button sa-bondfurn  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"Furn": {
			label: 'Furn',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{sa-bondfurn}",
                                        post:""
				}
			}
		}
	}
});

/* --- Enable button sa-bondpos  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"Pos": {
			label: 'Pos',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{sa-bondpos}",
                                        post:""
				}
			}
		}
	}
});

/* --- Enable button sa-bondpos  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"Performer": {
			label: 'Performer',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/3/33/Editor_q.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{Burl perf}}",
                                        post:"[[Category:Vedettes]]"
				}
			}
		}
	}
});


/* --- Enable button sa-bondrest  */
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'Other',
	group: 'Cats',
	tools: {
		"Rest": {
			label: 'Rest',
			type: 'button',
  icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{sa-bondrest}"
				}
			}
		}
	}
});




/* 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 );
		}
	} );
}