Allows storing and accessing of templates (e.g.
More...
Allows storing and accessing of templates (e.g.
snippets commonly used in server-side HTML generation and client-side JavaScript processing).
This class Represents a template that can contain placeholders just like MediaWiki messages.
- Copyright
- GPL-2.0-or-later
- Author
- H. Snater media.nosp@m.wiki.nosp@m.@snat.nosp@m.er.c.nosp@m.om
◆ __construct()
Wikibase\View\Template\Template::__construct |
( |
TemplateRegistry | $templateRegistry, |
|
|
string | $key, |
|
|
array | $params = [] ) |
important! note that the Template class does not escape anything.
be sure to escape your params before using this class!
- Parameters
-
TemplateRegistry | $templateRegistry | |
string | $key | template key |
array | $params | Array template parameters |
◆ render()
Wikibase\View\Template\Template::render |
( |
| ) |
|
◆ $key
string Wikibase\View\Template\Template::$key |
|
private |
◆ $params
array Wikibase\View\Template\Template::$params |
|
private |
◆ $templateRegistry
The documentation for this class was generated from the following file: