modelmast — creates a model-focused top-of-the-page summary
use Wacs;
use Wacs::WacsUI;
use Wacs::WacsStd;
modelmast( | ...) ; |
parameter | description |
---|---|
mname | The model's name |
modelno | The model's primary key (model number) in the WACS database |
modelicon | The path relative to siteurl to the model's
icon - can be the big or small icon or even body image. |
mrating | The model's rating out of five |
mattributes | The model's attribute list as used in addkeyicons |
mcountry | Which country the model is from for the flag |
linkoptions | Pre-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. |
generalinfo | Pre-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. |
shedoes | This 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. |
currentexcl | This 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. |
descher | This 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. |
iconsize | The size of icons to use when displaying attributes, etc |
dbhandle | The handle to the current database communication channel. |
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.