mediawiki-extensions-Visual.../modules/ve-mw/dm/metaitems/ve.dm.MWIndexMetaItem.js
Ed Sanders 41cce182fe docs: Escape __magicwords__ to avoid bold formatting by markdown
Change-Id: Ic4660b12091429dd3f34d241b326350049a0019a
2024-04-30 22:32:03 +01:00

36 lines
864 B
JavaScript

/*!
* VisualEditor DataModel MWIndexMetaItem class.
*
* @copyright See AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* DataModel index meta item (for `__INDEX__` and `__NOINDEX__`).
*
* @class
* @extends ve.dm.MWFlaggedMetaItem
* @constructor
* @param {Object} [element] Reference to element in meta-linmod
*/
ve.dm.MWIndexMetaItem = function VeDmMWIndexMetaItem() {
// Parent constructor
ve.dm.MWIndexMetaItem.super.apply( this, arguments );
};
/* Inheritance */
OO.inheritClass( ve.dm.MWIndexMetaItem, ve.dm.MWFlaggedMetaItem );
/* Static Properties */
ve.dm.MWIndexMetaItem.static.name = 'mwIndex';
ve.dm.MWIndexMetaItem.static.group = 'mwIndex';
ve.dm.MWIndexMetaItem.static.matchRdfaTypes = [ 'mw:PageProp/index', 'mw:PageProp/noindex' ];
/* Registration */
ve.dm.modelRegistry.register( ve.dm.MWIndexMetaItem );