User talk:Robinr78/common.js: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
var customizeToolbar = function () { | var customizeToolbar = function () { | ||
/* srtable as of 2021-0218 */ | |||
/* | /* Enable section:SM-201 */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
'sections': { | 'sections': { | ||
Line 14: | Line 12: | ||
} ); | } ); | ||
/* Enable section:Other */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
'sections': { | |||
' | 'Other': { | ||
'type': 'toolbar', // Can also be 'booklet' | 'type': 'toolbar', // Can also be 'booklet' | ||
'label': ' | 'label': 'Other' | ||
} | } | ||
} | } | ||
Line 24: | Line 23: | ||
/* | /* Enable Group:Format: */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'SM-201', | |||
'groups': { | 'groups': { | ||
'Format': { | 'Format': { | ||
Line 36: | Line 34: | ||
} ); | } ); | ||
/* --- | /* --- Enable Format:Comment */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'SM-201', | |||
' | group: 'Format', | ||
' | tools: { | ||
"Comment": { | |||
label: 'Comment', | |||
type: 'button', | |||
icon: 'http://www.sm-201.org/a/images/6/66/Editor_!.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '<!-- ', | |||
post: ' -->' | |||
} | |||
} | |||
} | } | ||
} | } | ||
} ); | } ); | ||
/* --- | /* --- Enable Format:Apostrophe */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'SM-201', | |||
' | group: 'Format', | ||
' | tools: { | ||
"Apostrope": { | |||
label: 'Apostrophe', | |||
type: 'button', | |||
icon: 'http://www.sm-201.org/a/images/3/39/Editor_apos.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "'", | |||
post: "'" | |||
} | |||
} | |||
} | } | ||
} | } | ||
} ); | } ); | ||
/* --- | /* --- Enable Format:<clear /> */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | |||
' | group: 'Format', | ||
' | tools: { | ||
"Clear": { | |||
label: 'Clear', | |||
type: 'button', | |||
icon: 'http://sm-201.org/a/images/b/be/Editor_c.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '<br clear="all"> ', | |||
post: '' | |||
} | |||
} | |||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- | /* --- Enable Format:List Item */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | |||
' | group: 'Format', | ||
' | tools: { | ||
"Item2": { | |||
label: 'Item2', | |||
type: 'button', | |||
icon: 'http://sm-201.org/a/images/7/79/Button_item.jpg', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '* [[', | |||
post: ']]' | |||
} | |||
} | |||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | /* --- Enable Format:Template Item */ | ||
' | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
' | section: 'SM-201', | ||
group: 'Format', | |||
tools: { | |||
"Item": { | |||
label: 'Item', | |||
type: 'button', | |||
icon: 'http://sm-201.org/a/images/0/02/Button_dot.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: ' • [[', | |||
post: ']]' | |||
} | |||
} | |||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable Format:Tempate:BC */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'SM-201', | |||
group: 'Format', | |||
tools: { | |||
"{{bc": { | |||
label: '{{bc', | |||
type: 'button', | |||
icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "{{bc|", | |||
post:"}}" | |||
} | |||
} | |||
} | |||
} | |||
}); | |||
/* | /* --- Enable Format:Book title */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Format', | ||
tools: { | tools: { | ||
" | "{{Titles": { | ||
label: ' | label: 'Titles', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/f/f4/Button_ititle.jpg', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{Titles|", | ||
post:" | post:"}}" | ||
} | } | ||
} | } | ||
Line 107: | Line 175: | ||
}); | }); | ||
/* --- Enable Format:Book title */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Format', | ||
tools: { | tools: { | ||
" | "Book link": { | ||
label: ' | label: 'Book link', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/e0/Editor_book.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "< | pre: '"<I>[[', | ||
post: | post: ']]</I>"' | ||
} | } | ||
} | } | ||
Line 127: | Line 195: | ||
}); | }); | ||
/* --- Enable Format:Book title */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Format', | ||
tools: { | tools: { | ||
" | "Book title": { | ||
label: ' | label: 'Book Title', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/e0/Editor_book.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "< | pre: '"<I>', | ||
post: | post: '</I>"' | ||
} | } | ||
} | } | ||
Line 146: | Line 215: | ||
}); | }); | ||
/* | /* --- Enable button Other:Also:Movies */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Format', | ||
tools: { | tools: { | ||
" | "Movies": { | ||
label: ' | label: 'Movies', | ||
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: "{{Movies", | ||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable Format:Underline */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Format', | ||
tools: { | tools: { | ||
" | "Underline": { | ||
label: ' | label: 'Underline', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/7/73/Editor_ul.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "<u>", | ||
post: "</u>", | |||
} | } | ||
} | } | ||
Line 189: | Line 255: | ||
}); | }); | ||
/* --- Enable Format:Strike through*/ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Format', | ||
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 208: | Line 275: | ||
}); | }); | ||
/* --- Enable Format:button [[link]] */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'SM-201', | |||
group: 'Format', | |||
tools: { | |||
"Template": { | |||
label: 'Link', | |||
type: 'button', | |||
icon: 'http://www.sm-201.org/a/images/c/c0/Button_link.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '[[', | |||
post: ']]' | |||
} | |||
} | |||
} | |||
} | |||
} ); | |||
/* --- Enable Format:button {{ }} */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'SM-201', | |||
group: 'format', | |||
tools: { | |||
"Template": { | |||
label: 'Template', | |||
type: 'button', | |||
icon: 'http://www.sm-201.org/a/images/5/5f/Button_temp.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "{{", | |||
post: "}}" | |||
} | |||
} | |||
} | |||
} | |||
} ); | |||
/* --- Enable Format:button Quotes */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Format', | ||
tools: { | tools: { | ||
" | "Quotes": { | ||
label: ' | label: 'Quotes', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/7/7d/Button_quot.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: '"', | ||
post: '"', | |||
} | } | ||
} | } | ||
Line 229: | Line 335: | ||
}); | }); | ||
/* --- Enable Format:button moz-column */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Format', | ||
tools: { | tools: { | ||
" | "Columns": { | ||
label: ' | label: 'Columns', | ||
type: 'button', | type: 'button', | ||
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: "</div>", | |||
} | } | ||
} | } | ||
Line 248: | Line 355: | ||
}); | }); | ||
/* --- Enable Format:button Center */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Format', | ||
tools: { | tools: { | ||
" | "Center": { | ||
label: ' | label: 'Center', | ||
type: 'button', | type: 'button', | ||
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: '</center>', | |||
} | } | ||
} | } | ||
Line 267: | Line 375: | ||
}); | }); | ||
/* | /* --- Enable Format:button Justify */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Format', | ||
tools: { | tools: { | ||
" | "Justify": { | ||
label: ' | label: 'Justify', | ||
type: 'button', | type: 'button', | ||
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: '</p>', | |||
} | } | ||
} | } | ||
Line 289: | Line 395: | ||
}); | }); | ||
/* Enable Group:Inc: */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'SM-201', | |||
'groups': { | |||
'Inc': { | |||
'label': 'Inc' | |||
} | |||
} | |||
} ); | |||
/* | /* --- Enable button Inc:Includeonly */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Inc', | ||
tools: { | tools: { | ||
" | "Incl": { | ||
label: ' | 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: " | pre: "<includeonly>", | ||
post:" | post:"</includeonly>" | ||
} | } | ||
} | } | ||
Line 310: | Line 425: | ||
}); | }); | ||
/* | /* --- Enable button Inc:Noinclude */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Inc', | ||
tools: { | tools: { | ||
" | "Noinclude": { | ||
label: ' | 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: | pre: "<noinclude>", | ||
post: " | post:"</noinclude>" | ||
} | } | ||
} | } | ||
Line 330: | Line 445: | ||
}); | }); | ||
/* --- Enable button Inc:Nowiki */ | |||
/* | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Inc', | ||
tools: { | tools: { | ||
" | "Nowiki": { | ||
label: ' | 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: | pre: "<nowiki>", | ||
post: " | post:"</nowiki>" | ||
} | } | ||
} | } | ||
Line 351: | Line 465: | ||
}); | }); | ||
/* | /* Enable group:Notes: */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'SM-201', | |||
'groups': { | |||
'Refs': { | |||
'label': 'Refs' | |||
} | |||
} | |||
} ); | |||
/* --- Enable button Refs:<ref> */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | 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: " | post:"</ref>" | ||
} | } | ||
} | } | ||
Line 371: | Line 496: | ||
}); | }); | ||
/* | /* --- Enable button Refs:<ref> */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
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: "<ref group="Note"", | ||
post:"</ref>" | |||
} | } | ||
} | } | ||
Line 391: | Line 516: | ||
}); | }); | ||
/* --- Enable button Notes:Calendar */ | |||
/* | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Refs', | ||
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: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Refs', | ||
tools: { | tools: { | ||
" | "Ref": { | ||
label: ' | label: 'RefList', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/3/32/Button_reflist.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "== References ==<br><References />, | ||
post: " | post:"" | ||
} | } | ||
} | } | ||
Line 432: | Line 557: | ||
}); | }); | ||
/* --- Enable button Refs:<reflist> */ | |||
/* | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | 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/0/0e/Editor_n.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "<references group="Note" />", | ||
post: " | post:"" | ||
} | } | ||
} | } | ||
Line 454: | Line 578: | ||
/* | |||
/* --- Enable button model */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Refs', | ||
tools: { | tools: { | ||
" | "Main": { | ||
label: ' | label: 'Main', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Main|", | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 473: | Line 601: | ||
} | } | ||
}); | }); | ||
/* | |||
/* ---- Enable Links:Site ok */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Refs', | ||
tools: { | tools: { | ||
" | "Refs": { | ||
label: ' | label: 'YGroups', | ||
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: "{{YGroups|", | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 493: | Line 624: | ||
}); | }); | ||
/* | /* --- Enable button Notes:@wr */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
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 513: | Line 644: | ||
}); | }); | ||
/* | /* Enable group:Notes: */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'SM-201', | |||
'groups': { | |||
'Notes': { | |||
'label': 'Notes' | |||
} | |||
} | |||
} ); | |||
/* | /* --- Enable button Notes:Category */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Cats": { | ||
label: ' | label: 'Category', | ||
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: '[[Category:', | ||
post: ' | post: ']]' | ||
} | } | ||
} | } | ||
Line 535: | Line 674: | ||
} ); | } ); | ||
/* | /* --- Enable button Notes:Calendar */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "mm/yr": { | ||
label: ' | label: '02/21', | ||
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: "02/21", | ||
post: " | post: "" | ||
} | } | ||
} | } | ||
Line 555: | Line 694: | ||
} ); | } ); | ||
/* --- Enable button Notes:header */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'SM-201', | |||
group: 'Needs', | |||
tools: { | |||
"Needs": { | |||
label: 'Header', | |||
type: 'button', | |||
icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "{{Header", | |||
post:"}}" | |||
} | |||
} | |||
} | |||
} | |||
}); | |||
/* | /* --- Enable button Notes:header| */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Needs": { | ||
label: ' | label: 'Header', | ||
type: 'button', | type: 'button', | ||
icon: 'http://sm-201.org/a/images/ | 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:" 02/21}}" | |||
} | } | ||
} | } | ||
Line 577: | Line 734: | ||
}); | }); | ||
/* --- Enable button Notes:footer */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Footer": { | ||
label: ' | label: 'Footer', | ||
type: 'button', | type: 'button', | ||
icon: 'http://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 596: | Line 754: | ||
}); | }); | ||
/* | /* --- Enable button Notes:Category:needs */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Needs": { | ||
label: ' | label: 'Notes', | ||
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: "{{Needs", | |||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button model */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
/* | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
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:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* --- Enable button Pornstud */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Pornstud": { | ||
label: ' | label: 'Model', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | 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:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* --- Enable Pornstar */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
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: ' | post: '' | ||
} | } | ||
} | } | ||
Line 679: | Line 834: | ||
} ); | } ); | ||
/* --- Enable button Notes:toporn */ | |||
/* | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "toporn": { | ||
label: ' | label: '', | ||
type: 'button', | type: 'button', | ||
icon: 'http:// | 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 700: | Line 854: | ||
} ); | } ); | ||
/* | |||
/* --- Enable button Notes:ok */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Needs": { | ||
label: ' | label: 'sa-porn', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | 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", | ||
post:"}}" | |||
} | } | ||
} | } | ||
Line 720: | Line 875: | ||
}); | }); | ||
/* --- Enable button Notes:ltx8 */ | |||
/* | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "ltx8": { | ||
label: ' | label: 'ltx8', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{ltx8|Latex|Latex shopping|Latex clothing|Latex stores|Latex online|Latex clothing designers|Latex clothing manufacturers|Latex suppliers", | |||
post:"" | |||
} | } | ||
} | } | ||
Line 741: | Line 895: | ||
}); | }); | ||
/* | /* --- Enable button Notes:Heads2 */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "A2": { | ||
label: ' | label: 'Heads2', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/e/e9/Button_headline2.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '==', | ||
post: ' | post: '==' | ||
} | } | ||
} | } | ||
Line 761: | Line 915: | ||
} ); | } ); | ||
/* | |||
/* --- Enable button Notes:dagger */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "dagger": { | ||
label: ' | label: 'dagger', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/b/b1/Button_dagger.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: '†', | ||
post: | post: '' | ||
} | } | ||
} | } | ||
Line 781: | Line 936: | ||
} ); | } ); | ||
/* | /* --- Enable button Notes:Wiki:@ */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Needs": { | ||
label: ' | label: 'Wikimain', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/8/82/Wikilogo-20.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Wikimain|", | ||
post:"|_}}" | |||
} | } | ||
} | } | ||
Line 801: | Line 956: | ||
}); | }); | ||
/* --- Enable button Notes:Redirect */ | |||
/* | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
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:"]]" | |||
} | } | ||
} | } | ||
Line 822: | Line 976: | ||
}); | }); | ||
/* | /* --- Enable button Notes:SHP matrix */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "SHP": { | ||
label: ' | label: 'SHP', | ||
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: | pre: "{{shp|rpm=|emh=|bah=|etv=|bur=|msh=|pin=|sph=|show=|eve=|wwii=|yank=}}", | ||
post:"" | |||
} | } | ||
} | } | ||
Line 842: | Line 996: | ||
}); | }); | ||
/* --- Enable button Notes:Defaultsort */ | |||
/* | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'SM-201', | section: 'SM-201', | ||
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 863: | Line 1,016: | ||
}); | }); | ||
/* | /* --- Enable button Notes:insert image */ | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'SM-201', | |||
group: 'Notes', | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: ' | |||
group: ' | |||
tools: { | tools: { | ||
" | "Needs": { | ||
label: ' | label: 'image:', | ||
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: "Image:", | |||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* --- Enable button mt - MT coloumn */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "MT": { | ||
label: ' | label: 'MT', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/a/ad/Button_mt.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "|| ", | ||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* --- Enable button Notes:@wr */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'SM-201', | ||
group: ' | group: 'Notes', | ||
tools: { | tools: { | ||
" | "Needs": { | ||
label: ' | label: '{wr}', | ||
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: "{{@wr", | ||
post:"}}" | |||
} | } | ||
} | } | ||
} | |||
} | |||
}); | |||
/* Enable group:Links: */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'SM-201', | |||
'groups': { | |||
'Links': { | |||
'label': 'Links' | |||
} | } | ||
} | } | ||
} ); | } ); | ||
/* | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | /* --- Enable Links:External links*/ | ||
section: ' | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
group: ' | section: 'SM-201', | ||
group: 'Links', | |||
tools: { | tools: { | ||
'External': { | |||
label: ' | label: 'External', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/e/ | icon: 'http://www.sm-201.org/a/images/e/e3/Editor_e.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "== External links ==", | |||
post: '', | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* ---- Enable Links:Sanity */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'SM-201', | ||
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|02/21|R/}}", | |||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | /* ---- Enable Links:Site ok */ | ||
section: ' | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
group: ' | section: 'SM-201', | ||
group: 'Links', | |||
tools: { | tools: { | ||
" | "Links": { | ||
label: ' | label: 'Link OK', | ||
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: "{{Site-ok|02/21 R/}} ", | ||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* ---- Enable Links:Red */ | |||
/* | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | section: 'SM-201', | ||
section: ' | group: 'Links', | ||
group: ' | |||
tools: { | tools: { | ||
" | "Links": { | ||
label: ' | label: 'Footer', | ||
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: "{{Site-red|02/21 R/}} ", | ||
post:"" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* --- Enable Links:Strike through*/ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'SM-201', | ||
group: ' | group: 'Links', | ||
tools: { | tools: { | ||
" | "Strike": { | ||
label: ' | label: 'Strike', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | 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: '' | post: '</s>', | ||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* ---- Enable Links:<cr> */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'SM-201', | ||
group: ' | group: 'Links', | ||
tools: { | tools: { | ||
" | "Links": { | ||
label: ' | label: '<cr>', | ||
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: 'SM-201', | |||
'groups': { | |||
'Files': { | |||
'label': 'Files' | |||
} | } | ||
} | } | ||
} ); | } ); | ||
/* | /* --- Enable Files:Copyright unknown */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'SM-201', | ||
group: ' | group: 'Files', | ||
tools: { | tools: { | ||
" | "Copy": { | ||
label: ' | label: 'Copy', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/2/22/Button-copy.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: 'Copyright info not available/ownership unkown', | ||
post: '' | post: '' | ||
} | } | ||
Line 1,067: | Line 1,246: | ||
} ); | } ); | ||
/* --- Enable Files:Mo/Yr */ | |||
/* | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'SM-201', | ||
group: ' | group: 'Files', | ||
tools: { | tools: { | ||
" | "Date": { | ||
label: ' | label: 'Date', | ||
type: | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/0/01/Button-cal.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '02/2120', | ||
post: '' | |||
} | } | ||
} | } | ||
Line 1,088: | Line 1,266: | ||
} ); | } ); | ||
/* --- Enable Files:Thumbnail */ | |||
/* | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'SM-201', | ||
group: ' | group: 'Files', | ||
tools: { | tools: { | ||
" | "Thumb": { | ||
label: ' | label: 'Thumb', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/6/6f/Button_thumb.jpg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '[[File:', | ||
post: '' | post: '|thumb|right|200px| ]]' | ||
} | } | ||
} | } | ||
Line 1,109: | Line 1,286: | ||
} ); | } ); | ||
/* | /* --- Enable Files:Gallery */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'SM-201', | ||
group: ' | group: 'Files', | ||
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/3/35/Editor_g.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '<gallery mode="packed" heights="200px" caption=""> ', | ||
post: '' | post: '</gallery>' | ||
} | } | ||
} | } | ||
Line 1,129: | Line 1,306: | ||
} ); | } ); | ||
/* | /* =========================================== Add "Other" Buttons==== */ | ||
/* Enable section:Categories */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: 'Cats', | section: 'Cats', | ||
group: 'Cats', | 'groups': { | ||
'Cats': { | |||
'label': 'Cats' | |||
} | |||
} | |||
} ); | |||
/* Enable group:Other: */ | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | |||
section: 'Other', | |||
'groups': { | |||
'Also': { | |||
'label': 'Also' | |||
} | |||
} | |||
} ); | |||
/* --- Enable button Cats:Also:Mast */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'Other', | |||
group: 'Also', | |||
tools: { | tools: { | ||
" | "ASFR": { | ||
label: ' | label: 'ASFR', | ||
type: 'button', | type: 'button', | ||
icon: 'http:// | icon: 'http://sm-201.org/a/images/e/e0/Editor_a.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Sex asfr", | ||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button Other:DS roles */ | |||
/* | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | section: 'Other', | ||
section: ' | group: 'Also', | ||
group: ' | |||
tools: { | tools: { | ||
" | "{DS}": { | ||
label: ' | label: 'DS roles', | ||
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: "{{DS roles", | ||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button Other:Also:Human sexuality */ | |||
/* | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | section: 'Other', | ||
section: ' | group: 'Also', | ||
group: ' | |||
tools: { | tools: { | ||
" | "Human": { | ||
label: ' | label: 'Human', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Human sex", | ||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button Other:DS roles */ | |||
/* | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | section: 'Other', | ||
section: ' | group: 'Also', | ||
group: ' | |||
tools: { | tools: { | ||
" | "ID": { | ||
label: ' | label: 'Sex ids', | ||
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: "{{Sex ids", | ||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button Other:Also:Sex Industry */ | |||
/* | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | section: 'Other', | ||
section: ' | group: 'Also', | ||
group: ' | |||
tools: { | tools: { | ||
" | "Industy": { | ||
label: ' | label: 'Industry', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/9/9e/Button_$.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{Sex Industry", | |||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button Other:Also:LGBT slang */ | |||
/* | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | section: 'Other', | ||
section: ' | group: 'Also', | ||
group: ' | |||
tools: { | tools: { | ||
" | "LGBT slang": { | ||
label: ' | label: 'LGBT slang', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{LGBT slang", | ||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* --- Enable button Other:Also:Other */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Other', | ||
group: ' | group: 'Also', | ||
tools: { | tools: { | ||
" | "sa-off": { | ||
label: ' | label: 'sa-off', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/b/b6/Editor_o.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{sa-offenses", | |||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* ---- Enable Footers:Porn */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Other', | ||
group: ' | group: 'Also', | ||
tools: { | tools: { | ||
" | "Porno": { | ||
label: ' | label: 'Porno', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png', | icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{Porno", | |||
post: | post: "}}" | ||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* --- Enable button Other:Also:Relationship */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Other', | ||
group: ' | group: 'Also', | ||
tools: { | tools: { | ||
" | "Relationship": { | ||
label: ' | label: 'Relationship', | ||
type: 'button', | type: 'button', | ||
icon: 'http://www.sm-201.org/a/images/ | icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{Relationships", | |||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button Cats:Also:Sex terms */ | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
/* | section: 'Other', | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | group: 'Also', | ||
section: ' | |||
group: ' | |||
tools: { | tools: { | ||
" | "Sexual terms": { | ||
label: ' | label: 'Sexual terms', | ||
type: 'button', | type: 'button', | ||
icon: 'http:// | icon: 'http://sm-201.org/a/images/1/19/Editor_t.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: | pre: "{{Sexual terms", | ||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* --- Enable button Refs:<reflist> */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: ' | section: 'Other', | ||
group: ' | group: 'Also', | ||
tools: { | tools: { | ||
" | "BDSM": { | ||
label: ' | label: 'BDSM', | ||
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: "{{Outline of BDSM", | ||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* | /* Enable Group:Format: */ | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
section: ' | section: 'Other', | ||
'groups': { | |||
'Tables': { | |||
'label': 'Table' | |||
} | } | ||
} | } | ||
} ); | } ); | ||
/* | |||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | /* --- Enable button Expl */ | ||
section: ' | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
group: ' | section: 'Other', | ||
group: 'Table', | |||
tools: { | tools: { | ||
" | "Expl 1": { | ||
label: ' | label: 'Expl 1 !', | ||
type: 'button', | type: 'button', | ||
icon: 'http:// | icon: 'http://sm-201.org/a/images/a/af/Button_%21.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{!", | |||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
/* --- Enable button Expl */ | |||
/* | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | section: 'Other', | ||
section: ' | group: 'Table', | ||
group: ' | |||
tools: { | tools: { | ||
" | "Expl 2": { | ||
label: ' | label: 'Expl 1 !', | ||
type: 'button', | type: 'button', | ||
icon: 'http:// | icon: 'http://sm-201.org/a/images/b/b6/Button_%21%21.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "{{!!", | |||
post:"}}" | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
} ); | }); | ||
Line 1,439: | Line 1,623: | ||
} ); | } ); | ||
} | } | ||
Revision as of 17:23, 18 February 2021
var customizeToolbar = function () { /* srtable as of 2021-0218 */
/* Enable section:SM-201 */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'sections': { 'SM-201': { 'type': 'toolbar', // Can also be 'booklet' 'label': 'SM-201' } } } );
/* Enable section:Other */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'Other': { 'type': 'toolbar', // Can also be 'booklet' 'label': 'Other' } } } );
/* Enable Group:Format: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', 'groups': { 'Format': { 'label': 'Format' } } } );
/* --- Enable Format:Comment */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Comment": { label: 'Comment', type: 'button', icon: 'http://www.sm-201.org/a/images/6/66/Editor_!.png', action: { type: 'encapsulate', options: { pre: } } } } } );
/* --- Enable Format:Apostrophe */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Apostrope": { label: 'Apostrophe', type: 'button', icon: 'http://www.sm-201.org/a/images/3/39/Editor_apos.png', action: { type: 'encapsulate', options: { pre: "'", post: "'" } } } } } );
/* --- Enable Format:<clear /> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Format',
tools: {
"Clear": {
label: 'Clear',
type: 'button',
icon: 'http://sm-201.org/a/images/b/be/Editor_c.png',
action: {
type: 'encapsulate',
options: {
pre: '
',
post:
}
}
}
}
});
/* --- Enable Format:List Item */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Item2": { label: 'Item2', type: 'button', icon: 'http://sm-201.org/a/images/7/79/Button_item.jpg', action: { type: 'encapsulate', options: { pre: '* [[', post: ']]' } } } } });
/* --- Enable Format:Template Item */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Item": { label: 'Item', type: 'button', icon: 'http://sm-201.org/a/images/0/02/Button_dot.png', action: { type: 'encapsulate', options: { pre: ' • [[', post: ']]' } } } } });
/* --- Enable Format:Tempate:BC */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "{{bc": { label: '{{bc', type: 'button',
icon: 'http://www.sm-201.org/a/images/b/b4/Editor_b.png',
action: { type: 'encapsulate', options: {
pre: "
"
} } } } });
/* --- Enable Format:Book title */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "{{Titles": { label: 'Titles', type: 'button',
icon: 'http://www.sm-201.org/a/images/f/f4/Button_ititle.jpg',
action: { type: 'encapsulate', options: { pre: """,
post:"""
} } } } });
/* --- Enable Format:Book title */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Book link": { label: 'Book link', type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e0/Editor_book.png',
action: { type: 'encapsulate', options: { pre: '"[[',
post: ']]"'
} } } } });
/* --- Enable Format:Book title */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Book title": { label: 'Book Title', type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e0/Editor_book.png',
action: { type: 'encapsulate', options: { pre: '"',
post: '"'
} } } } });
/* --- Enable button Other:Also:Movies */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Movies": { label: 'Movies', type: 'button',
icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png',
action: { type: 'encapsulate', options: { pre: "{{Movies",
post:"}}"
} } } } });
/* --- Enable Format:Underline */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Underline": { label: 'Underline', type: 'button', icon: 'http://www.sm-201.org/a/images/7/73/Editor_ul.png', action: { type: 'encapsulate', options: { pre: "", post: "", } } } } });
/* --- Enable Format:Strike through*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Format',
tools: {
"Strike": {
label: 'Strike',
type: 'button',
icon: 'http://www.sm-201.org/a/images/c/c9/Button_strike.png',
action: {
type: 'encapsulate',
options: {
pre: '',
post: '',
}
}
}
}
});
/* --- Enable Format:button link */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Template": { label: 'Link', type: 'button', icon: 'http://www.sm-201.org/a/images/c/c0/Button_link.png', action: { type: 'encapsulate', options: { pre: '[[', post: ']]' } } } } } );
/* --- Enable Format:button {{ }} */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'format', tools: { "Template": { label: 'Template', type: 'button', icon: 'http://www.sm-201.org/a/images/5/5f/Button_temp.png', action: { type: 'encapsulate', options: { pre: "{{", post: "}}" } } } } } );
/* --- Enable Format:button Quotes */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Quotes": { label: 'Quotes', type: 'button', icon: 'http://www.sm-201.org/a/images/7/7d/Button_quot.png', action: { type: 'encapsulate', options: { pre: '"', post: '"', } } } } });
/* --- Enable Format:button moz-column */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Columns": { label: 'Columns', type: 'button', icon: 'http://www.sm-201.org/a/images/0/04/Button_multicol.png', action: { type: 'encapsulate', options: {
pre: "
",
} } } } });
/* --- Enable Format:button Center */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Center": { label: 'Center', type: 'button', icon: 'http://www.sm-201.org/a/images/5/5f/Button_center.png', action: { type: 'encapsulate', options: {
pre: '
',
} } } } });
/* --- Enable Format:button Justify */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Format', tools: { "Justify": { label: 'Justify', type: 'button', icon: 'http://www.sm-201.org/a/images/0/0f/Button_just.png', action: { type: 'encapsulate', options: {
pre: '
', post: '
',
} } } } });
/* Enable Group:Inc: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', 'groups': { 'Inc': { 'label': 'Inc' } } } );
/* --- Enable button Inc:Includeonly */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Inc', tools: { "Incl": { label: 'Incl', type: 'button',
icon: 'http://www.sm-201.org/a/images/3/3b/Button_in.jpg',
action: { type: 'encapsulate', options: { pre: "" } } } } });
/* --- Enable button Inc:Noinclude */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Inc', tools: { "Noinclude": { label: 'Noinclude', type: 'button',
icon: 'http://www.sm-201.org/a/images/1/1b/Button_no.jpg',
action: { type: 'encapsulate', options: { pre: "",
post:""
} } } } });
/* --- Enable button Inc:Nowiki */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Inc', tools: { "Nowiki": { label: 'Nowiki', type: 'button',
icon: 'http://www.sm-201.org/a/images/a/a6/Button_quiet.jpg',
action: { type: 'encapsulate', options: { pre: "", post:"" } } } } });
/* Enable group:Notes: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
'groups': { 'Refs': { 'label': 'Refs' } } } );
/* --- Enable button Refs:Cite error: Closing </ref>
missing for <ref>
tag"
}
}
}
}
});
/* --- Enable button Refs:[1]" } } } } });
/* --- Enable button Notes:Calendar */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Access": { label: 'Access', type: 'button', icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png', action: { type: 'encapsulate', options: { pre: "accessed = ", post: "" } } } } } );
/* --- Enable button Refs:<reflist> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Refs',
tools: {
"Ref": {
label: 'RefList',
type: 'button',
icon: 'http://www.sm-201.org/a/images/3/32/Button_reflist.png',
action: { type: 'encapsulate', options: {
pre: "== References ==
- ↑ */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Note": { label: 'Note', type: 'button', icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png', action: { type: 'encapsulate', options: { pre: "<ref group="Note"", post:"
,
post:""
} } } } });
/* --- Enable button Refs:<reflist> */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Ref": { label: 'RefList', type: 'button',
icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
action: { type: 'encapsulate', options: { pre: "",
post:""
} } } } });
/* --- Enable button model */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Refs',
tools: {
"Main": {
label: 'Main',
type: 'button',
icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png',
action: { type: 'encapsulate', options: { pre: "
post:"]]"
} } } } });
/* ---- Enable Links:Site ok */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Refs": { label: 'YGroups', type: 'button',
icon: 'http://www.sm-201.org/a/images/f/f1/Editor_y.png',
action: { type: 'encapsulate', options: { pre: "(♦ This Yahoo Group closes 12/15/2020)" } } } } });
/* --- Enable button Notes:@wr */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Refs', tools: { "Needs": { label: '{wref"}', type: 'button',
icon: 'http://www.sm-201.org/a/images/e/eb/Button_@.png',
action: { type: 'encapsulate', options: { pre: "',
post:""[[Wikipedia:', post:"|@wk]]"
} } } } });
/* Enable group:Notes: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
'groups': { 'Notes': { 'label': 'Notes' } } } );
/* --- Enable button Notes:Category */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Cats": { label: 'Category', type: 'button', icon: 'http://www.sm-201.org/a/images/d/d0/Button_Cat.Png', action: { type: 'encapsulate', options: { pre: '[[Category:', post: ']]' } } } } } );
/* --- Enable button Notes:Calendar */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "mm/yr": { label: '02/21', type: 'button', icon: 'http://www.sm-201.org/a/images/a/a7/Button_cal.png', action: { type: 'encapsulate', options: { pre: "02/21", post: "" } } } } } );
/* --- Enable button Notes:header */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Needs', tools: { "Needs": { label: 'Header', type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
action: { type: 'encapsulate', options: { pre: "{{Header",
post:"}}"
} } } } });
/* --- Enable button Notes:header| */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Needs": { label: 'Header', type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
action: { type: 'encapsulate', options: { pre: " " } } } } });
/* --- Enable button Notes:footer */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Footer": { label: 'Footer', type: 'button',
icon: 'http://www.sm-201.org/a/images/3/31/Editor_f.png',
action: { type: 'encapsulate', options: { pre: "{{Footer",
post:"}}"
} } } } });
/* --- Enable button Notes:Category:needs */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Needs": { label: 'Notes', type: 'button',
icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
action: { type: 'encapsulate', options: { pre: "{{Needs",
post:"}}"
} } } } });
/* --- Enable button model */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Model": { label: 'Model', type: 'button',
icon: 'http://www.sm-201.org/a/images/6/6d/Editor_m_.png',
action: { type: 'encapsulate', options: { pre: "{{Infobox model",
post:""
} } } } });
/* --- Enable button Pornstud */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Pornstud": { label: 'Model', type: 'button',
icon: 'http://www.sm-201.org/a/images/9/9f/Button_male.png',
action: { type: 'encapsulate', options: { pre: "{{Infobox pornstud",
post:""
} } } } });
/* --- Enable Pornstar */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Model": { label: 'Model', type: 'button', icon: 'http://www.sm-201.org/a/images/e/ea/Cat-model.jpg', action: { type: 'encapsulate', options: { pre: '{{Infobox pornstar', post: } } } } } );
/* --- Enable button Notes:toporn */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "toporn": { label: , type: 'button', icon: 'http://sm-201.org/a/images/1/19/Editor_t.png', action: { type: 'encapsulate', options: { pre: '{{toporn|add=} }', post: } } } } } );
/* --- Enable button Notes:ok */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Notes',
tools: {
"Needs": {
label: 'sa-porn',
type: 'button',
icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',
action: { type: 'encapsulate', options: { pre: "{{sa-porn",
post:"}}"
} } } } });
/* --- Enable button Notes:ltx8 */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "ltx8": { label: 'ltx8', type: 'button',
icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png',
action: { type: 'encapsulate', options: { pre: "{{ltx8|Latex|Latex shopping|Latex clothing|Latex stores|Latex online|Latex clothing designers|Latex clothing manufacturers|Latex suppliers", post:"" } } } } });
/* --- Enable button Notes:Heads2 */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "A2": { label: 'Heads2', type: 'button', icon: 'http://www.sm-201.org/a/images/e/e9/Button_headline2.png', action: { type: 'encapsulate', options: { pre: '==', post: '==' } } } } } );
/* --- Enable button Notes:dagger */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'SM-201',
group: 'Notes',
tools: {
"dagger": {
label: 'dagger',
type: 'button',
icon: 'http://www.sm-201.org/a/images/b/b1/Button_dagger.png',
action: {
type: 'encapsulate',
options: {
pre: '†',
post:
}
}
}
}
} );
/* --- Enable button Notes:Wiki:@ */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Needs": { label: 'Wikimain', type: 'button',
icon: 'http://www.sm-201.org/a/images/8/82/Wikilogo-20.png',
action: { type: 'encapsulate', options: { pre: "
- Wikipedia article: [[wikipedia:",
post:"|", post:"]]"
} } } } });
/* --- Enable button Notes:Redirect */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Redirect": { label: 'Redirect', type: 'button',
icon: 'http://www.sm-201.org/a/images/c/c8/Button_redirect.png',
action: { type: 'encapsulate', options: { pre: "#REDIRECT [[",
post:"]]"
} } } } });
/* --- Enable button Notes:SHP matrix */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "SHP": { label: 'SHP', type: 'button',
icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
action: { type: 'encapsulate', options: { pre: "
",
post:""
} } } } });
/* --- Enable button Notes:Defaultsort */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "{DS}": { label: '(DS)', type: 'button',
icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png',
action: { type: 'encapsulate', options: { pre: "" } } } } });
/* --- Enable button Notes:insert image */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "Needs": { label: 'image:', type: 'button',
icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png',
action: { type: 'encapsulate', options: { pre: "Image:",
post:""
} } } } });
/* --- Enable button mt - MT coloumn */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Notes', tools: { "MT": { label: 'MT', type: 'button',
icon: 'http://www.sm-201.org/a/images/a/ad/Button_mt.png',
action: { type: 'encapsulate', options: { pre: "|| ",
post:""
} } } } });
/* --- Enable button Notes:@wr */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Notes',
tools: {
"Needs": {
label: '{wr}',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/eb/Button_@.png',
action: { type: 'encapsulate', options: { pre: "{{@wr",
post:"}}"
} } } } });
/* Enable group:Links: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', 'groups': { 'Links': { 'label': 'Links' } } } );
/* --- Enable Links:External links*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Links',
tools: {
'External': {
label: 'External',
type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e3/Editor_e.png',
action: {
type: 'encapsulate',
options: {
pre: "== External links ==",
post: ,
}
}
}
}
});
/* ---- Enable Links:Sanity */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Links', tools: { "Links": { label: 'Sanity', type: 'button',
icon: 'http://www.sm-201.org/a/images/6/60/Editor_s.png',
action: { type: 'encapsulate', options: { pre: "
- Sanity check was run on this list on 02/21 by R/
",
post:""
} } } } });
/* ---- Enable Links:Site ok */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Links', tools: { "Links": { label: 'Link OK', type: 'button',
icon: 'http://www.sm-201.org/a/images/f/f1/Editor_y.png',
action: { type: 'encapsulate', options: { pre: "( X site active 02/21 R/ ) ",
post:""
} } } } });
/* ---- Enable Links:Red */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Links', tools: { "Links": { label: 'Footer', type: 'button',
icon: 'http://www.sm-201.org/a/images/0/0e/Editor_n.png',
action: { type: 'encapsulate', options: { pre: "( X Site down 02/21 R/ ) ",
post:""
} } } } });
/* --- Enable Links:Strike through*/
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'SM-201',
group: 'Links',
tools: {
"Strike": {
label: 'Strike',
type: 'button',
icon: 'http://www.sm-201.org/a/images/c/c9/Button_strike.png',
action: {
type: 'encapsulate',
options: {
pre: '',
post: '',
}
}
}
}
});
/* ---- Enable Links:<cr> */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'SM-201', group: 'Links', tools: { "Links": { label: '<cr>', type: 'button',
icon: 'http://www.sm-201.org/a/images/c/c7/Button_cr.png',
action: {
type: 'encapsulate',
options: {
pre: "
",
post:""
} } } } });
/* Enable Group:Files: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', 'groups': { 'Files': { 'label': 'Files' } } } );
/* --- Enable Files:Copyright unknown */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Files', tools: { "Copy": { label: 'Copy', type: 'button', icon: 'http://www.sm-201.org/a/images/2/22/Button-copy.jpg', action: { type: 'encapsulate', options: { pre: 'Copyright info not available/ownership unkown', post: } } } } } );
/* --- Enable Files:Mo/Yr */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Files', tools: { "Date": { label: 'Date', type: 'button', icon: 'http://www.sm-201.org/a/images/0/01/Button-cal.jpg', action: { type: 'encapsulate', options: { pre: '02/2120', post: } } } } } );
/* --- Enable Files:Thumbnail */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Files', tools: { "Thumb": { label: 'Thumb', type: 'button', icon: 'http://www.sm-201.org/a/images/6/6f/Button_thumb.jpg', action: { type: 'encapsulate', options: { pre: '[[File:', post: '|thumb|right|200px| ]]' } } } } } );
/* --- Enable Files:Gallery */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'SM-201', group: 'Files', tools: { "Gallery": { label: 'Gallery', type: 'button', icon: 'http://www.sm-201.org/a/images/3/35/Editor_g.png', action: { type: 'encapsulate', options: {
pre: '
- ',
'
} } } } } );
/* =========================================== Add "Other" Buttons==== */
/* Enable section:Categories */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'Cats', 'groups': { 'Cats': { 'label': 'Cats' } } } );
/* Enable group:Other: */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
'groups': { 'Also': { 'label': 'Also' } } } );
/* --- Enable button Cats:Also:Mast */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "ASFR": { label: 'ASFR', type: 'button',
icon: 'http://sm-201.org/a/images/e/e0/Editor_a.png',
action: { type: 'encapsulate', options: { pre: "{{Sex asfr",
post:"}}"
} } } } });
/* --- Enable button Other:DS roles */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "{DS}": { label: 'DS roles', type: 'button',
icon: 'http://www.sm-201.org/a/images/1/18/Editor_d.png',
action: { type: 'encapsulate', options: { pre: "{{DS roles",
post:"}}"
} } } } });
/* --- Enable button Other:Also:Human sexuality */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "Human": { label: 'Human', type: 'button',
icon: 'http://www.sm-201.org/a/images/e/e4/Editor_h.png',
action: { type: 'encapsulate', options: { pre: "{{Human sex",
post:"}}"
} } } } });
/* --- Enable button Other:DS roles */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "ID": { label: 'Sex ids', type: 'button',
icon: 'http://www.sm-201.org/a/images/5/5e/Editor_i.png',
action: { type: 'encapsulate', options: { pre: "{{Sex ids",
post:"}}"
} } } } });
/* --- Enable button Other:Also:Sex Industry */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "Industy": { label: 'Industry', type: 'button',
icon: 'http://www.sm-201.org/a/images/9/9e/Button_$.png',
action: { type: 'encapsulate', options: { pre: "{{Sex Industry",
post:"}}"
} } } } });
/* --- Enable button Other:Also:LGBT slang */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Also',
tools: {
"LGBT slang": {
label: 'LGBT slang',
type: 'button',
icon: 'http://www.sm-201.org/a/images/1/16/Editor_l.png',
action: { type: 'encapsulate', options: { pre: "{{LGBT slang",
post:"}}"
} } } } });
/* --- Enable button Other:Also:Other */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Also',
tools: {
"sa-off": {
label: 'sa-off',
type: 'button',
icon: 'http://www.sm-201.org/a/images/b/b6/Editor_o.png',
action: { type: 'encapsulate', options: { pre: "{{sa-offenses",
post:"}}"
} } } } });
/* ---- Enable Footers:Porn */ $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'Other', group: 'Also', tools: { "Porno": { label: 'Porno', type: 'button',
icon: 'http://www.sm-201.org/a/images/b/bf/Editor_p.png',
action: { type: 'encapsulate', options: { pre: "{{Porno",
post: "}}"
} } } } });
/* --- Enable button Other:Also:Relationship */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Also',
tools: {
"Relationship": {
label: 'Relationship',
type: 'button',
icon: 'http://www.sm-201.org/a/images/d/d5/Editor_r.png',
action: { type: 'encapsulate', options: { pre: "{{Relationships",
post:"}}"
} } } } });
/* --- Enable button Cats:Also:Sex terms */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Also',
tools: {
"Sexual terms": {
label: 'Sexual terms',
type: 'button',
icon: 'http://sm-201.org/a/images/1/19/Editor_t.png',
action: { type: 'encapsulate', options: { pre: "{{Sexual terms",
post:"}}"
} } } } });
/* --- Enable button Refs:<reflist> */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Also',
tools: {
"BDSM": {
label: 'BDSM',
type: 'button',
icon: 'http://www.sm-201.org/a/images/3/32/Button_reflist.png',
action: { type: 'encapsulate', options: { pre: "{{Outline of BDSM",
post:"}}"
} } } } });
/* Enable Group:Format: */
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'Other',
'groups': {
'Tables': {
'label': 'Table'
}
}
} );
/* --- Enable button Expl */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Expl 1": {
label: 'Expl 1 !',
type: 'button',
icon: 'http://sm-201.org/a/images/a/af/Button_%21.png',
action: { type: 'encapsulate', options: { pre: "{{!",
post:"}}"
} } } } });
/* --- Enable button Expl */
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'Other',
group: 'Table',
tools: {
"Expl 2": {
label: 'Expl 1 !',
type: 'button',
icon: 'http://sm-201.org/a/images/b/b6/Button_%21%21.png',
action: { type: 'encapsulate', options: { pre: "{{!!",
post:"}}"
} } } } });
/* Leave everything below this line alone ===================== */
};
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */ if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) { mw.loader.using( 'user.options' ).then( function () { // This can be the string "0" if the user disabled the preference (phab:T54542#555387) if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) { $.when( mw.loader.using( 'ext.wikiEditor' ), $.ready ).then( customizeToolbar ); } } ); }