2014-11-23 18:04:00 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki SequenceRegistry registrations.
|
|
|
|
*
|
|
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
ve.ui.sequenceRegistry.register(
|
2014-11-26 01:12:31 +00:00
|
|
|
new ve.ui.Sequence( 'wikitextLink', 'link', '[[', 2 )
|
2014-11-23 18:04:00 +00:00
|
|
|
);
|
|
|
|
ve.ui.sequenceRegistry.register(
|
2014-11-26 01:12:31 +00:00
|
|
|
new ve.ui.Sequence( 'wikitextTemplate', 'transclusion', '{{', 2 )
|
2014-11-23 18:04:00 +00:00
|
|
|
);
|
|
|
|
ve.ui.sequenceRegistry.register(
|
|
|
|
new ve.ui.Sequence( 'wikitextItalic', 'mwWikitextWarning', '\'\'' )
|
|
|
|
);
|
|
|
|
ve.ui.sequenceRegistry.register(
|
|
|
|
new ve.ui.Sequence( 'wikitextNowiki', 'mwWikitextWarning', '<nowiki' )
|
|
|
|
);
|
|
|
|
ve.ui.sequenceRegistry.register(
|
|
|
|
new ve.ui.Sequence( 'wikitextRef', 'mwWikitextWarning', '<ref' )
|
|
|
|
);
|
|
|
|
ve.ui.sequenceRegistry.register(
|
|
|
|
new ve.ui.Sequence( 'wikitextSig', 'mwWikitextWarning', '~~~' )
|
|
|
|
);
|
|
|
|
ve.ui.sequenceRegistry.register(
|
2014-11-26 01:42:37 +00:00
|
|
|
new ve.ui.Sequence( 'wikitextHeading', 'heading2', [ { type: 'paragraph' }, '=', '=' ], 2 )
|
2014-11-23 18:04:00 +00:00
|
|
|
);
|
|
|
|
ve.ui.sequenceRegistry.register(
|
2014-11-23 18:07:15 +00:00
|
|
|
new ve.ui.Sequence( 'numberHash', 'numberWrapOnce', [ { type: 'paragraph' }, '#', ' ' ], 2 )
|
2014-11-23 18:04:00 +00:00
|
|
|
);
|
2014-11-26 00:47:29 +00:00
|
|
|
ve.ui.sequenceRegistry.register(
|
|
|
|
new ve.ui.Sequence( 'wikitextDefinition', 'mwWikitextWarning', [ { type: 'paragraph' }, ';' ] )
|
|
|
|
);
|
|
|
|
ve.ui.sequenceRegistry.register(
|
2014-11-26 01:13:11 +00:00
|
|
|
new ve.ui.Sequence( 'wikitextDescription', 'blockquote', [ { type: 'paragraph' }, ':' ], 1 )
|
2014-11-26 00:47:29 +00:00
|
|
|
);
|