Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5990926
visualEditorIntegration.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
visualEditorIntegration.js
View Options
/*!
* VisualEditor DataModel MWDisambiguationMetaItem class.
*
* @copyright 2011-2014 VisualEditor Team
* @license The MIT License (MIT); see COPYING
*/
/**
* DataModel disambiguation meta item (for __DISAMBIG__).
*
* @class
* @extends ve.dm.MetaItem
* @constructor
* @param {Object} element Reference to element in meta-linmod
*/
ve
.
dm
.
MWDisambiguationMetaItem
=
function
VeDmMWDisambiguationMetaItem
(
element
)
{
// Parent constructor
ve
.
dm
.
MetaItem
.
call
(
this
,
element
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
dm
.
MWDisambiguationMetaItem
,
ve
.
dm
.
MetaItem
);
/* Static Properties */
ve
.
dm
.
MWDisambiguationMetaItem
.
static
.
name
=
'mwDisambiguation'
;
ve
.
dm
.
MWDisambiguationMetaItem
.
static
.
group
=
'mwDisambiguation'
;
ve
.
dm
.
MWDisambiguationMetaItem
.
static
.
matchTagNames
=
[
'meta'
];
ve
.
dm
.
MWDisambiguationMetaItem
.
static
.
matchRdfaTypes
=
[
'mw:PageProp/disambiguation'
];
ve
.
dm
.
MWDisambiguationMetaItem
.
static
.
toDataElement
=
function
()
{
return
{
type
:
this
.
name
};
};
ve
.
dm
.
MWDisambiguationMetaItem
.
static
.
toDomElements
=
function
(
dataElement
,
doc
)
{
const
meta
=
doc
.
createElement
(
'meta'
);
meta
.
setAttribute
(
'property'
,
'mw:PageProp/disambiguation'
);
return
[
meta
];
};
/* Registration */
ve
.
dm
.
modelRegistry
.
register
(
ve
.
dm
.
MWDisambiguationMetaItem
);
ve
.
ui
.
MWSettingsPage
.
static
.
addMetaCheckbox
(
'mwDisambiguation'
,
mw
.
msg
(
'visualeditor-dialog-meta-settings-disambiguation-label'
)
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 4, 01:42 (3 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0c/b0/83dc4eb9c17a2d36cbc2184f5cf8
Default Alt Text
visualEditorIntegration.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment