Extension:FeaturedMap

What can this extension do?
Display a Map sequentially on a regular basis, starting from a random position in the wiki.GIS.com:Featured_Maps page

Usage
Typical Mediawiki implementation for the calling page:  days=0      // days ahead/past for this display (if you want to show yesterday's info). Default = 0. interval=7  // days between changes. default=7. When interval=7 (weekly), changes will be done on Mondays. 

Options
Parameters passed from wiki.gis.com:Featured_Maps page - none or all may be used: Title. Default: (Filename) Mapname.jpg - no parameters: title will be "Mapname" Cool Map - LAST parameter is the title ("Cool Map")

Note: WikiMarkup Tags & Links CAN be used within the title: Cool [[GIS|GIS Map]]

Alt Text - prefix "alt=" and end with pipe "|". Default: (Same as Title): alt=Map of Redlands|Cool Map

Width - prefix "|" number of pixels + "px". Default: "250px": 250px|Cool Map Width #2 - Width (in pixels) "x" Height (in pixels) + "px" (Height will be disregarded) 250x180px|Cool Map

Alignment: use "left", "center" or "right". Default: "center": center|Cool Map

Image-Click URL - What page to go to when the user clicks on the image. Prefix "url=": url=World Maps|Cool Map

Note: links are presumed internal and will be prefixed "http://wiki.gis.com/wiki/index.php/" UNLESS the url begins: "http"

Installation
To install this extension, add the following to LocalSettings.php: require_once("$IP/extensions/FeaturedMap/FeaturedMap.php");

These files are read & executed, set permissions to 775. From the command line in the Test directory type: chmod -R 775 ./*

Demonstration
A Demonstration is available at wiki.gis.com