MediaWiki:Common.js

From Kustomrama
Jump to: navigation, search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Toolbar customization */
// see https://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization

$( '#wpTextbox1' ).on( 'wikiEditor-toolbar-doneInitialSections', function () {

	$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
		'section': 'advanced',
		'group': 'insert',
		'tools': {
			'reference': {
				label: 'Insert reference', // or use labelMsg for a localized label, see above
				type: 'button',
				icon: 'http://www.kustomrama.com/images/f/f7/Button_referencesR.png',
				action: {
					type: 'encapsulate',
					options: {
						pre: "<ref>", // the text to use to mark the beginning of the block
						post: "</ref>", // the text to use to mark the end of the block (if any)
						periMsg: "Reference" // the sample text to place inside the block
					}
				}
			},
			'referencesec': {
				label: 'Insert reference section', // or use labelMsg for a localized label, see above
				type: 'button',
				icon: 'http://www.kustomrama.com/images/2/2b/Button_ref_inscription.png',
				action: {
					type: 'encapsulate',
					options: {
						pre: "\n\n== References ==\n", // the text to use to mark the beginning of the block
						post: "<references />" // the text to use to mark the end of the block (if any)
					}
				}
			}
		}
	} );

} );



 

Did you enjoy this article?

Kustomrama is an encyclopedia dedicated to preserve, share and protect traditional hot rod and custom car history from all over the world.




Can you help us make this article better?

Please get in touch with us at mail@kustomrama.com if you have additional information or photos to share about MediaWiki:Common.js.


This article was made possible by:

SunTec Auto Glass - Auto Glass Services on Vintage and Classic Cars
Finding a replacement windshield, back or side glass can be a difficult task when restoring your vintage or custom classic car. It doesn't have to be though now with auto glass specialist companies like www.suntecautoglass.com. They can source OEM or OEM-equivalent glass for older makes/models; which will ensure a proper fit every time. Check them out for more details!

Do you want to see your company here? Click here for more info about how you can advertise your business on Kustomrama.


Personal tools
Help us
facebook