|
Wikibase
MediaWiki Wikibase extension
|
Public Member Functions | |
| __construct (TemplateRegistry $templateRegistry) | |
| getTemplates () | |
| render ( $key,... $params) | |
| Shorthand function to retrieve a template filled with the specified parameters. | |
Static Public Member Functions | |
| static | getDefaultInstance () |
Private Attributes | |
| $templateRegistry | |
Static Private Attributes | |
| static | $instance |
| Wikibase\View\Template\TemplateFactory::__construct | ( | TemplateRegistry | $templateRegistry | ) |
|
static |
| Wikibase\View\Template\TemplateFactory::getTemplates | ( | ) |
| Wikibase\View\Template\TemplateFactory::render | ( | $key, | |
| ... ) |
Shorthand function to retrieve a template filled with the specified parameters.
important! note that the Template class does not escape anything. be sure to escape your params before using this function!
| string | $key | template key Varargs: normal template parameters |
| string|array|null | ...$params |
|
staticprivate |
|
private |