Formats the StringValue from a "commonsMedia" snak as an HTML link pointing to the file description page on Wikimedia Commons.
More...
Formats the StringValue from a "commonsMedia" snak as an HTML link pointing to the file description page on Wikimedia Commons.
- Todo:
- Use MediaWiki renderer
- Copyright
- GPL-2.0-or-later
- Author
- Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de
◆ __construct()
Wikibase\Lib\Formatters\CommonsLinkFormatter::__construct |
( |
FormatterOptions |
$options = null | ) |
|
- Parameters
-
FormatterOptions | null | $options | |
◆ format()
Wikibase\Lib\Formatters\CommonsLinkFormatter::format |
( |
|
$value | ) |
|
- See also
- ValueFormatter::format
Formats the given commons file name as an HTML link
- Parameters
-
StringValue | $value | The commons file name to turn into a link |
- Exceptions
-
- Returns
- string HTML
◆ $attributes
Wikibase\Lib\Formatters\CommonsLinkFormatter::$attributes |
|
private |
The documentation for this class was generated from the following file: