MediaWiki:Common.js

var collapseCaption = 'hide' var expandCaption = 'show'

if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) { mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {		$textarea.wikiEditor( 'addToToolbar', { section: 'advanced', group: 'insert', tools: { patchtable: { label: 'Patch history table', type: 'button', icon: 'https://upload.wikimedia.org/wikipedia/commons/d/dc/Vector_toolbar_insert_table_button.png', action: { type: 'encapsulate', options: { pre: '{| class="wikitable" style="text-align: center;"\n! width=12% | Patch\n! Adjustments\n|-\n|rowspan=2| Patch XX\n|- align="left"\n||\n|}', ownline: true }				}			}		}	} );	} ); }