Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Formatters\CommonsThumbnailFormatter Class Reference

A rich wikitext formatter for values of the "commonsMedia" property type. More...

+ Inheritance diagram for Wikibase\Lib\Formatters\CommonsThumbnailFormatter:
+ Collaboration diagram for Wikibase\Lib\Formatters\CommonsThumbnailFormatter:

Public Member Functions

 format ( $value)
 

Detailed Description

A rich wikitext formatter for values of the "commonsMedia" property type.

It assumes InstantCommons is enabled on the wiki consuming the resulting wikitext.

See also
https://www.mediawiki.org/wiki/InstantCommons
Todo
Most feature requests require this to be a SnakFormatter instead of a ValueFormatter
Author
Thiemo Kreuz

Member Function Documentation

◆ format()

Wikibase\Lib\Formatters\CommonsThumbnailFormatter::format ( $value)
See also
ValueFormatter::format
Parameters
StringValue$valueA MediaWiki Commons file name
Exceptions
ParameterTypeException
Returns
string Wikitext

The documentation for this class was generated from the following file: