Expand all

ve.dm.MWExternalLinkAnnotation

Extends

Constructor

new ve.dm.MWExternalLinkAnnotation(element) #

DataModel MediaWiki external link annotation.

Example HTML sources:

<a rel="mw:ExtLink" class="external free" href="http://example.com">http://example.com</a>;
<a rel="mw:ExtLink" class="external text" href="http://example.com">Link content</a>
<a rel="mw:ExtLink" class="external autonumber" href="http://example.com"></a>;
<a rel="mw:WikiLink/Interwiki" href="http://en.wikipedia.org/wiki/Foo">en:Foo</a>;

Each example is semantically slightly different, but they don't need special treatment (yet).

Parameters:

Name Type Description
element Object
Source:
DataModel MediaWiki external link annotation.

Methods

getComparableHtmlAttributes() #

getComparableObject() → {Object} #