Class: TokenStreamPatcher

wt2html/tt/TokenStreamPatcher~TokenStreamPatcher()

new TokenStreamPatcher()

...

Extends

Methods

_encapsulateTemplate()

Process the main template element, including the arguments.

Process the main template element, including the arguments.

Inherited From:
Source:

_expandTemplate()

Fetch, tokenize and token-transform a template after all arguments and the target were expanded.

Fetch, tokenize and token-transform a template after all arguments and the target were expanded.

Inherited From:
Source:

_fetchTemplateAndTitle()

Fetch a template.

_onChunk()

Handle chunk emitted from the input pipeline after feeding it a template.

Handle chunk emitted from the input pipeline after feeding it a template.

Inherited From:
Source:

_onEnd()

Handle the end event emitted by the parser pipeline after fully processing the template source.

Handle the end event emitted by the parser pipeline after fully processing the template source.

Inherited From:
Source:

_parserFunctionsWrapper()

Parser functions also need template wrapping.

Parser functions also need template wrapping.

Inherited From:
Source:

_startTokenPipeline()

Process a fetched template source to a token stream.

Process a fetched template source to a token stream.

Inherited From:
Source:

fetchExpandedTpl()

Fetch the preprocessed wikitext for a template-like construct.

Fetch the preprocessed wikitext for a template-like construct.

Inherited From:
Source:

getArgInfo()

Get the public data-mw structure that exposes the template name and parameters.

Get the public data-mw structure that exposes the template name and parameters.

Inherited From:
Source:

onTemplate()

Main template token handler.

Main template token handler.

Expands target and arguments (both keys and values) and either directly calls or sets up the callback to _expandTemplate, which then fetches and processes the template.

Inherited From:
Source:

onTemplateArg()

Expand template arguments with tokens from the containing frame.

Expand template arguments with tokens from the containing frame.

Inherited From:
Source:

processSpecialMagicWord()

Process the special magic word as specified by resolvedTgt.magicWordType.

Process the special magic word as specified by resolvedTgt.magicWordType.

magicWordType === '!'    => {{!}} is the magic word
magicWordtype === 'MASQ' => DEFAULTSORT, DISPLAYTITLE are the magic words
                            (Util.magicMasqs.has(..))
Inherited From:
Source: