Parsoid
A bidirectional parser between wikitext and HTML5
|
Some parser functions, and quite a bunch of stubs of parser functions. More...
Public Member Functions | |
__construct (Env $env) | |
pf_if ( $token, Frame $frame, Params $params) | |
pf_switch ( $token, Frame $frame, Params $params) | |
pf_ifeq ( $token, Frame $frame, Params $params) | |
pf_expr ( $token, Frame $frame, Params $params) | |
pf_ifexpr ( $token, Frame $frame, Params $params) | |
pf_iferror ( $token, Frame $frame, Params $params) | |
pf_lc ( $token, Frame $frame, Params $params) | |
pf_uc ( $token, Frame $frame, Params $params) | |
pf_ucfirst ( $token, Frame $frame, Params $params) | |
pf_lcfirst ( $token, Frame $frame, Params $params) | |
pf_padleft ( $token, Frame $frame, Params $params) | |
pf_padright ( $token, Frame $frame, Params $params) | |
pf_tag ( $token, Frame $frame, Params $params) | |
pf_currentyear ( $token, Frame $frame, Params $params) | |
pf_localyear ( $token, Frame $frame, Params $params) | |
pf_currentmonth ( $token, Frame $frame, Params $params) | |
pf_localmonth ( $token, Frame $frame, Params $params) | |
pf_currentmonthname ( $token, Frame $frame, Params $params) | |
pf_localmonthname ( $token, Frame $frame, Params $params) | |
pf_currentmonthabbrev ( $token, Frame $frame, Params $params) | |
pf_localmonthabbrev ( $token, Frame $frame, Params $params) | |
pf_currentweek ( $token, Frame $frame, Params $params) | |
pf_localweek ( $token, Frame $frame, Params $params) | |
pf_currentday ( $token, Frame $frame, Params $params) | |
pf_localday ( $token, Frame $frame, Params $params) | |
pf_currentday2 ( $token, Frame $frame, Params $params) | |
pf_localday2 ( $token, Frame $frame, Params $params) | |
pf_currentdow ( $token, Frame $frame, Params $params) | |
pf_localdow ( $token, Frame $frame, Params $params) | |
pf_currentdayname ( $token, Frame $frame, Params $params) | |
pf_localdayname ( $token, Frame $frame, Params $params) | |
pf_currenttime ( $token, Frame $frame, Params $params) | |
pf_localtime ( $token, Frame $frame, Params $params) | |
pf_currenthour ( $token, Frame $frame, Params $params) | |
pf_localhour ( $token, Frame $frame, Params $params) | |
pf_currenttimestamp ( $token, Frame $frame, Params $params) | |
pf_localtimestamp ( $token, Frame $frame, Params $params) | |
pf_currentmonthnamegen ( $token, Frame $frame, Params $params) | |
pf_localmonthnamegen ( $token, Frame $frame, Params $params) | |
pf_time ( $token, Frame $frame, Params $params) | |
pf_timel ( $token, Frame $frame, Params $params) | |
pf_localurl ( $token, Frame $frame, Params $params) | |
pf_formatnum ( $token, Frame $frame, Params $params) | |
pf_currentpage ( $token, Frame $frame, Params $params) | |
pf_pagenamee ( $token, Frame $frame, Params $params) | |
pf_fullpagename ( $token, Frame $frame, Params $params) | |
pf_fullpagenamee ( $token, Frame $frame, Params $params) | |
pf_pagelanguage ( $token, Frame $frame, Params $params) | |
pf_directionmark ( $token, Frame $frame, Params $args) | |
pf_dirmark ( $token, Frame $frame, Params $args) | |
pf_fullurl ( $token, Frame $frame, Params $params) | |
pf_urlencode ( $token, Frame $frame, Params $params) | |
pf_ifexist ( $token, Frame $frame, Params $params) | |
pf_pagesize ( $token, Frame $frame, Params $params) | |
pf_sitename ( $token, Frame $frame, Params $params) | |
pf_anchorencode ( $token, Frame $frame, Params $params) | |
pf_protectionlevel ( $token, Frame $frame, Params $params) | |
pf_ns ( $token, Frame $frame, Params $params) | |
pf_subjectspace ( $token, Frame $frame, Params $params) | |
pf_talkspace ( $token, Frame $frame, Params $params) | |
pf_numberofarticles ( $token, Frame $frame, Params $params) | |
pf_language ( $token, Frame $frame, Params $params) | |
pf_contentlanguage ( $token, Frame $frame, Params $params) | |
pf_contentlang ( $token, Frame $frame, Params $params) | |
pf_numberoffiles ( $token, Frame $frame, Params $params) | |
pf_namespace ( $token, Frame $frame, Params $params) | |
pf_namespacee ( $token, Frame $frame, Params $params) | |
pf_namespacenumber ( $token, Frame $frame, Params $params) | |
pf_pagename ( $token, Frame $frame, Params $params) | |
pf_pagenamebase ( $token, Frame $frame, Params $params) | |
pf_scriptpath ( $token, Frame $frame, Params $params) | |
pf_server ( $token, Frame $frame, Params $params) | |
pf_servername ( $token, Frame $frame, Params $params) | |
pf_talkpagename ( $token, Frame $frame, Params $params) | |
pf_defaultsort ( $token, Frame $frame, Params $params) | |
pf_displaytitle ( $token, Frame $frame, Params $params) | |
pf_equal ( $token, Frame $frame, Params $params) | |
Some parser functions, and quite a bunch of stubs of parser functions.
IMPORTANT NOTE: These parser functions are only used by the Parsoid-native template expansion pipeline, which is not the default or used in production. Normally core provides us SiteConfig and DataAccess objects that provide parser functions and other preprocessor functionality.
There are still quite a few missing, see http://www.mediawiki.org/wiki/Help:Magic_words
and http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions
. Instantiated and called by the TemplateHandler
extension. Any pf_<prefix>
matching a lower-cased template name prefix up to the first colon will override that template.
The only use of this code is currently in parserTests and offline tests. But, eventually as the two parsers are integrated, the core parser tests implementation from $mw/includes/parser/CoreParserFunctions.php might move over here.
Wikimedia\Parsoid\Wt2Html\TT\ParserFunctions::__construct | ( | Env | $env | ) |
Env | $env |