ImageWithLink


 * https://www.mediawiki.org/wiki/Extension:ImageWithLink
 * https://www.n0r1sk.com/index.php/ImageWithLink

About
ImageWithLink is a MediaWiki extension that adds a new tag:

Example: EXTERNAL-IMAGE-URL|LINK-TO-SITE|TEXT

http://api.flattr.com/button/flattr-badge-large.png|http://flattr.com/thing/571679/n0r1sk|Flattr this

This extension lets a wiki show external images: <?php /** This extension adds the ability to nearly use wiki syntax to create an external image with a link/url behind it.

Copyright (C) 2012 by	Christof Alber, 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.

$wgExtensionCredits['parserhook'][] = array(      'path' => __FILE__,       'name' => 'Image with Link',       'author' =>'Christof Alber, Mario Kleinsasser, Markus Neuhold, Bernhard Rausch, Martin Steinwender',        'url' => 'https://www.n0r1sk.com',        'description' => 'This extension adds the ability to nearly use wiki syntax to create an external image with a link/url behind it - by n0r1sk.com',       'version'  => 0.1,       ); $wgHooks['ParserFirstCallInit'][] = 'ImageWithLinkInit'; function ImageWithLinkInit( &$parser ) { $parser->setHook( 'iwl', 'ImageWithLink' ); return true; } function ImageWithLink( $input, array $args, Parser $parser, PPFrame $frame ) { /** $output = $parser->recursiveTagParse( $input, $frame); */ list($image, $link, $text) = explode("|", $input); $output = ''; return $output; }