Name

modelmast — creates a model-focused top-of-the-page summary

Synopsis

use Wacs;
use Wacs::WacsUI;
use Wacs::WacsStd;
modelmast(...); 
 

Parameters

parameterdescription
mnameThe model's name
modelnoThe model's primary key (model number) in the WACS database
modeliconThe path relative to siteurl to the model's icon - can be the big or small icon or even body image.
mratingThe model's rating out of five
mattributesThe model's attribute list as used in addkeyicons
mcountryWhich country the model is from for the flag
linkoptionsPre-formatted HTML string of the links you want to appear as alternatives to the current page - as used in the model page for other sizes of model page. This will appear in the right hand side of the masthead, towards the bottom.
generalinfoPre-formatted HTML string used for the upper part of the left hand box below the model's name. This is used for basic statistics and info in the model page.
shedoesThis is the preformatted HTML string for the middle part of the left had box below the model's name. This is used for what types of sets this model appears in in the model page.
currentexclThis is another preformatted HTML string - this one is used to highlight exceptions and unusual circumstances. In the model page, this indicates if exceptions or filtering is active. Appears towards the bottom of the left hand box below the model's name.
descherThis is an HTML formatted string to go in the right-hand box below the model's name. In the model page, this is usually the output from the describeher function.
iconsizeThe size of icons to use when displaying attributes, etc
dbhandleThe handle to the current database communication channel.

Summary

modelmast is similar to the masthead function except that it is focused on the model rather than the set. Originally developed for use on the main WACS model page, it has now become a freestanding API call that can be used from a number of applications. It includes a number of parameters that take pre-formatted HTML strings to increase the flexibility of how it can be used. All will be housed within a td element of an HTML table rendered in the configured masthead colours.

Availability

modelmast is only available in Perl and only in Wacs 0.9.2 and later.