From n0r1sk software solutions
Jump to: navigation, search

About ImageWithLink

ImageWithLink is a MediaWiki extension that adds a new tag:
<iwl> </iwl>
It is simple but very useful if you want to simply add an external Image with a Link/URL behind it and if you don't want to directly add html-code to your page!

MediaWiki Link

You can find the MediaWiki page of this extension here

Download and Installation

Download a copy of the ImageWithLink.php file (right click -> save link as) to your MediaWiki extension directory. You can place it directly there or you can make a subfolder in the extensions directory.

Edit your LocalSettings.php file. You'll find it in the root of your MediaWiki installation. Add the following code at the bottom of the file.

<source lang=php>

  1. ImageWithLink

require_once("$IP/extensions/ImageWithLink.php"); </source>

Using the new tags / syntax

The syntax is nearly the same as in the wiki. You have to use a pipe (|) symbol to seperate the image from the link and the text which will be used if the image can't be displayed.


Now you can use the tags to create a link which displays an external image like the example below

<iwl>||Flattr this</iwl>

which creates
<iwl> this</iwl>


GPL v. 2.0

This extension add a tag to MediaWiki to mark content which should not be rendered by mobile devices.

Copyright (C) 2012 by
        Mario Kleinsasser,
        Markus Neuhold,
        Bernhard Rausch,
        Martin Steinwender

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

last edit 14.03.2013 by Bernhard