Jump to content

User:Sillybillypiggy/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sillybillypiggy (talk | contribs) at 18:30, 3 July 2010. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'strikethrough': {
					label: 'Strike',
					type: 'button',
					icon: '/media/wikipedia/commons/9/95/Toolbaricon_strike_s.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': {
				'hline': {
					label: 'Horizontal line',
					type: 'button',
					icon: '/media/wikipedia/commons/b/b4/Toolbaricon_rule.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "----",
							ownline: true
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'comment': {
					label: 'HTML comment',
					type: 'button',
					icon: '/media/wikipedia/commons/e/e7/Toolbaricon_hidden.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': {
				'math': {
					label: 'Math',
					type: 'button',
					icon: '/media/wikipedia/commons/1/1c/Toolbaricon_math.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "<math>",
							post: "</math>"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ); {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'blockquote': {
					label: 'Blockquote',
					type: 'button',
					icon: '/media/wikipedia/commons/4/4e/Toolbaricon_quote.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "<blockquote>",
							post: "</blockquote>"
						}
					}
				}
			}
		} );
	} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j(document).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'advanced',
			'group': 'format',
			'tools': {
				'transclude': {
					label: 'Transclude',
					type: 'button',
					icon: '/media/wikipedia/commons/2/20/Toolbaricon_transclude.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "{{",
							post: "}}"
						}
					}
				}
			}
		} );
	} );
}<br/>

if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
	$j( document ).ready( function() {
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'sections': {
				'emoticons': {
					'type': 'toolbar',
					'label': 'Emoticons'
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'groups': {
				'emoticons': {
					'label': 'Emoticons'
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'smile': {
					label: 'Smile',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/7/79/Face-smile.svg/25px-Face-smile.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-smile.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'frown': {
					label: 'Frown',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/0/06/Face-sad.svg/25px-Face-sad.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-sad.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'plain': {
					label: 'Plain',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/d/df/Face-plain.svg/25px-Face-plain.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-plain.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'wink': {
					label: 'Wink',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/5/57/Face-wink.svg/25px-Face-wink.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-wink.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'tongue': {
					label: 'Tongue',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/7/7e/Face-tongue.svg/25px-Face-tongue.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-tongue.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'surprised': {
					label: 'Surprised',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/7/79/Face-surprise.svg/25px-Face-surprise.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-surprise.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'grin': {
					label: 'Grin',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/b/bc/Face-grin.svg/25px-Face-grin.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-grin.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'braces': {
					label: 'Braces grin',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/6/6e/Face-grin-braces.svg/25px-Face-grin-braces.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-grin-braces.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'crying': {
					label: 'Crying',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/e/e9/Face-crying.svg/25px-Face-crying.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-crying.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'blush': {
					label: 'Blush',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/4/4d/Face-blush.svg/25px-Face-blush.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-blush.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'laughing': {
					label: 'Laughing',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/1/15/Face-smile-big.svg/25px-Face-smile-big.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-smile-big.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'kiss': {
					label: 'Kiss',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/a/a8/Face-kiss.svg/25px-Face-kiss.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-kiss.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'glasses': {
					label: 'Glasses',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/0/0f/Face-glasses.svg/25px-Face-glasses.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-glasses.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'nerd': {
					label: 'Nerd',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/0/03/Face-grin_expert.svg/25px-Face-grin_expert.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-grin_expert.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'angel': {
					label: 'Angel',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/d/d5/Face-angel.svg/25px-Face-angel.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-angel.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'devil': {
					label: 'Devil',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/7/70/Face-devil-grin.svg/25px-Face-devil-grin.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-devil-grin.svg|20px]]"
						}
					}
				}
			}
		} );
		$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'emoticons',
			'group': 'emoticons',
			'tools': {
				'monkey': {
					label: 'Monkey',
					type: 'button',
					icon: '/media/wikipedia/commons/thumb/b/bc/Face-monkey.svg/25px-Face-monkey.svg.png',
					action: {
						type: 'encapsulate',
						options: {
							pre: "[[File:Face-monkey.svg|20px]]"
						}
					}
				}
			}
		} );
	} );
}