Difference between revisions of "WikiServer - InterWiki Linking"

From The TinkerNet Wiki
Jump to navigation Jump to search
(Created page with "* [https://www.mediawiki.org/wiki/Extension:Interwiki Extension:Interwiki] ** on MediaWiki 1.34.1, basically add the following to LocalSettings.php: wfLoadExtension( 'Interw...")
 
Line 20: Line 20:
 
** Creates the hooks to link into MY wiki.
 
** Creates the hooks to link into MY wiki.
  
Then you can create links like <code>[[TinkerWiki:IT]]</code> That will link directly into my wiki.
+
Then you can create links like <code><nowiki>[[TinkerWiki:IT]]</nowiki></code> That will link directly into my wiki.

Revision as of 22:13, 1 June 2020

wfLoadExtension( 'Interwiki' );

// To grant sysops permissions to edit interwiki data
$wgGroupPermissions['sysop']['interwiki'] = true;

// To create a new user group that may edit interwiki data
// (bureaucrats can add users to this group)
# $wgGroupPermissions['developer']['interwiki'] = true; // delete the comment indicator # as appropriate
  • Manual:Interwiki
    • Browse to Special pages / View and edit interwiki data
    • Select Add an interwiki or language prefix
    • Add in the details for the wiki you want to link to
    • For example:
    • Creates the hooks to link into MY wiki.

Then you can create links like [[TinkerWiki:IT]] That will link directly into my wiki.