mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-04 18:58:37 +00:00
d77728bd4f
Depends-On: I385dca1d95033961d3844e888521750443e49c95 Change-Id: Ic515b41863bcf2ac4daa0272f67e1d30238a4b85
25 lines
962 B
JavaScript
25 lines
962 B
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' )
|
|
} );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWTransclusionOutlineWikitextWidget, ve.ui.MWTransclusionOutlinePartWidget );
|