User:Micki/extratoolbarbuttons.js: Difference between revisions
Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 205: | Line 205: | ||
'group': 'format', |
'group': 'format', |
||
'tools': { |
'tools': { |
||
' |
'Spam': { |
||
label: ' |
label: 'Spam', |
||
type: 'button', |
type: 'button', |
||
icon: 'http://upload.wikimedia.org/wikipedia/commons/ |
icon: 'http://upload.wikimedia.org/wikipedia/commons/f/fb/Button_spam2.png', |
||
action: { |
action: { |
||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
pre: "{{ |
pre: "{{subst:Spam}}", |
||
post: " |
post: "" |
||
} |
} |
||
} |
} |
||
Line 234: | Line 234: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
pre: "{{subst:test}}", |
pre: "{{subst:test}}~~~~", |
||
post: "" |
post: "" |
||
} |
} |
Revision as of 08:51, 9 June 2011
/*<nowiki><pre>*/
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Template': {
label: 'Šablon',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/2/20/Toolbaricon_transclude.png',
action: {
type: 'encapsulate',
options: {
pre: "{{",
post: "}}"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'External link': {
label: 'Spoljašnja veza',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/5/53/Button_ext_link.png',
action: {
type: 'encapsulate',
options: {
pre: "[",
post: "]"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Internal link': {
label: 'Unutrašnja veza',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/9/97/Button_int_link.png',
action: {
type: 'encapsulate',
options: {
pre: "[[",
post: "]]"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Link': {
label: 'Veza',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/0/0c/Button_Link_DifferentName.png',
action: {
type: 'encapsulate',
options: {
pre: "[[|",
post: "]]"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Vertical line': {
label: 'Uspravna crta',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png',
action: {
type: 'encapsulate',
options: {
pre: "|",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Underline': {
label: 'Podvučen tekst',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/f/fd/Button_underline.png',
action: {
type: 'encapsulate',
options: {
pre: "<u>",
post: "</u>"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Strikethrough': {
label: 'Precrtan tekst',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/c9/Button_strike.png',
action: {
type: 'encapsulate',
options: {
pre: "<s>",
post: "</s>"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Category': {
label: 'Kategorija',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/b/b6/Button_category_link.png',
action: {
type: 'encapsulate',
options: {
pre: "[[Category:",
post: "]]"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Advanced image': {
label: 'Slika 250px',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_advanced_image.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:",
post: "|thumb|right|250px|Opis]]"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Spam': {
label: 'Spam',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/f/fb/Button_spam2.png',
action: {
type: 'encapsulate',
options: {
pre: "{{subst:Spam}}",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Test': {
label: 'Test',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/e/e1/Button_problematic.png',
action: {
type: 'encapsulate',
options: {
pre: "{{subst:test}}~~~~",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Smile': {
label: 'Smeje se',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/f/f5/Button_smiley_face_grin.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-grin.svg|20px]]",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Winking': {
label: 'Namiguje',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-wink.svg|20px]]",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Unsigned post': {
label: 'Komentar bez potpisa',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/3/38/Button_plume.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Unsigned|",
post: "}}"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Welcome': {
label: 'Dobrodošlica',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/e/e3/Button_bienvenido.png',
action: {
type: 'encapsulate',
options: {
pre: "{{subst:welcome}}",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Off-topic': {
label: 'Off-topic',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/d/da/Broken_conversation_button.png',
action: {
type: 'encapsulate',
options: {
pre: "{{subst:offtopic}}",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Signature': {
label: 'Potpis',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/79/Insert-signature.png',
action: {
type: 'encapsulate',
options: {
pre: " ~~~~",
post: ""
}
}
}
}
} );
} );
}
/*</nowiki></pre>*/