mwstake/mediawiki-component-galaxy-integration

Provides tool for integrating extension into a Galaxy setup

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/mwstake/mediawiki-component-galaxy-integration

1.0.0 2026-02-20 09:26 UTC

This package is auto-updated.

Last update: 2026-02-20 09:45:02 UTC


README

Galaxy integration for MediaWiki extensions

Provides tools for integrating extensions with Galaxy setups

Hooks

Extensions usually have access to a wiki ID (WikiMap::getCurrentWikiId()). In order to get the wiki instance information, you can fire following hooks

  • GetInterwikiPrefixFromWikiId - Getting Interwiki prefix for Title construction
  • GetWikiInfoFromWikiId - Getting wiki instance information for display purposes (e.g., display_text, color, url...)

Instance badge

Require mwstake.component.galaxy.foreignWikiBadge

Mixing class mws.galaxyIntegration.ForeignWikiBadge to your class, passing foreign instance data, as returned by GetWikiInfoFromWikiIdHook hook

const $badge = this.getWikiBadge();
if ( $badge ) {
    // Append to your element
}