Name

iconlink — build a link around the icon for this set

Synopsis

use Wacs;
use Wacs::WacsUI;
iconlink(...); 
 

Parameters

parameterdescription
typeset type value (I, V, etc)
setnoThe set number
sareaThe toplevel area of the set
scategoryThe middle level area of the set
sdirectoryThe lower level area of the set
modelThe model's name - used in the alt tag in the images
resizeWhether to resize or not - 0 is actual size, 1 is rescaled to standard size, 2 is rescaled to mini size
destlocWhich configuration variable to use for location of link destination application - typically cgiurl for perl scripts, siteurl for php scripts, or wacsurl for wacs GUI elements (like glyphs, javascript files or stylesheets)
destappThe stem of the URL to link to around the icon, something like wacsindex/page, needs to include any parameter introducers like page or setid=
destext

The extension of the URL to link to, or null, ie .html or .php. From Wacs 0.9.0 onwards this can also be none to leave it empty.

Summary

The iconlink function displays the icon for a set at the requested size surrounded by an appropriate link to the set concerned.

Availability

iconlink is available in both perl and php. The destloc, destapp and destext options are only available in 0.8.1 or later.