Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7401580
ve.dm.MWStaticRedirectMetaItem.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
ve.dm.MWStaticRedirectMetaItem.js
View Options
/*!
* VisualEditor DataModel MWStaticRedirectMetaItem class.
*
* @copyright See AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* DataModel enable static redirect meta item.
*
* @class
* @extends ve.dm.MetaItem
* @constructor
* @param {Object} element Reference to element in meta-linmod
*/
ve
.
dm
.
MWStaticRedirectMetaItem
=
function
VeDmMWStaticRedirectMetaItem
()
{
// Parent constructor
ve
.
dm
.
MWStaticRedirectMetaItem
.
super
.
apply
(
this
,
arguments
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
dm
.
MWStaticRedirectMetaItem
,
ve
.
dm
.
MetaItem
);
/* Static Properties */
ve
.
dm
.
MWStaticRedirectMetaItem
.
static
.
name
=
'mwStaticRedirect'
;
ve
.
dm
.
MWStaticRedirectMetaItem
.
static
.
group
=
'mwStaticRedirect'
;
ve
.
dm
.
MWStaticRedirectMetaItem
.
static
.
matchTagNames
=
[
'meta'
];
ve
.
dm
.
MWStaticRedirectMetaItem
.
static
.
matchRdfaTypes
=
[
'mw:PageProp/staticredirect'
];
ve
.
dm
.
MWStaticRedirectMetaItem
.
static
.
toDataElement
=
function
()
{
return
{
type
:
this
.
name
};
};
ve
.
dm
.
MWStaticRedirectMetaItem
.
static
.
toDomElements
=
function
(
dataElement
,
doc
)
{
const
meta
=
doc
.
createElement
(
'meta'
);
meta
.
setAttribute
(
'property'
,
'mw:PageProp/staticredirect'
);
return
[
meta
];
};
/* Registration */
ve
.
dm
.
modelRegistry
.
register
(
ve
.
dm
.
MWStaticRedirectMetaItem
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 21, 17:34 (15 h, 22 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f0/d5/ce622beca3972da4f5ab757247c9
Default Alt Text
ve.dm.MWStaticRedirectMetaItem.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment