The CSS class name prefix sdms should be used for extension-level components. To use them in other files, include mediasearch-variables.less rather than directly including the base file itself. We're including the base variables in our custom variables file, resources/mediasearch-variables.less. To update the base variables, require the new version in package.json and install it, then run npm run build-lib to copy the updated file into lib. Since Wikimedia UI base variables aren't in core, we require them as a package dependency, then use a shell script to copy them to the lib directory. locally testing changes with remote results) $wgMediaSearchExternalSearchUri = '' // External entity search base URI (for autocomplete suggestions, optional) $wgMediaSearchExternalEntitySearchBaseUri = '' Coding conventions JavaScript/Vue Īs much as possible, we default to the Vue Style Guide.įor now, we are not using full single-file components because we need to be able to compile Less separately so it can be included immediately before the app loads to style the PHP UI. External search results API (for results from another wiki - e.g. The following config options are available for this extension: ![]() Config variables should be added to LocalSettings.php. They are documented in more detail in extension.json. You might need to run composer install in the extension directory, or in the root directory of your MediaWiki installation if you are using a setup that merges all extension's dependencies into MediaWiki's vendor directory.Įxtension configuration variables are sets of key-value pairs. If you have a Wikibase repository, we strongly recommend also installing these extensions to allow more data to be used to enhance the search results:Īfter the extensions listed above are set up properly, enable the extension by adding wfLoadExtension( 'MediaSearch' ) along with the required config variables to LocalSettings.php. CirrusSearch and dependencies, for improved search results & per-mediatype tab support.The following Mediawiki extensions are recommended: ElasticSearch (see here for more information on how to install).While not strictly required, we suggest installing these dependencies to enhance the media search experience. ![]() ![]() MediaSearch is an alternative, media-focused way to display search results through the Special:MediaSearch page. Translate the MediaSearch extension if it is available at
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |