Kartographer
Extension that adds maps to wiki pages
Loading...
Searching...
No Matches
Kartographer\Tag\LegacyTagHandler Class Reference

Base class for all <map...> tags. More...

+ Inheritance diagram for Kartographer\Tag\LegacyTagHandler:
+ Collaboration diagram for Kartographer\Tag\LegacyTagHandler:

Static Public Member Functions

static entryPoint (?string $input, array $args, Parser $parser, PPFrame $frame)
 Entry point for all tags.
 
static finalParseStep (State $state, ParserOutput $parserOutput, bool $isPreview, ParserFunctionTracker $tracker)
 Handles the last step of parse process.
 

Public Attributes

const TAG = ''
 Lower case name of the XML-style parser tag, e.g.
 

Protected Member Functions

 render (PartialWikitextParser $parser, bool $isPreview)
 When overridden in a descendant class, returns tag HTML.
 
 getLanguageCode ()
 
 getOutput ()
 

Protected Attributes

MapTagArgumentValidator $args
 
string $counter = null
 
Config $config
 
Parser $parser
 
State $state
 
 $markerProperties
 

Detailed Description

Base class for all <map...> tags.

@license MIT

Member Function Documentation

◆ entryPoint()

static Kartographer\Tag\LegacyTagHandler::entryPoint ( ?string $input,
array $args,
Parser $parser,
PPFrame $frame )
static

Entry point for all tags.

Parameters
string | null$input
array$args
Parser$parser
PPFrame$frame
Returns
string

@phan-suppress-next-line PhanTypeInstantiateAbstractStatic

◆ finalParseStep()

static Kartographer\Tag\LegacyTagHandler::finalParseStep ( State $state,
ParserOutput $parserOutput,
bool $isPreview,
ParserFunctionTracker $tracker )
static

Handles the last step of parse process.

Parameters
State$state
ParserOutput$parserOutputto exclusively write to; nothing is read from this object
bool$isPreview
ParserFunctionTracker$tracker

◆ getLanguageCode()

Kartographer\Tag\LegacyTagHandler::getLanguageCode ( )
protected
Returns
string

◆ getOutput()

Kartographer\Tag\LegacyTagHandler::getOutput ( )
protected
Returns
ContentMetadataCollector

◆ render()

Kartographer\Tag\LegacyTagHandler::render ( PartialWikitextParser $parser,
bool $isPreview )
abstractprotected

When overridden in a descendant class, returns tag HTML.

Parameters
PartialWikitextParser$parser
bool$isPreview
Returns
string

Reimplemented in Kartographer\Tag\LegacyMapFrame, and Kartographer\Tag\LegacyMapLink.

Member Data Documentation

◆ TAG

const Kartographer\Tag\LegacyTagHandler::TAG = ''

Lower case name of the XML-style parser tag, e.g.

"mapframe". Currently expected to start with "map…" by the {

See also
State} class.

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