mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
7f4645bbe0
Generally the default button margin on the parts is 24px. The only exception are the placeholder and wikitext when they are the last parts in the outline. Bug: T312644 Change-Id: Ie513bf1c022b2696cc92aacbbca59ddf6e55043e
27 lines
1 KiB
JavaScript
27 lines
1 KiB
JavaScript
/**
|
|
* Top-level part in the template dialog sidebar, representing a raw wikitext
|
|
* snippet.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.MWTransclusionOutlinePartWidget
|
|
*
|
|
* @constructor
|
|
* @param {ve.dm.MWTransclusionContentModel} content
|
|
*/
|
|
ve.ui.MWTransclusionOutlineWikitextWidget = function VeUiMWTransclusionOutlineWikitextWidget( content ) {
|
|
// Parent constructor
|
|
ve.ui.MWTransclusionOutlineWikitextWidget.super.call( this, content, {
|
|
icon: 'wikiText',
|
|
label: ve.msg( 'visualeditor-dialog-transclusion-wikitext' ),
|
|
ariaDescriptionUnselected: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria' ),
|
|
ariaDescriptionSelected: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria-selected' ),
|
|
ariaDescriptionSelectedSingle: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria-selected-single' )
|
|
} );
|
|
|
|
this.$element.addClass( 've-ui-mwTransclusionOutlineWikitextWidget' );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWTransclusionOutlineWikitextWidget, ve.ui.MWTransclusionOutlinePartWidget );
|