Super constructor for AttributionNotice subclasses.
The ParsoidTransclusionTemplateNode of this notice.
Protected
_rowsAll the rows of this template.
Readonly
idA unique ID for this template. Derived from the template name and its Parsoid about
.
Readonly
nameA unique name for this template. Derived from the Parsoid about
for its node.
Readonly
nodeThe template transclusion node that serves as a reference to an element on the Parsoid DOM.
The HTMLElement of the node
This template's i
variable, used to identify this template in
the template's parts
(data-mw
).
The ParsoidDocument handling this notice (specifically its node).
This template's rows.
Provides low-level access to a template's data-mw
entry. When possible,
use functions from .node
instead, as these are much more stable.
The callback for data-modifying operations.
Adds a row to this template.
The row to add.
Deletes a row to this template.
The row to delete.
Private
extractPrivate
Extracts parameters from this.node
and returns a row.
The parameter names to check for
The suffix of the parameter
A row, or null if no parameters were found.
Generates an OOUI PageLayout for this notice. Used by the main dialog to generate pages. Do not cache - the dialog is responsible for caching.
Private
hasPrivate
Checks if this current template has row parameters with a given suffix, or no suffix if not supplied.
The parameter names to check for
The suffix of the parameter
true
if parameters exist
Copies in the rows of another SplitArticleTemplate, and optionally deletes that template or clears its contents.
The template to copy from.
Options for this merge.
Optional
clear?: booleanWhether the reference template's rows will be cleared after merging.
Optional
delete?: booleanWhether the reference template will be deleted after merging.
Generated using TypeDoc
Represents a single {{split article}} template.