Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Wt2Html\TT\TemplateEncapsulator Class Reference

A helper class for TemplateHandler that encapsulates template-like syntax with the appropriate meta tags, adding argument info data. More...

+ Collaboration diagram for Wikimedia\Parsoid\Wt2Html\TT\TemplateEncapsulator:

Public Member Functions

 __construct (Env $env, Frame $frame, Token $token, string $wrapperType)
 
 encapTokens (array $tokens)
 Main entry point.
 

Public Attributes

Token $token
 
string $variableName = null
 
string $parserFunctionName = null
 
string $resolvedTemplateTarget = null
 

Detailed Description

A helper class for TemplateHandler that encapsulates template-like syntax with the appropriate meta tags, adding argument info data.

Member Function Documentation

◆ encapTokens()

Wikimedia\Parsoid\Wt2Html\TT\TemplateEncapsulator::encapTokens ( array $tokens)

Main entry point.

Encapsulate the template element, including the arguments.

Parameters
array$tokens
Returns
array

The documentation for this class was generated from the following file: