User:Micki/extratoolbarbuttons.js: Difference between revisions
Content deleted Content added
mNo edit summary |
No edit summary |
||
Line 191: | Line 191: | ||
options: { |
options: { |
||
pre: "[[File:", |
pre: "[[File:", |
||
post: "|thumb| |
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': { |
|||
'Delete': { |
|||
label: 'Speedy deletion', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/5/50/Button_tidyman.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{delete|", |
|||
post: "}}" |
|||
} |
} |
||
} |
} |
||
Line 212: | Line 234: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
pre: "{{subst:test}} |
pre: "{{subst:test}}", |
||
post: "" |
post: "" |
||
} |
} |
||
Line 293: | Line 315: | ||
'group': 'format', |
'group': 'format', |
||
'tools': { |
'tools': { |
||
' |
'Welcome': { |
||
label: ' |
label: 'Dobrodošlica', |
||
type: 'button', |
type: 'button', |
||
icon: 'http://upload.wikimedia.org/wikipedia/commons/ |
icon: 'http://upload.wikimedia.org/wikipedia/commons/e/e3/Button_bienvenido.png', |
||
action: { |
action: { |
||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
pre: " |
pre: "{{subst:welcome}}", |
||
post: "" |
post: "" |
||
} |
} |
||
Line 315: | Line 337: | ||
'group': 'format', |
'group': 'format', |
||
'tools': { |
'tools': { |
||
' |
'Off-topic': { |
||
label: ' |
label: 'Off-topic', |
||
type: 'button', |
type: 'button', |
||
icon: 'http://upload.wikimedia.org/wikipedia/commons/ |
icon: 'http://upload.wikimedia.org/wikipedia/commons/d/da/Broken_conversation_button.png', |
||
action: { |
action: { |
||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
pre: "{{ |
pre: "{{subst:offtopic}}", |
||
post: " |
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: "" |
|||
} |
} |
||
} |
} |
Revision as of 08:11, 18 November 2010
/*<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': {
'Delete': {
label: 'Speedy deletion',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/5/50/Button_tidyman.png',
action: {
type: 'encapsulate',
options: {
pre: "{{delete|",
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>*/