Extension:NetworkLink

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Link

Release status: unknown

Description Creates a link to a network location.
Author(s) Aretai
Last version 1.0.0 (2007-02-01)
MediaWiki 1.6.7 and above
License No license specified
Download Extension:NetworkLink/NetworkLink.php
Check usage and version matrix

Contents

Introduction [edit]

Sometimes it's necessary to link to a network drive or a file on LAN. This extension tries to simplify this process and create a link just on copy-paste basis.

Features [edit]

  • Options to specify: parent, self, etc. behaviour.

Installation & Configuration [edit]

  1. Download NetworkLink.php and place it in your 'extensions' folder.
  2. Add these lines to LocalSettings.php
# Activate Link extension
require_once("extensions/NetworkLink.php");

Usage [edit]

Copy the network location you want to make link to, then paste it between tags:

<link>Network location</link>

You can also specify behaviour of a new window:

<link target="blank">Network location</link>

Will open a new window (and is default). Other options are: self, top, parent.

Alternatives [edit]

Misc [edit]

It seems that this extension is not working on Firefox.

It seems to mess up the display for MediaWiki 1.6.9

I Get an interal error (using MediaWiki 1.16). Had to add a "return true":

   $parser->setHook( "link", "renderNetworkLink" );
   return true;

Feedback [edit]

Use the discussion page for feedback, questions, request of new features and bug reports.