User:Robinr78/common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Reverted |
||
(76 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
var customizeToolbar = function () { | var customizeToolbar = function () { | ||
/* stable as of | /* stable as of 2024-0501 */ | ||
/* ================================================== | /* ================================================== | ||
/* | /* Enable section:Heads */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
'sections': { | 'sections': { | ||
' | 'Heads': { | ||
'type': 'toolbar', // Can also be 'booklet'screen | 'type': 'toolbar', // Can also be 'booklet'screen | ||
'label': ' | 'label': 'Heads' | ||
} | } | ||
} | } | ||
Line 15: | Line 15: | ||
/* Enable Group:Format: */ | /* Enable Group:Format: */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
'groups': { | 'groups': { | ||
'Format': { | 'Format': { | ||
Line 24: | Line 24: | ||
/* --- Enable Format:Wiki-que */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | |||
tools: { | |||
"Wiki-box": { | |||
label: 'Wiki-box', | |||
type: 'button', | |||
icon: 'https://www.sm-201.org/a/images/7/7e/Fleur-12.jpg', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "{{Wiki-que|", | |||
post: "}}" | |||
} | |||
} | |||
} | |||
} | |||
} ); | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Heads', | |||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
Line 35: | Line 55: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '<!-- ', | ||
post: ' -->' | post: ' -->' | ||
} | } | ||
Line 45: | Line 65: | ||
/* --- Enable Format:Apostrophe */ | /* --- Enable Format:Apostrophe */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
Line 55: | Line 75: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "'", | ||
post: "'" | post: "'" | ||
} | } | ||
Line 65: | Line 85: | ||
/* --- Enable Format:Apostrophe */ | /* --- Enable Format:Apostrophe */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
Line 75: | Line 95: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "* ''", | ||
post: "''" | post: "''" | ||
} | } | ||
Line 83: | Line 103: | ||
} ); | } ); | ||
/* --- Enable Format: | |||
/* --- Enable Format:button Quotes */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
" | "Quotes": { | ||
label: ' | label: 'Quotes', | ||
type: 'button', | type: 'button', | ||
icon: 'http://sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/7/7d/Button_quot.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '"', | ||
post: '' | post: '"', | ||
} | } | ||
} | } | ||
Line 105: | Line 126: | ||
/* --- Enable Format:List Item */ | /* --- Enable Format:List Item */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
Line 125: | Line 146: | ||
/* --- Enable Format:Template Dot */ | /* --- Enable Format:Template Dot */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
Line 146: | Line 167: | ||
/* --- Enable Format:Template Dot */ | /* --- Enable Format:Template Dot */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
Line 165: | Line 186: | ||
/* --- Enable Format:Tempate:BC */ | /* --- Enable Format:Tempate:BC */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
Line 171: | Line 192: | ||
label: '{{bc', | label: '{{bc', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{bc|", | pre: "{{bc|", | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 183: | Line 204: | ||
}); | }); | ||
/* --- Enable Format: | /* --- Enable Format:<clear /> */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
"Underline": { | "Clear": { | ||
label: 'Underline', | 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:Underline */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Heads', | |||
group: 'Format', | |||
tools: { | |||
"Underline": { | |||
label: 'Underline', | |||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/7/73/Editor_ul.png', | icon: 'http://www.sm-201.org/a/images/7/73/Editor_ul.png', | ||
Line 196: | Line 238: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "<u>", | ||
post: "</u>", | post: "</u>", | ||
} | } | ||
Line 206: | Line 248: | ||
/* --- Enable Format:Strike through*/ | /* --- Enable Format:Strike through*/ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
Line 216: | Line 258: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '<s>', | ||
post: '</s>', | post: '</s>', | ||
} | } | ||
Line 226: | Line 268: | ||
/* --- Enable Format:button [[ link ]] */ | /* --- Enable Format:button [[ link ]] */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
Line 236: | Line 278: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '[[', | ||
post: ']]' | post: ']]' | ||
} | } | ||
Line 246: | Line 288: | ||
/* --- Enable Format:button {{ }} */ | /* --- Enable Format:button {{ }} */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'format', | group: 'format', | ||
tools: { | tools: { | ||
Line 266: | Line 308: | ||
/* --- Enable Format:button parenthesis */ | /* --- Enable Format:button parenthesis */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
Line 276: | Line 318: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '(', | ||
post: ')', | post: ')', | ||
} | } | ||
Line 284: | Line 326: | ||
}); | }); | ||
/* --- Enable Format:button | /* --- Enable Format:button moz-column */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
" | "Columns": { | ||
label: ' | label: 'Columns', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/0/04/Button_multicol.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "<div style='-moz-column-count:2; column-count:2;'>", | ||
post: | post: "</div>", | ||
} | } | ||
} | } | ||
Line 304: | Line 346: | ||
}); | }); | ||
/* --- Enable Format:button | /* --- Enable Format:button Center */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
" | "Center": { | ||
label: ' | label: 'Center', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/5/5f/Button_center.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '<center>', | ||
post: | post: '</center>', | ||
} | } | ||
} | } | ||
Line 324: | Line 366: | ||
}); | }); | ||
/* --- Enable Format:button | /* --- Enable Format:button Justify */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
" | "Justify": { | ||
label: ' | label: 'Justify', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/0/0f/Button_just.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '<p align="justify">', | ||
post: '</ | post: '</p>', | ||
} | } | ||
} | } | ||
Line 344: | Line 386: | ||
}); | }); | ||
/* --- Enable | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | /* --- Enable Other:Talk:Date chg*/ | ||
section: ' | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'Heads', | |||
group: 'Format', | group: 'Format', | ||
tools: { | tools: { | ||
" | "date": { | ||
label: ' | label: 'date', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: 'May 01, 2024', | ||
post: ' | post: '' | ||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* Enable Group:Inc: | /* Enable Group:Inc: ================================== */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
'groups': { | 'groups': { | ||
'Inc': { | 'Inc': { | ||
Line 376: | Line 422: | ||
/* --- Enable button Inc:Includeonly */ | /* --- Enable button Inc:Includeonly */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Inc', | group: 'Inc', | ||
tools: { | tools: { | ||
Line 382: | Line 428: | ||
label: 'Incl', | label: 'Incl', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/3/3b/Button_in.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "<includeonly>", | pre: "<includeonly>", | ||
post:"</includeonly>" | |||
} | } | ||
} | } | ||
Line 396: | Line 442: | ||
/* --- Enable button Inc:Noinclude */ | /* --- Enable button Inc:Noinclude */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Inc', | group: 'Inc', | ||
tools: { | tools: { | ||
Line 402: | Line 448: | ||
label: 'Noinclude', | label: 'Noinclude', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/1/1b/Button_no.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "<noinclude>", | pre: "<noinclude>", | ||
post:"</noinclude>" | |||
} | } | ||
} | } | ||
Line 416: | Line 462: | ||
/* --- Enable button Inc:Nowiki */ | /* --- Enable button Inc:Nowiki */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Inc', | group: 'Inc', | ||
tools: { | tools: { | ||
Line 422: | Line 468: | ||
label: 'Nowiki', | label: 'Nowiki', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/a/a6/Button_quiet.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "<nowiki>", | pre: "<nowiki>", | ||
post:"</nowiki>" | |||
} | } | ||
} | } | ||
Line 434: | Line 480: | ||
}); | }); | ||
/* Main Links ======================================= */ | |||
/* Enable group: | |||
/* Enable group:Links: */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'Heads', | |||
'groups': { | 'groups': { | ||
' | 'Links': { | ||
'label': ' | 'label': 'Links' | ||
} | } | ||
} | } | ||
} ); | } ); | ||
/* --- Enable | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | /* ---- Enable Links:See also */ | ||
section: ' | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
group: ' | section: 'Heads', | ||
group: 'Links', | |||
tools: { | tools: { | ||
" | "Links": { | ||
label: ' | label: 'See also', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/c/c7/Button_see-also.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{sa|", | |||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* ### So far, so good */ | |||
/* --- Enable | /* ---- Enable Links:Sanity */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Links', | ||
tools: { | tools: { | ||
" | "Links": { | ||
label: ' | label: 'Sanity', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{Sanity check|04/24|R/}}", | |||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable | /* ---- Enable Links:Site ok */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Links', | ||
tools: { | tools: { | ||
" | "Links": { | ||
label: ' | label: 'Link OK', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/f/f1/Editor_y.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Site-ok|04/24 R/}} ", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 507: | Line 558: | ||
}); | }); | ||
/* ---- Enable Links:Red */ | |||
/* | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Links', | ||
tools: { | tools: { | ||
" | "Links": { | ||
label: ' | label: 'Bad link', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{Site-red|04/24 R/}}{{Site-def|04/24 R/}}", | ||
post:"{{Site-hij|04/24 R/}}" | |||
} | } | ||
} | } | ||
Line 539: | Line 578: | ||
}); | }); | ||
/* --- Enable | |||
/* --- Enable Links:Strike through*/ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Links', | ||
tools: { | tools: { | ||
" | "Strike": { | ||
label: ' | label: 'Strike', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/c/c9/Button_strike.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '< | pre: '<s>', | ||
post: '</s>', | |||
} | } | ||
} | } | ||
Line 559: | Line 599: | ||
}); | }); | ||
/* --- Enable button | |||
/* --- Enable button SM-201|Links|From template */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Links', | ||
tools: { | tools: { | ||
" | "from": { | ||
label: ' | label: 'from', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/b/bc/Cat-spider.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{from website|[web url name page on Tokyo.to]", | ||
post:"|04/24}}" | |||
} | } | ||
} | } | ||
Line 579: | Line 620: | ||
}); | }); | ||
/* --- Enable | /* ---- Enable Links:<br> */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Links', | ||
tools: { | tools: { | ||
" | "Links": { | ||
label: ' | label: '<br>', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/c/c7/Button_cr.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "<br>", | ||
post:"" | |||
} | } | ||
} | } | ||
} | |||
} | |||
}); | |||
/* Enable Group:Files: ============================== */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Heads', | |||
'groups': { | |||
'Files': { | |||
'label': 'Files' | |||
} | } | ||
} | } | ||
} ); | } ); | ||
/* --- Enable Files:Copyright unknown */ | |||
/* --- Enable | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | section: 'Heads', | ||
section: ' | group: 'Files', | ||
group: ' | |||
tools: { | tools: { | ||
" | "Copy": { | ||
label: ' | label: 'Copy', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/eb/Button_@.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: 'Copyright info not available/ownership unknown', | ||
post: '' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable | /* --- Enable Files:{{fs */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Files', | ||
tools: { | tools: { | ||
" | "{fs": { | ||
label: ' | label: '{fs', | ||
type: 'button', | type: 'button', | ||
icon: 'http://sm-201.org/a/images/0/02/Button_dot.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '.', | ||
post: '.' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable | /* --- Enable Files:Mo/Yr */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Files', | ||
tools: { | tools: { | ||
" | "Date": { | ||
label: ' | label: 'Date', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/0/01/Button-cal.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '04/24', | ||
post: '' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable | /* --- Enable Files:Thumbnail */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Files', | ||
tools: { | tools: { | ||
" | "rasw": { | ||
label: ' | label: 'rasw', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{ | pre: '* {{rasw|', | ||
post: '}' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* | /* --- Enable Files:Thumbnail */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: 'Files', | |||
group: ' | |||
tools: { | tools: { | ||
" | "Thumb": { | ||
label: ' | label: 'Thumb', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/6/6f/Button_thumb.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '[[File:', | |||
post: '|thumb|right|200px|{{bc|}}]]' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable Files:Gallery */ | |||
/* --- Enable | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | section: 'Heads', | ||
section: ' | group: 'Files', | ||
group: ' | |||
tools: { | tools: { | ||
"Gallery": { | |||
label: ' | label: 'Gallery', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/6/60/Button_insert_table.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '<gallery mode="packed" heights="200px" caption=""> ', | |||
post: '</gallery>' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable | /* --- Enable Files:Gallery */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Files', | ||
tools: { | tools: { | ||
"bpswi": { | |||
label: ' | label: 'bpswi', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/6/60/Button_insert_table.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: 'file:|{{bpswi|', | |||
post: '|wk=1| }}' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* | /* --- Enable button Heads:Files:'File:' */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Files', | ||
tools: { | tools: { | ||
" | "File:": { | ||
label: ' | label: 'File:', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "American burlesque performers", | |||
post:"" | |||
} | } | ||
} | } | ||
Line 778: | Line 819: | ||
/* | /* --- Enable Files:{{ndib */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Files', | ||
tools: { | tools: { | ||
" | "ndib": { | ||
label: ' | label: 'ndib', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: 'dib', | ||
post: '.jpg' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* | /* --- Enable Files:Screenies */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Heads', | ||
group: ' | group: 'Files', | ||
tools: { | tools: { | ||
" | "Screenies": { | ||
label: ' | label: 'Screenies', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/0/0a/Button_screenie.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '[[MOVB]] screenies for ', | ||
post: '' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* Enable section:Page =============================== */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
/* --- Enable | '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', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: ' | group: 'Page', | ||
tools: { | tools: { | ||
" | "Model": { | ||
label: ' | label: 'Model', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Infobox model", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 839: | Line 899: | ||
}); | }); | ||
/* --- Enable Pornstar */ | |||
/* --- Enable | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | section: 'Info', | ||
section: ' | group: 'Page', | ||
group: ' | |||
tools: { | tools: { | ||
" | "Model": { | ||
label: ' | label: 'Model', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/e/ea/Cat-model.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{Infobox pornstar}', | |||
post: '' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* | /* --- Enable button Pornstud */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: ' | group: 'Page', | ||
tools: { | tools: { | ||
" | "Pornstud": { | ||
label: ' | label: 'Model', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/9/9f/Button_male.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{Infobox pornstud", | ||
post:"" | post:"" | ||
} | } | ||
Line 881: | Line 941: | ||
/* --- Enable button Pornstud */ | |||
/* Enable | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | section: 'Info', | ||
section: ' | group: 'Page', | ||
' | tools: { | ||
' | "Film-cat": { | ||
label: 'Film-cat', | |||
type: 'button', | |||
icon: 'https://www.sm-201.org/a/images/b/bd/Cat-film.jpg', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "Film making", | |||
post:"" | |||
} | |||
} | |||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable | /* --- Enable button Notes:top-tg */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: ' | group: 'Page', | ||
tools: { | tools: { | ||
" | "top-tg": { | ||
label: ' | label: 'Top-tg', | ||
type: 'button', | type: 'button', | ||
icon: 'http://sm-201.org/a/images/5/5a/Editor_ques.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '{{top-tg|add=vedette and}}', | ||
post: '' | post: '' | ||
} | } | ||
Line 912: | Line 982: | ||
} ); | } ); | ||
/* --- Enable button Notes:toporn */ | |||
/* --- Enable | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: ' | group: 'Page', | ||
tools: { | tools: { | ||
" | "toporn": { | ||
label: ' | label: 'top', | ||
type: 'button', | type: 'button', | ||
icon: 'http://sm-201.org/a/images/ | icon: 'http://sm-201.org/a/images/1/19/Editor_t.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '{{toporn|add=}}', | ||
post: ' | post: '' | ||
} | } | ||
} | } | ||
Line 934: | Line 1,002: | ||
} ); | } ); | ||
/* --- Enable | /* --- Enable button Japan cinema */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: ' | group: 'Page', | ||
tools: { | tools: { | ||
" | "Japorn": { | ||
label: ' | label: 'Japorn', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/c/c4/Circle_j.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Japanese erotic cinema {{Japanese porn stars", | ||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button sa-porn */ | |||
/* --- Enable | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | section: 'Info', | ||
section: ' | group: 'Page', | ||
group: ' | |||
tools: { | tools: { | ||
" | "porn": { | ||
label: ' | label: 'sa-porn', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{sa-porn}} {{porn stars {{porn", | ||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable | /* --- Enable button sa-porn */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: ' | group: 'Page', | ||
tools: { | tools: { | ||
" | "bond": { | ||
label: ' | label: 'sa-bond', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{sa-bond}}{{bondmods}}", | ||
post:"" | |||
} | } | ||
} | } | ||
} | |||
} | |||
}); | |||
/* Enable Group:Files: ============================== */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Info', | |||
'groups': { | |||
'Pers': { | |||
'label': 'Pers' | |||
} | } | ||
} | } | ||
Line 997: | Line 1,075: | ||
/* --- Enable | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | /* --- Enable button Info|Pers|Name */ | ||
section: ' | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
group: ' | section: 'Info', | ||
group: 'Pers', | |||
tools: { | tools: { | ||
" | "name": { | ||
label: ' | label: 'name', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "| name = ", | ||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | /* --- Enable button Info|Pro|Imdb etc = */ | ||
section: ' | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
group: ' | section: 'Info', | ||
group: 'Pers', | |||
tools: { | tools: { | ||
" | "birth": { | ||
label: ' | label: 'birth', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '| birthdate = {{dob\n| birthname = {{dob\n|', | ||
post: ' | post: '| birthplace = \n| alias = \n' | ||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable | /* --- Enable button Info|Pera|Birth etc = */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: ' | group: 'Pers', | ||
tools: { | tools: { | ||
" | "birth": { | ||
label: ' | label: 'birth', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '| deathdate = {{dob\n| deathcause = {{dob\n|', | ||
post: '' | post: '| deathplace = \n| alias = \n' | ||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | |||
/* --- Enable button Info|Pers|Personal etc = */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Info', | |||
group: 'Pers', | |||
} ); | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Info', | |||
group: ' | |||
tools: { | tools: { | ||
" | "Pers": { | ||
label: ' | label: 'Pers', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '| spouse = {{dob\n|| children = n|', | ||
post: '| education = \n| alias = \n' | |||
} | } | ||
} | } | ||
Line 1,098: | Line 1,159: | ||
}); | }); | ||
/* --- Enable | /* --- Enable button Porn|Pers:{Star} */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Pers', | ||
tools: { | tools: { | ||
" | "Star": { | ||
label: ' | label: '{Star}', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/1/14/Button_star2.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{star}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button Info|Pers|Dag */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Pers', | ||
tools: { | tools: { | ||
" | "Dag": { | ||
label: ' | label: 'dag', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/2/29/Button_dagger2.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{dag}}", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,140: | Line 1,199: | ||
/* | /* Enable Group:Files: ============================== */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | 'groups': { | ||
'Vitals': { | |||
'label': 'Vitals' | |||
} | |||
} | |||
} ); | |||
/* --- Enable Info:Vitals:vlabel button*/ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Info', | |||
group: 'Vitals', | |||
tools: { | tools: { | ||
" | "Vitals": { | ||
label: ' | label: 'vlabel', | ||
type: 'button', | type: 'button', | ||
icon: 'http://sm-201.org/a/images/5/ | icon: 'http://www.sm-201.org/a/images/5/55/Boobs.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "| vitals = {{vitals||||}}\n| eye color = \n| hair color = \n", | |||
post: "| height = {{ht||}}\n| weight = {{wt|}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* Enable Group:Format: */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
'groups': { | |||
'Insex': { | |||
'label': 'Insex' | |||
} | } | ||
} | } | ||
} ); | } ); | ||
/* --- Enable button | |||
/* --- Enable button Info|Insex|DevBond, etc = */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Insex', | ||
tools: { | tools: { | ||
" | "CatDB": { | ||
label: ' | label: 'CatDB', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: 'Device Bondage models', | ||
post: '' | |||
} | } | ||
} | } | ||
Line 1,200: | Line 1,261: | ||
}); | }); | ||
/* --- Enable button Info|Insex|sx */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Insex', | ||
tools: { | tools: { | ||
" | "sx": { | ||
label: ' | label: 'sx', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '{{sx|', | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 1,220: | Line 1,280: | ||
} | } | ||
}); | }); | ||
/* | /* --- Enable Info:Insex:link */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: 'Insex', | |||
group: ' | |||
tools: { | tools: { | ||
" | "Template": { | ||
label: ' | label: 'Link', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/c/c0/Button_link.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '[[', | ||
post: '' | post: ']]' | ||
} | } | ||
} | } | ||
Line 1,263: | Line 1,302: | ||
} ); | } ); | ||
/* --- Enable | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: ' | 'groups': { | ||
'Pro': { | |||
'label': 'Pro' | |||
} | |||
} | |||
} ); | |||
/* --- Enable button Info|Pro|Genres = */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Info', | |||
group: 'Pro', | |||
tools: { | tools: { | ||
" | "Genre": { | ||
label: ' | label: 'Genre', | ||
type: 'button', | type: 'button', | ||
icon: 'http://sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/3/35/Editor_g.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "| genre = \n| solo = [[Masturbation]], [[Dildo]]\n", | |||
post: "| lesbian = [[Softcore]], [[Dildo]]\n| boygirl = [[BJ]], [[Vaginal]], [[Anal]]" | |||
} | } | ||
} | } | ||
Line 1,283: | Line 1,333: | ||
}); | }); | ||
/* --- Enable | |||
/* --- Enable button Info|Pro|Specs = */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: ' | group: 'Pro', | ||
tools: { | tools: { | ||
" | "Specs": { | ||
label: ' | label: 'Specialty', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/a/a9/Button_star.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{porn stars", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,303: | Line 1,354: | ||
}); | }); | ||
/* --- Enable | /* --- Enable button Info|Pro|Name */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Info', | ||
group: ' | group: 'Pro', | ||
tools: { | tools: { | ||
" | "years": { | ||
label: ' | label: 'years', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/f/f1/Editor_y.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "| yearsactive = ", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,323: | Line 1,374: | ||
}); | }); | ||
/* --- Enable button | |||
/* --- Enable button Info|Pro|cat=Mistresses */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Pro', | ||
tools: { | tools: { | ||
" | "Mistresses": { | ||
label: ' | label: 'Mistresses', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/4/48/Whip.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '[[Category:Mistresses]]', | ||
post: '' | |||
} | } | ||
} | } | ||
Line 1,342: | Line 1,394: | ||
} | } | ||
}); | }); | ||
/* --- Enable button Info:Pro:Penthouse */ | |||
/* --- Enable button Info | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Pro', | ||
tools: { | tools: { | ||
" | "Penthouse": { | ||
label: ' | label: 'Penthouse', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/2/23/Cam.png', | |||
action: { | |||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{Penthouse Pets 2020|year=}}", | |||
post:"" | |||
} | } | ||
} | } | ||
Line 1,376: | Line 1,417: | ||
/* --- Enable button Info | /* --- Enable button Info|Pro|Imdb etc = */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Pro', | ||
tools: { | tools: { | ||
" | "imdb": { | ||
label: ' | label: 'imdb', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '| iafd = \n| imdb = \n', | ||
post: '| afdb = \n| wiki = \n' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button Info|Pers:{cat} */ | |||
/* --- Enable | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: 'Pers', | group: 'Pers', | ||
tools: { | tools: { | ||
" | "cat": { | ||
label: ' | label: 'cat', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre | pre: "{{sa-porn}}{{footer}}{{porn stars}}" | ||
} | } | ||
} | } | ||
Line 1,418: | Line 1,457: | ||
/* | /* =================== group cats enable ========== */ | ||
/* --- Enable button | /* Enable group:Info:Cats */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'Info', | |||
'groups': { | |||
'Cats': { | |||
'label': 'Cats' | |||
} | |||
} | |||
} ); | |||
/* --- Enable button Cats:Category2 */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "Cats": { | ||
label: ' | label: 'Category', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '{{cat|', | ||
post: ' | post: '}}' | ||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable button | /* --- Enable button info|cats|!more */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "!more": { | ||
label: ' | label: '!more', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/6/66/Editor_!.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{!more}", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,479: | Line 1,513: | ||
}); | }); | ||
/* --- Enable button | |||
/* --- Enable button Info:Cats:BondMod */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
"cats a": { | |||
label: ' | label: 'cats a', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/2/23/Circle_a.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{cat|actors|actresses|authors}}", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,498: | Line 1,534: | ||
}); | }); | ||
/* --- Enable button Info | /* --- Enable button Info:Cats:Anatomy */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "anatomy": { | ||
label: ' | label: 'anatomy', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/e0/Editor_a.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{cat|bondage artists|erotic artists|fetish artists|spanking artists", | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 1,518: | Line 1,554: | ||
}); | }); | ||
/* --- Enable button Info:Cats:BondMod */ | |||
/* --- Enable Info: | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "BondMod": { | ||
label: ' | label: 'BondMod', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/ea/Cat-model.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{bondmod} {{bondmods} {{BL Models} {{Nudes}", | ||
post:"{{actresses} {{Porn stars}" | |||
} | } | ||
} | } | ||
Line 1,550: | Line 1,574: | ||
}); | }); | ||
/* --- Enable Info: | |||
/* --- Enable button Info:Cats:Circle-G */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "Circle-G": { | ||
label: ' | label: 'Circle-G', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/b/b6/Circle_g.png', | ||
action: { | |||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{cat|AV Idols|Japanese Gravure Models", | |||
post:"}}" | |||
} | } | ||
} | } | ||
Line 1,570: | Line 1,595: | ||
}); | }); | ||
/* --- Enable Info: | |||
/* --- Enable button Info:Also:Circle-J */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "Circle-J": { | ||
label: ' | label: 'Circle-J', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/c/c4/Circle_j.png', | |||
action: { | |||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{AV Idols} }{{Japanese erotic cinema}", | |||
post:"{{Japanese Porn stars}" | |||
} | } | ||
} | } | ||
Line 1,590: | Line 1,616: | ||
}); | }); | ||
/* --- Enable Info: | |||
/* --- Enable button Info:Also:Circle-S - {{Penthouse Pets 2020|year=}} */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "Penthouse": { | ||
label: ' | label: 'Penthouse', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/2/23/Cam.png', | |||
action: { | |||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{cat|Film and video terminology|Cinematic techniques|Photographic techniques}}" | |||
} | } | ||
} | } | ||
Line 1,610: | Line 1,636: | ||
}); | }); | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
/* --- Enable button Info:Cats:Playboy */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Info', | section: 'Info', | ||
' | 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 Info | /* --- Enable button Info:Cats:spank */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "spank": { | ||
label: ' | label: 'spank', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/9/99/Cat-spank.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "| | pre: "|Shadow Lane", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,642: | Line 1,679: | ||
}); | }); | ||
/* --- Enable button Info:Cats:Image-dex */ | |||
/* --- Enable button Info | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "magick": { | ||
label: ' | label: 'magick', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/f/fe/Wizard.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "image-dex", | ||
post:"", | |||
} | } | ||
} | } | ||
Line 1,665: | Line 1,699: | ||
}); | }); | ||
/* --- Enable button Info | /* --- Enable button Info:Cats:spider pool */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "spank": { | ||
label: ' | label: 'spider', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/b/bc/Cat-spider.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "| | pre: "{{cat|Spider Pool|Spider Pool history|Spider Pool models}}", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,686: | Line 1,720: | ||
/* --- Enable button Info | /* --- Enable button Info:Cats:BDSMAuthors */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "Auth": { | ||
label: ' | label: 'BDSMauth', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{bdsmauthors}", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,707: | Line 1,741: | ||
/* --- Enable button Info | |||
/* --- Enable button Info:Cats:(Computer technology) */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "CT": { | ||
label: ' | label: 'CT', | ||
type: 'button', | type: 'button', | ||
icon: 'http://sm-201.org/a/images/b/be/Editor_c.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "Computer technology", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,728: | Line 1,763: | ||
/* --- Enable button | |||
/* --- Enable button sa-bondfurn */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "Furn": { | ||
label: ' | label: 'Furn', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{sa-bondfurn}", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,748: | Line 1,785: | ||
}); | }); | ||
/* --- Enable button sa-bondpos */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "Pos": { | ||
label: ' | label: 'Pos', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{sa-bondpos}", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 1,770: | Line 1,805: | ||
}); | }); | ||
/* --- Enable button sa-bondrest */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Info', | section: 'Info', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "Rest": { | ||
label: ' | label: 'Rest', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png', | |||
action: { | |||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{sa-bondrest}" | |||
} | } | ||
} | } | ||
Line 1,791: | Line 1,824: | ||
}); | }); | ||
/* ======================= &&& =========================== */ | |||
/* - | /* Enable section:SM-201 */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
'sections': { | |||
'Refs': { | |||
'type': 'toolbar', // Can also be 'booklet' | |||
'label': 'Refs' | |||
} | |||
} | |||
} ); | |||
/* Enable group:Refs: ========================= */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Refs', | |||
'groups': { | |||
'Ref': { | |||
'label': 'Ref' | |||
} | } | ||
} | } | ||
}); | } ); | ||
/* Enable | /* Enable group:Notes: ======================== */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'Refs', | |||
'groups': { | 'groups': { | ||
' | 'Notes': { | ||
'label': ' | 'label': 'Notes' | ||
} | } | ||
} | } | ||
} ); | } ); | ||
/* --- Enable button | /* --- Enable button Notes:header| */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Needs": { | ||
label: ' | label: 'Header', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Header|", | ||
post:"}}" | post:" 04/24}}" | ||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable | /* --- Enable button Notes:headred */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Needs": { | ||
label: ' | label: 'Headred', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/c/ | icon: 'http://www.sm-201.org/a/images/c/c8/Button_redirect.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Headred|", | ||
post:" 04/24}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button | /* --- Enable button Notes:Defaultsort */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "{DS}": { | ||
label: ' | label: '(DS)', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{DEFAULTSORT:", | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 1,883: | Line 1,919: | ||
/* Enable | /* --- Enable Links:External links*/ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
' | group: 'Notes', | ||
' | 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:External links*/ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Refs', | |||
group: 'Notes', | |||
/* --- Enable | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: ' | |||
group: ' | |||
tools: { | tools: { | ||
'Mall': { | |||
label: ' | label: 'Mall', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/7/76/Coffee_cup.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{mall0|", | |||
post: '}}<br>' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button Notes:footer */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Footer": { | ||
label: ' | label: 'Footer', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{Footer", | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 1,948: | Line 1,979: | ||
}); | }); | ||
/* --- Enable button Notes:Category:needs */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
"Needs": { | |||
label: ' | label: 'Needs', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{Needs}", | ||
post:"" | post:"" | ||
} | } | ||
Line 1,969: | Line 1,999: | ||
}); | }); | ||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | /* --- Enable button Notes:Heads2 */ | ||
section: ' | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
group: ' | section: 'Refs', | ||
group: 'Notes', | |||
tools: { | tools: { | ||
" | "A2": { | ||
label: ' | label: 'Heads2', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/e9/Button_headline2.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '== ', | ||
post: ' ==' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable button | /* --- Enable button Notes:Heads3 */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "A3": { | ||
label: ' | label: 'Heads3', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/3/3a/Button_headline3.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '=== ', | ||
post: ' ===' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable Format:Book title */ | |||
/* --- Enable | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "{{Titles": { | ||
label: ' | label: 'Titles', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/f/f4/Button_ititle.jpg', | ||
action: { | |||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "'''''", | |||
post:"'''''" | |||
} | } | ||
} | } | ||
Line 2,030: | Line 2,061: | ||
}); | }); | ||
/* --- Enable button Notes:Wiki:@ */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Needs": { | ||
label: ' | label: 'Wikimain', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/8/82/Wikilogo-20.png', | |||
action: { | |||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{Wikimain|", | |||
post:"|_}}" | |||
} | } | ||
} | } | ||
Line 2,052: | Line 2,082: | ||
/* --- Enable button | /* --- Enable button Info|Pro|Imdb etc = */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Wsec": { | ||
label: ' | label: 'Wsec', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/ef/Button_para.png', | |||
action: { | |||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{wikisec|Filmography}}\n\n{{wikisec|Theater}}\n\n', | |||
post: '{{wikisec|Discography}}\n\n{{wikisec|Bibliography}}\n\n' | |||
} | } | ||
} | } | ||
Line 2,072: | Line 2,103: | ||
/* --- Enable button | /* --- Enable button Notes:Wikilink */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "{{Wl|": { | ||
label: ' | label: '{{wl|', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/f/ff/Editor_w.png', | |||
action: { | |||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{Wl|", | |||
post:"}}" | |||
} | } | ||
} | } | ||
Line 2,092: | Line 2,123: | ||
}); | }); | ||
/* --- Enable button Notes:wk5 link */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "{{Wk5|": { | ||
label: ' | label: '{{wk5|', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://www.sm-201.org/a/images/d/d4/Arrowrt.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "| | pre: "{{Wsl|", | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 2,114: | Line 2,143: | ||
}); | }); | ||
/* --- Enable button | /* --- Enable Format:button [[ link ]] */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Template": { | ||
label: ' | label: 'Link', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/c/c0/Button_link.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '[[', | ||
post: ']]' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable button | /* --- Enable button Notes:Redirect */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Redirect": { | ||
label: ' | label: 'Redirect', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/c/c8/Button_redirect.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "#REDIRECT [[", | ||
post:"" | post:"]]" | ||
} | } | ||
} | } | ||
Line 2,155: | Line 2,186: | ||
/* --- Enable button | /* --- Enable button Notes:Wikilink */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "ReCat": { | ||
label: ' | label: 'ReCat', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/7/70/RedirectCat.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "#REDIRECT [[]]\n{{Headred|<from> 04/24}}\n", | ||
post:"{{DEFAULTSORT:<from>}}\n{{cat| }}" | |||
} | } | ||
} | } | ||
Line 2,175: | Line 2,206: | ||
}); | }); | ||
/* --- Enable button Notes:SHP matrix */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "SHP": { | ||
label: ' | label: 'SHP', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{shp|rpm=|emh=|bah=|etv=|bur=|msh=|pin=|sph=|show=|eve=|wwii=|yank=}}", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 2,198: | Line 2,227: | ||
/* Enable group:Refs: ========================= */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Refs', | |||
'groups': { | |||
'Refs': { | |||
'label': 'Refs' | |||
} | |||
} | |||
} ); | |||
/* --- Enable button | /* --- Enable button Refs:<ref> */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Refs', | ||
tools: { | tools: { | ||
" | "Ref": { | ||
label: ' | label: 'RefLink', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/7/79/Button_reflink.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "<ref>", | ||
post:"</ref>" | |||
} | } | ||
} | } | ||
Line 2,220: | Line 2,258: | ||
}); | }); | ||
/* --- Enable button | /* --- Enable button Refs:<ref> */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Refs', | ||
tools: { | tools: { | ||
" | "Note": { | ||
label: ' | label: 'Note', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: '<ref group="Note">', | ||
post:"</ref>" | |||
} | } | ||
} | } | ||
Line 2,240: | Line 2,278: | ||
}); | }); | ||
/* --- Enable button | /* --- Enable button Refs:<src> */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Refs', | ||
group: ' | group: 'Refs', | ||
tools: { | tools: { | ||
" | "Src": { | ||
label: ' | label: 'Src', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: '<ref group="Source">', | ||
post:"</ref>" | |||
} | } | ||
} | } | ||
Line 2,260: | Line 2,298: | ||
}); | }); | ||
/* --- Enable button Notes:Calendar */ | |||
/* --- Enable button | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | section: 'Refs', | ||
section: ' | group: 'Refs', | ||
group: ' | |||
tools: { | tools: { | ||
" | "Access": { | ||
label: ' | label: 'Access', | ||
type: 'button', | type: 'button', | ||
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: "" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* | /* --- Enable button Refs:<reflist> */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Refs', | section: 'Refs', | ||
group: 'Refs', | |||
tools: { | tools: { | ||
" | "Ref": { | ||
label: ' | label: 'RefList', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | 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:"<References />" | |||
} | } | ||
} | } | ||
Line 2,324: | Line 2,339: | ||
}); | }); | ||
/* --- Enable button Refs:<reflist> */ | |||
/* --- Enable | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Refs', | ||
tools: { | tools: { | ||
" | "Note": { | ||
label: ' | label: 'Note', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '== Notes ==\n', | ||
post:'<references group="Note" />' | |||
} | } | ||
} | } | ||
Line 2,345: | Line 2,359: | ||
}); | }); | ||
/* --- Enable button Refs:<reflist> */ | |||
/* --- Enable | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Refs', | ||
tools: { | tools: { | ||
" | "Ref": { | ||
label: ' | label: 'SrcList', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/6/ | 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:'<references group="Source" />' | |||
} | } | ||
} | } | ||
Line 2,367: | Line 2,379: | ||
}); | }); | ||
/* --- Enable button Notes:@wr */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Refs', | ||
tools: { | tools: { | ||
" | "Needs": { | ||
label: ' | label: '{wref"}', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/e/eb/Button_@.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '{{wref"|', | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 2,388: | Line 2,399: | ||
}); | }); | ||
/* --- Enable Format: | |||
/* Enable Group:Format: */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Refs', | |||
'groups': { | |||
'Resources': { | |||
'label': 'Resources' | |||
} | |||
} | |||
} ); | |||
/* --- Enable Format:active */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: 'Resources', | group: 'Resources', | ||
tools: { | tools: { | ||
" | "grn": { | ||
label: ' | label: 'grn', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/0/01/B-grn.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: ' ( ? active as of 04/24 R/ )', | ||
post: ' | post: '' | ||
} | } | ||
} | } | ||
Line 2,408: | Line 2,433: | ||
}); | }); | ||
/* --- Enable | |||
/* --- Enable Format:closed*/ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: 'Resources', | group: 'Resources', | ||
tools: { | tools: { | ||
" | "red": { | ||
label: ' | label: 'red', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/d/db/B-red.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: ' ( inactive as of 04/24 R/ )', | ||
post: '' | |||
} | } | ||
} | } | ||
Line 2,429: | Line 2,455: | ||
/* --- Enable | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | /* --- Enable Resources:map*/ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Refs', | section: 'Refs', | ||
group: 'Resources', | group: 'Resources', | ||
tools: { | tools: { | ||
" | "map": { | ||
label: ' | label: 'map', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/6/64/Map-blk.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '{{gm|', | ||
post: '}}' | post: '}}' | ||
} | } | ||
Line 2,447: | Line 2,474: | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button | /* --- Enable button Info|Pro|Imdb etc = */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: 'Resources', | group: 'Resources', | ||
tools: { | tools: { | ||
" | "wk3": { | ||
label: ' | label: 'w1', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/f/ff/Editor_w.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '{{w1|', | ||
post: '' | post: '}}' | ||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
/* ---- Enable Links:{{ni| */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Refs', | section: 'Refs', | ||
group: 'Resources', | group: 'Resources', | ||
tools: { | tools: { | ||
" | "{{ni|": { | ||
label: ' | label: '{{ni', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{ni|", | ||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable | /* --- Enable button Other:Cats:spider pool */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: 'Resources', | group: 'Resources', | ||
tools: { | tools: { | ||
" | "web": { | ||
label: ' | label: 'web', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/b/bc/Cat-spider.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{website|", | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 2,508: | Line 2,539: | ||
} | } | ||
}); | }); | ||
/* --- Enable | |||
/* --- Enable Format:Strike through*/ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: 'Resources', | group: 'Resources', | ||
tools: { | tools: { | ||
" | "Strike": { | ||
label: ' | label: 'Strike', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/c/c9/Button_strike.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '<s>', | ||
post: '</s>' | |||
} | } | ||
} | } | ||
Line 2,528: | Line 2,560: | ||
}); | }); | ||
/* --- Enable button Info|Pers|cause */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Resources', | ||
tools: { | tools: { | ||
" | "Died": { | ||
label: ' | label: 'died', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/2/29/Button_dagger2.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{dag}}", | ||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button | /* --- Enable button Resources:Category2 */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Resources', | ||
tools: { | tools: { | ||
" | "Cats": { | ||
label: ' | label: 'Category', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '{{cat|', | ||
post: '}}' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable button | /* --- Enable button Resources:Category2 */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Resources', | ||
tools: { | tools: { | ||
" | "LGBT": { | ||
label: ' | label: 'LGBT', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: 'LGBT films ', | ||
post: '' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable button Resources:Category2 */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Resources', | ||
tools: { | tools: { | ||
" | "New": { | ||
label: ' | label: 'New', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/d/d5/Mnl.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '{{header| 04/24}}{{DEFAULTSORT: }}\n', | ||
post: '== External links ==\n\n{{footer}}\n{{cat|}}' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable button | /* --- Enable button artdex */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Resources', | ||
tools: { | tools: { | ||
" | "note": { | ||
label: ' | label: 'none', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/ec/Button_base.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "File:none.jpg|", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 2,641: | Line 2,663: | ||
/* --- Enable | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
/* --- Enable Refs:Resources:sup */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Resources', | ||
tools: { | tools: { | ||
" | "sup": { | ||
label: ' | label: 'sup', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/7/74/Button_comment.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "<sup>", | ||
post:"</sup>" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable Refs:Resources mag */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
/* --- Enable | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Resources', | ||
tools: { | tools: { | ||
" | "mag": { | ||
label: ' | label: 'mag', | ||
type: 'button', | type: 'button', | ||
icon: ' | icon: 'https://www.sm-201.org/a/images/7/71/Mag.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: " {{o}}", | ||
post:"" | |||
} | } | ||
} | } | ||
} | |||
} | |||
}); | |||
/* Enable Group:Format: */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Refs', | |||
'groups': { | |||
'Shopping': { | |||
'label': 'Shopping' | |||
} | } | ||
} | } | ||
} ); | } ); | ||
/* --- Enable | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | /* --- Enable button Refs:Shopping:rose */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Shopping', | ||
tools: { | tools: { | ||
" | "rose": { | ||
label: ' | label: 'rose', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/1/16/Button_pink.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "| color = mistyrose", | ||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable button | /* --- Enable button Refs:Shopping:blue */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Shopping', | ||
tools: { | tools: { | ||
" | "blue": { | ||
label: ' | label: 'blank', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/ec/Button_base.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "| color = lightblue", | ||
post: "" | |||
} | } | ||
} | } | ||
Line 2,722: | Line 2,759: | ||
}); | }); | ||
/* --- Enable button Res|Shopping|LatexWiki| */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Shopping', | ||
tools: { | tools: { | ||
" | "lw": { | ||
label: ' | label: 'lw', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{sa-leather working}}", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 2,743: | Line 2,779: | ||
}); | }); | ||
/* --- Enable button Notes:footer | |||
/* --- Enable button Notes: | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Shopping', | ||
tools: { | tools: { | ||
"{{ | "{{fc|": { | ||
label: '{{ | label: '{{fc|', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{sa-fetish attire}}\n{{sa-clothing}}", | |||
post: "{{cat|Fetish clothing}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | }); */ | ||
/* --- Enable | /* --- Enable button Notes:footer */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Shopping', | ||
tools: { | tools: { | ||
" | "{{w|": { | ||
label: ' | label: 'w', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/f/ff/Editor_w.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "westerns rework", | |||
post: "" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ) | }) | ||
/* --- Enable button Notes: | /* --- Enable button Notes:footer */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Shopping', | ||
tools: { | tools: { | ||
" | "{{cm|": { | ||
label: ' | label: '{{cm|', | ||
type: 'button', | type: 'button', | ||
icon: 'https://www.sm-201.org/a/images/1/13/Lyre-clip.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{cat-mus|", | |||
post: "Dance}}" | |||
} | } | ||
} | } | ||
Line 2,805: | Line 2,841: | ||
} | } | ||
}); | }); | ||
/* --- Enable button Res|New */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Shopping', | ||
tools: { | tools: { | ||
" | "New": { | ||
label: ' | label: 'new', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/a/a9/Button_star.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: " {{New}} (04/24)", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 2,827: | Line 2,861: | ||
}); | }); | ||
/* --- Enable button | /* --- Enable button Res|Shopping latex */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: ' | group: 'Shopping', | ||
tools: { | tools: { | ||
" | "$ ltx": { | ||
label: ' | label: '$ ltx', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/f/fa/Balloon.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "Shopping:Latex", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 2,847: | Line 2,881: | ||
}); | }); | ||
/* --- Enable button Res|Shopping|Shopping (defunct) | */ | |||
/* --- Enable button | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'Refs', | section: 'Refs', | ||
group: 'Shopping', | group: 'Shopping', | ||
tools: { | tools: { | ||
" | "s (d)": { | ||
label: ' | label: 's (d)', | ||
type: 'button', | type: 'button', | ||
icon: 'http://sm-201.org/a/images/b/be/Editor_c.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ | pre: "{{cat|Shopping (defunct)|", | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 2,878: | Line 2,901: | ||
}); | }); | ||
/* | /* ================================================== | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | /* Enable section:Cats */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
'sections': { | |||
'Cats': { | |||
'type': 'toolbar', // Can also be 'booklet'screen | |||
'label': 'Cats' | |||
} | |||
} | |||
} ); | |||
/* Enable group:SM-201:Cats ============================ */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Cats', | |||
'groups': { | |||
'Cats': { | |||
'label': 'Cats' | |||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable button | /* --- Enable button Cats:Category */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Cats', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "Cats": { | ||
label: ' | label: 'Category', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '[[Category:', | ||
post: ']]' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable button | /* --- Enable button Cats:Category2 */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Cats', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "Cats": { | ||
label: ' | label: 'Category', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '{{cat|', | ||
post: '}}' | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
}); | } ); | ||
/* --- Enable button | /* --- Enable button SM201|Cats:{{lc */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Cats', | ||
group: ' | group: 'Cats', | ||
tools: { | tools: { | ||
" | "{{lc": { | ||
label: ' | label: '{{lc', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/3/36/Button_lc.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{lc|", | ||
post: "}}" | |||
} | } | ||
} | } | ||
Line 2,978: | Line 2,986: | ||
}); | }); | ||
__NOCAT__ | __NOCAT__ |
Revision as of 18:20, 13 May 2024
var customizeToolbar = function () { /* stable as of 2024-0501 */ /* ================================================== /* Enable section:Heads */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'sections': { 'Heads': { 'type': 'toolbar', // Can also be 'booklet'screen 'label': 'Heads' } } } ); /* Enable Group:Format: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', 'groups': { 'Format': { 'label': 'Format' } } } ); /* --- Enable Format:Wiki-que */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', group: 'Format', tools: { "Wiki-box": { label: 'Wiki-box', type: 'button', icon: 'https://www.sm-201.org/a/images/7/7e/Fleur-12.jpg', action: { type: 'encapsulate', options: { pre: "{{Wiki-que|", post: "}}" } } } } } ); $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', 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: 'Heads', 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:Apostrophe */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', group: 'Format', tools: { "* italics": { label: '*IT', type: 'button', icon: 'http://www.sm-201.org/a/images/3/39/Editor_apos.png', action: { type: 'encapsulate', options: { pre: "* ''", post: "''" } } } } } ); /* --- Enable Format:button Quotes */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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:List Item */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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: 'Heads', 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:Template Dot */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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: 'Heads', 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:<clear /> */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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:Underline */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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: 'Heads', 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: 'Heads', 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: 'Heads', 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 parenthesis */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', group: 'Format', tools: { "Parenthesis": { label: 'Paren', type: 'button', icon: 'http://www.sm-201.org/a/images/4/49/Button_%28_%29.jpg', action: { type: 'encapsulate', options: { pre: '(', post: ')', } } } } }); /* --- Enable Format:button moz-column */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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: 'Heads', 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: 'Heads', 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 Other:Talk:Date chg*/ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', group: 'Format', tools: { "date": { label: 'date', type: 'button', icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png', action: { type: 'encapsulate', options: { pre: 'May 01, 2024', post: '' } } } } } ); /* Enable Group:Inc: ================================== */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', 'groups': { 'Inc': { 'label': 'Inc' } } } ); /* --- Enable button Inc:Includeonly */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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: 'Heads', 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: 'Heads', 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: "<nowiki>", post:"</nowiki>" } } } } }); /* Main Links ======================================= */ /* Enable group:Links: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', 'groups': { 'Links': { 'label': 'Links' } } } ); /* ---- Enable Links:See also */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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:Sanity */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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|04/24|R/}}", post:"" } } } } }); /* ---- Enable Links:Site ok */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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|04/24 R/}} ", post:"" } } } } }); /* ---- Enable Links:Red */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', group: 'Links', tools: { "Links": { label: 'Bad link', type: 'button', icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', action: { type: 'encapsulate', options: { pre: "{{Site-red|04/24 R/}}{{Site-def|04/24 R/}}", post:"{{Site-hij|04/24 R/}}" } } } } }); /* --- Enable Links:Strike through*/ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', 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 button SM-201|Links|From template */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', group: 'Links', tools: { "from": { label: 'from', type: 'button', icon: 'http://www.sm-201.org/a/images/b/bc/Cat-spider.jpg', action: { type: 'encapsulate', options: { pre: "{{from website|[web url name page on Tokyo.to]", post:"|04/24}}" } } } } }); /* ---- Enable Links:<br> */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', group: 'Links', tools: { "Links": { label: '<br>', 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: 'Heads', 'groups': { 'Files': { 'label': 'Files' } } } ); /* --- Enable Files:Copyright unknown */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', 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: 'Heads', 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: 'Heads', 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: '04/24', post: '' } } } } } ); /* --- Enable Files:Thumbnail */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', 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: 'Heads', 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: 'Heads', 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:Gallery */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', group: 'Files', tools: { "bpswi": { label: 'bpswi', type: 'button', icon: 'http://www.sm-201.org/a/images/6/60/Button_insert_table.png', action: { type: 'encapsulate', options: { pre: 'file:|{{bpswi|', post: '|wk=1| }}' } } } } } ); /* --- Enable button Heads:Files:'File:' */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Heads', group: 'Files', tools: { "File:": { label: 'File:', type: 'button', icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png', action: { type: 'encapsulate', options: { pre: "American burlesque performers", post:"" } } } } }); /* --- Enable Files:{{ndib */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', group: 'Files', tools: { "ndib": { label: 'ndib', type: 'button', icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', action: { type: 'encapsulate', options: { pre: 'dib', post: '.jpg' } } } } } ); /* --- Enable Files:Screenies */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Heads', 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 Pornstud */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', group: 'Page', tools: { "Film-cat": { label: 'Film-cat', type: 'button', icon: 'https://www.sm-201.org/a/images/b/bd/Cat-film.jpg', action: { type: 'encapsulate', options: { pre: "Film making", 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 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|Pro|Imdb etc = */ $('#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\n| birthname = {{dob\n|', post: '| birthplace = \n| alias = \n' } } } } }); /* --- Enable button Info|Pera|Birth etc = */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', group: 'Pers', tools: { "birth": { label: 'birth', type: 'button', icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png', action: { type: 'encapsulate', options: { pre: '| deathdate = {{dob\n| deathcause = {{dob\n|', post: '| deathplace = \n| alias = \n' } } } } }); /* --- Enable button Info|Pers|Personal etc = */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', group: 'Pers', tools: { "Pers": { label: 'Pers', type: 'button', icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png', action: { type: 'encapsulate', options: { pre: '| spouse = {{dob\n|| children = n|', post: '| education = \n| alias = \n' } } } } }); /* --- 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|Dag */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', group: 'Pers', tools: { "Dag": { label: 'dag', type: 'button', icon: 'http://www.sm-201.org/a/images/2/29/Button_dagger2.jpg', action: { type: 'encapsulate', options: { pre: "{{dag}}", 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||||}}\n| eye color = \n| hair color = \n", post: "| height = {{ht||}}\n| weight = {{wt|}}" } } } } }); /* Enable Group:Format: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Info', 'groups': { 'Insex': { 'label': 'Insex' } } } ); /* --- Enable button Info|Insex|DevBond, etc = */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', group: 'Insex', tools: { "CatDB": { label: 'CatDB', type: 'button', icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png', action: { type: 'encapsulate', options: { pre: 'Device Bondage models', post: '' } } } } }); /* --- Enable button Info|Insex|sx */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', group: 'Insex', tools: { "sx": { label: 'sx', type: 'button', icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png', action: { type: 'encapsulate', options: { pre: '{{sx|', post:"}}" } } } } }); /* --- Enable Info:Insex:link */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Info', group: 'Insex', 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: ']]' } } } } } ); $( '#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 = \n| solo = [[Masturbation]], [[Dildo]]\n", post: "| lesbian = [[Softcore]], [[Dildo]]\n| boygirl = [[BJ]], [[Vaginal]], [[Anal]]" } } } } }); /* --- 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|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 Info:Pro:Penthouse */ $('#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}}" } } } } }); /* =================== group cats enable ========== */ /* Enable group:Info:Cats */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Info', 'groups': { 'Cats': { 'label': 'Cats' } } } ); /* --- Enable button Cats:Category2 */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Info', 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 info|cats|!more */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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 Info:Cats:BondMod */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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|authors}}", post:"" } } } } }); /* --- Enable button Info:Cats:Anatomy */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', group: 'Cats', tools: { "anatomy": { label: 'anatomy', type: 'button', icon: 'http://www.sm-201.org/a/images/e/e0/Editor_a.png', action: { type: 'encapsulate', options: { pre: "{{cat|bondage artists|erotic artists|fetish artists|spanking artists", post:"}}" } } } } }); /* --- Enable button Info:Cats:BondMod */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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 Info:Cats:Circle-G */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', group: 'Cats', tools: { "Circle-G": { label: 'Circle-G', type: 'button', icon: 'http://www.sm-201.org/a/images/b/b6/Circle_g.png', action: { type: 'encapsulate', options: { pre: "{{cat|AV Idols|Japanese Gravure Models", post:"}}" } } } } }); /* --- Enable button Info:Also:Circle-J */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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 Info:Also:Circle-S - {{Penthouse Pets 2020|year=}} */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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: "{{cat|Film and video terminology|Cinematic techniques|Photographic techniques}}" } } } } }); /* --- Enable button Info:Cats:Playboy */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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 Info:Cats:spank */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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: "|Shadow Lane", post:"" } } } } }); /* --- Enable button Info:Cats:Image-dex */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', group: 'Cats', tools: { "magick": { label: 'magick', type: 'button', icon: 'http://www.sm-201.org/a/images/f/fe/Wizard.jpg', action: { type: 'encapsulate', options: { pre: "image-dex", post:"", } } } } }); /* --- Enable button Info:Cats:spider pool */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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 Info:Cats:BDSMAuthors */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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 Info:Cats:(Computer technology) */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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: 'Info', 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: 'Info', 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-bondrest */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Info', 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}" } } } } }); /* ======================= &&& =========================== */ /* Enable section:SM-201 */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'sections': { 'Refs': { 'type': 'toolbar', // Can also be 'booklet' 'label': 'Refs' } } } ); /* Enable group:Refs: ========================= */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Refs', 'groups': { 'Ref': { 'label': 'Ref' } } } ); /* Enable group:Notes: ======================== */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Refs', 'groups': { 'Notes': { 'label': 'Notes' } } } ); /* --- Enable button Notes:header| */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', 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:" 04/24}}" } } } } } ); /* --- Enable button Notes:headred */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', 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:" 04/24}}" } } } } }); /* --- Enable button Notes:Defaultsort */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', 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 Links:External links*/ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Notes', 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:External links*/ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Notes', tools: { 'Mall': { label: 'Mall', type: 'button', icon: 'http://www.sm-201.org/a/images/7/76/Coffee_cup.jpg', action: { type: 'encapsulate', options: { pre: "{{mall0|", post: '}}<br>' } } } } }); /* --- Enable button Notes:footer */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', 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: 'Refs', 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: 'Refs', 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: 'Refs', 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 Format:Book title */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Notes', tools: { "{{Titles": { label: 'Titles', type: 'button', icon: 'http://www.sm-201.org/a/images/f/f4/Button_ititle.jpg', action: { type: 'encapsulate', options: { pre: "'''''", post:"'''''" } } } } }); /* --- Enable button Notes:Wiki:@ */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', 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 Info|Pro|Imdb etc = */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Notes', tools: { "Wsec": { label: 'Wsec', type: 'button', icon: 'http://www.sm-201.org/a/images/e/ef/Button_para.png', action: { type: 'encapsulate', options: { pre: '{{wikisec|Filmography}}\n\n{{wikisec|Theater}}\n\n', post: '{{wikisec|Discography}}\n\n{{wikisec|Bibliography}}\n\n' } } } } }); /* --- Enable button Notes:Wikilink */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Notes', tools: { "{{Wl|": { label: '{{wl|', type: 'button', icon: 'http://www.sm-201.org/a/images/f/ff/Editor_w.png', action: { type: 'encapsulate', options: { pre: "{{Wl|", post:"}}" } } } } }); /* --- Enable button Notes:wk5 link */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Notes', tools: { "{{Wk5|": { label: '{{wk5|', type: 'button', icon: 'https://www.sm-201.org/a/images/d/d4/Arrowrt.jpg', action: { type: 'encapsulate', options: { pre: "{{Wsl|", post:"}}" } } } } }); /* --- Enable Format:button [[ link ]] */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Refs', group: 'Notes', 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 button Notes:Redirect */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', 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: 'Refs', 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> 04/24}}\n", post:"{{DEFAULTSORT:<from>}}\n{{cat| }}" } } } } }); /* --- Enable button Notes:SHP matrix */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', 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:"" } } } } }); /* Enable group:Refs: ========================= */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Refs', 'groups': { 'Refs': { 'label': 'Refs' } } } ); /* --- Enable button Refs:<ref> */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', 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: 'Refs', 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: 'Refs', 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: 'Refs', 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: 'Refs', 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: 'Refs', 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: 'Refs', 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: 'Refs', 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:Format: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Refs', 'groups': { 'Resources': { 'label': 'Resources' } } } ); /* --- Enable Format:active */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', tools: { "grn": { label: 'grn', type: 'button', icon: 'http://www.sm-201.org/a/images/0/01/B-grn.jpg', action: { type: 'encapsulate', options: { pre: ' ( ? active as of 04/24 R/ )', post: '' } } } } }); /* --- Enable Format:closed*/ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', tools: { "red": { label: 'red', type: 'button', icon: 'http://www.sm-201.org/a/images/d/db/B-red.jpg', action: { type: 'encapsulate', options: { pre: ' ( inactive as of 04/24 R/ )', post: '' } } } } }); /* --- Enable Resources:map*/ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', tools: { "map": { label: 'map', type: 'button', icon: 'http://www.sm-201.org/a/images/6/64/Map-blk.jpg', action: { type: 'encapsulate', options: { pre: '{{gm|', post: '}}' } } } } }); /* --- Enable button Info|Pro|Imdb etc = */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', tools: { "wk3": { label: 'w1', type: 'button', icon: 'http://www.sm-201.org/a/images/f/ff/Editor_w.png', action: { type: 'encapsulate', options: { pre: '{{w1|', post: '}}' } } } } }); /* ---- Enable Links:{{ni| */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', tools: { "{{ni|": { label: '{{ni', type: 'button', icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', action: { type: 'encapsulate', options: { pre: "{{ni|", post:"}}" } } } } }); /* --- Enable button Other:Cats:spider pool */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', tools: { "web": { label: 'web', type: 'button', icon: 'http://www.sm-201.org/a/images/b/bc/Cat-spider.jpg', action: { type: 'encapsulate', options: { pre: "{{website|", post:"}}" } } } } }); /* --- Enable Format:Strike through*/ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', 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 button Info|Pers|cause */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', tools: { "Died": { label: 'died', type: 'button', icon: 'http://www.sm-201.org/a/images/2/29/Button_dagger2.jpg', action: { type: 'encapsulate', options: { pre: "{{dag}}", post:"" } } } } }); /* --- Enable button Resources:Category2 */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Refs', group: 'Resources', 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 Resources:Category2 */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Refs', group: 'Resources', tools: { "LGBT": { label: 'LGBT', type: 'button', icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png', action: { type: 'encapsulate', options: { pre: 'LGBT films ', post: '' } } } } } ); /* --- Enable button Resources:Category2 */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Refs', group: 'Resources', tools: { "New": { label: 'New', type: 'button', icon: 'http://www.sm-201.org/a/images/d/d5/Mnl.jpg', action: { type: 'encapsulate', options: { pre: '{{header| 04/24}}{{DEFAULTSORT: }}\n', post: '== External links ==\n\n{{footer}}\n{{cat|}}' } } } } } ); /* --- Enable button artdex */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', tools: { "note": { label: 'none', type: 'button', icon: 'http://www.sm-201.org/a/images/e/ec/Button_base.png', action: { type: 'encapsulate', options: { pre: "File:none.jpg|", post:"" } } } } }); /* --- Enable Refs:Resources:sup */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', tools: { "sup": { label: 'sup', type: 'button', icon: 'http://www.sm-201.org/a/images/7/74/Button_comment.png', action: { type: 'encapsulate', options: { pre: "<sup>", post:"</sup>" } } } } }); /* --- Enable Refs:Resources mag */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Resources', tools: { "mag": { label: 'mag', type: 'button', icon: 'https://www.sm-201.org/a/images/7/71/Mag.png', action: { type: 'encapsulate', options: { pre: " {{o}}", post:"" } } } } }); /* Enable Group:Format: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Refs', 'groups': { 'Shopping': { 'label': 'Shopping' } } } ); /* --- Enable button Refs:Shopping:rose */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Refs', group: 'Shopping', 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 button Refs:Shopping:blue */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Shopping', 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 Res|Shopping|LatexWiki| */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Shopping', tools: { "lw": { label: 'lw', type: 'button', icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png', action: { type: 'encapsulate', options: { pre: "{{sa-leather working}}", post:"" } } } } }); /* --- Enable button Notes:footer $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Shopping', tools: { "{{fc|": { label: '{{fc|', type: 'button', icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png', action: { type: 'encapsulate', options: { pre: "{{sa-fetish attire}}\n{{sa-clothing}}", post: "{{cat|Fetish clothing}}" } } } } }); */ /* --- Enable button Notes:footer */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Shopping', tools: { "{{w|": { label: 'w', type: 'button', icon: 'http://www.sm-201.org/a/images/f/ff/Editor_w.png', action: { type: 'encapsulate', options: { pre: "westerns rework", post: "" } } } } }) /* --- Enable button Notes:footer */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Shopping', tools: { "{{cm|": { label: '{{cm|', type: 'button', icon: 'https://www.sm-201.org/a/images/1/13/Lyre-clip.png', action: { type: 'encapsulate', options: { pre: "{{cat-mus|", post: "Dance}}" } } } } }); /* --- Enable button Res|New */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Shopping', tools: { "New": { label: 'new', type: 'button', icon: 'http://www.sm-201.org/a/images/a/a9/Button_star.png', action: { type: 'encapsulate', options: { pre: " {{New}} (04/24)", post:"" } } } } }); /* --- Enable button Res|Shopping latex */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Shopping', tools: { "$ ltx": { label: '$ ltx', type: 'button', icon: 'http://www.sm-201.org/a/images/f/fa/Balloon.jpg', action: { type: 'encapsulate', options: { pre: "Shopping:Latex", post:"" } } } } }); /* --- Enable button Res|Shopping|Shopping (defunct) | */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Refs', group: 'Shopping', tools: { "s (d)": { label: 's (d)', type: 'button', icon: 'http://sm-201.org/a/images/b/be/Editor_c.png', action: { type: 'encapsulate', options: { pre: "{{cat|Shopping (defunct)|", post:"}}" } } } } }); /* ================================================== /* Enable section:Cats */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'sections': { 'Cats': { 'type': 'toolbar', // Can also be 'booklet'screen 'label': 'Cats' } } } ); /* Enable group:SM-201:Cats ============================ */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Cats', 'groups': { 'Cats': { 'label': 'Cats' } } } ); /* --- Enable button Cats:Category */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Cats', 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: 'Cats', 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: 'Cats', 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: "}}" } } } } }); __NOCAT__ /* 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 ); } } ); }