Module:Sandbox/AbstractWikipedia/TemplateEvaluator/doc
This is the documentation page for Module:Sandbox/AbstractWikipedia/TemplateEvaluator
This is a documentation subpage for Module:Sandbox/AbstractWikipedia/TemplateEvaluator. It contains usage information, categories, and other content that is not part of the original module page. |
This is the template evaluator module of the Abstract Wikipedia template-renderer prototype.
Given a string in template language it passes it on to the template parser, then evaluates all elements (text and slots) of the template and finally applies all specified dependency relations.
It returns a lexeme list, which is basically a list of elements, each element being itself either a lexeme (defined in the Lexemes module) or a lexeme list, augmented with a field root
indicating the lexeme (or lexeme list) which is the root of the template.
In Wikifunctions, this module would probably have to be part of the Orchestrator code, since it must be able to execute the user-defined functions of Wikifunctions.