Extension:FlexImage

The Extension FlexImage is intended to provide an real first easy learning entry for inexperienced newcomers about how to create an Mediawiki Extension.

Installation

 * Download from github the Zip file
 * Add at the end of MediaWiki:Common.css the following CSS class

 // require_once( "&#36;IP/extensions/FlexImage/FlexImage.php"); 
 * Create in the  directory from Mediawiki an
 * Rename the  to
 * Copy the FlexImage extension source files into this folder
 * Add at the end of  the following   PHP line
 * Check in  under the head 'Other' if the extension is activated

Adapt PHP Bin
This demo extension is using additional internal scripts.

Check and assure that the right allocation of the PHP Bin Executable is used The definition of the default PHP Bin Executable location is set inside  

&#36;wf_QBox_PHP_Bin 	= '/mnt/ext/opt/apache/bin/php';
 * 1) The php BIN executable ( & path ) inside the QBox Server
 * 2) This path has to be checked on other servers as mutiple versions may reside in your own server !!!!!
 * 3) Perform for QNAP an [~] # ipkg list_installed and check if eg php - 5.2.17-2 - The php scripting language has been installed
 * 4) An incorrect method for QNAP is ==>  [~] # which php    or < ?php echo shell_exec('which php'); ? >
 * 5) An incorrect method for QNAP is ==>  [~] # whereis php  or < ?php echo shell_exec('whereis php'); ? >
 * 6) The default php BIN executable inside the QBox Server

=Auto create pages= This extension creates automatically during setup the following pages


 * FlexImage_extension_demo_page
 * Special:FleximageAdmin
 * Template:QPE

This extension will automatically upload during setup several default images

=Usage= The FlexImage extension is for QBox4u training purposes created, and has to be used as follow Activating the FlexImage parser is done by   

Image
The image can be supplied from 2 sources

When using external images The following should be available/added inside  &#36;wgAllowExternalImages    = FALSE; &#36;wgAllowExternalImagesFrom = array( 'http://www.cwb.gov.tw/','https://cdn.knmi.nl/knmi/map/current/weather/forecast/','qbox4u.com' );  The Extension verifies if an external image is available inside  

Image Linking
An Clickable image Link can be implemented from 2 sources An external Link MUST begin with   Whenever an external Link is supplied without  , The FlexImage extension will automatically ADD in front of your input the code   but no functionality assurance is provided e.g.:   becomes   =Demo= Assuming, we want to have 3 images covering the entire horizontal screen. Independent of the browser width. Changing the width of your browser page will automatically adapt the image size