The title of the page, where this template is defined
The properties of this template
The source line number of this property
The properties of this template
The properties of this template
Returns an annotation.
Returns an annotation.
key of the annotation
The value of the annotation as an option if an annotation with the given key exists. None, otherwise.
The source line number of this property
The source line number of this property
CAUTION: code outside this class should change the parent only under very rare circumstances.
CAUTION: code outside this class should change the parent only under very rare circumstances.
Retrieves a property by its key.
Retrieves a property by its key. As in Wikipedia the search is case insensitive in the first character and case sensitive in the rest.
The key of the wanted property.
PropertyNode The propertyNode or None if no property with a given key has been found.
Retrieves some text from this node.
Retrieves some text from this node. Only works on a TextNode or a Node that has a single TextNode child. Returns None iff this node is not a TextNode and contains child nodes other than a single TextNode.
TODO: the behavior of this method is weird, but I don't dare to change it because existing code may rely on its current behavior. New code should probably use toPlainText.
Retrieves the root node of this AST.
Retrieves the section of this node
Retrieves the section of this node
The section of this node, may be null
Sets a user-defined annotation.
Sets a user-defined annotation.
The key of the annotation
The value of the annotation
IRI of source page and line number.
IRI of source page and line number.
The title of the page, where this template is defined
Get plain text content of this node and all child nodes, without markup.
Get plain text content of this node and all child nodes, without markup. Since templates are not expanded, this will not work well for templates.
Convert back to original (or equivalent) wiki markup string.
Convert back to original (or equivalent) wiki markup string.
Represents a template.
The title of the page, where this template is defined
The properties of this template
The source line number of this property