Skip to content
Whiteknight edited this page Aug 13, 2010 · 2 revisions

Configuration Variables

Several configuration variables can be set in the LocalSettings.php file of your wiki to change behavior of the extension

$wgEmbedVideoServiceList : Array of supported hosting services. See Adding Sites for details
$wgEmbedVideoMinWidth : Global minimum width for videos
$wgEmbedVideoMaxWidth : Global maximum width for videos

Configurable Messages

All error messages in the EmbedVideo extension are configurable and translatable. In your wiki, you can modify the values of these messages by going to the page MediaWiki:<MESSAGE NAME>, where MESSAGE NAME is one of the values below:

embedvideo-missing-params : Error message when parameters to the {{#ev}} or {{#evp}} tags are missing
embedvideo-bad-params : Error message when one of the parameters is bad
embedvideo-unparsable-param-string : Error message when one of the parameters cannot be parsed
embedvideo-unrecognized-service : Error message when an unknown hosting service is used
embedvideo-bad-id : Error message when the ID value for a video is in an incorrect format
embedvideo-illegal-width : Error message when the user specifies an illegal width value

If you would like to help translate these messages into a different language, take a look at the EmbedVideo.i18n.php file. Patches welcome.