ImageWithLink
From n0r1sk software solutions
Contents |
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.
#ImageWithLink require_once("$IP/extensions/ImageWithLink.php");
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.
<iwl>EXTERNAL-IMAGE-URL|LINK-TO-SITE|TEXT</iwl>
Now you can use the tags to create a link which displays an external image like the example below
<iwl>http://api.flattr.com/button/flattr-badge-large.png|http://flattr.com/thing/571679/n0r1sk|Flattr this</iwl>
License
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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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



