Difference between revisions of "WikiServer - InterWiki Linking"

From The TinkerNet Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
  
 
* [https://www.mediawiki.org/wiki/Manual:Interwiki Manual:Interwiki]
 
* [https://www.mediawiki.org/wiki/Manual:Interwiki Manual:Interwiki]
 +
* [https://meta.wikimedia.org/wiki/Help:Interwiki_linking Help:Interwiki linking]
 
** Browse to '''Special pages''' / '''View and edit interwiki data'''
 
** Browse to '''Special pages''' / '''View and edit interwiki data'''
 
** Select '''Add an interwiki or language prefix'''
 
** Select '''Add an interwiki or language prefix'''
Line 17: Line 18:
 
** For example:
 
** For example:
 
*** Prefix: <code>TinkerWiki</code>
 
*** Prefix: <code>TinkerWiki</code>
*** URL: <code>https://wiki.tinkernet.ca/index.php/$1</code>
+
*** URL: <code><nowiki>https://wiki.tinkernet.ca/index.php/$1</nowiki></code>
 
** Creates the hooks to link into MY wiki.
 
** Creates the hooks to link into MY wiki.
  
 
Then you can create links like <code><nowiki>[[TinkerWiki:IT]]</nowiki></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.

Latest revision as of 22:40, 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
  • Help:Interwiki linking
    • 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:
      • Prefix: TinkerWiki
      • URL: https://wiki.tinkernet.ca/index.php/$1
    • Creates the hooks to link into MY wiki.

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