Template:Infobox Legislation/doc

Usage
This template summarizes information about a piece of legislation. It is designed to be generic so that it can be used for the statutes and subsidiary legislation of any jurisdiction. If you have suggestions as to how the template may be improved, please leave a message on the talk page.

Parameters
This infobox takes a number of parameters, which are all optional:

Technical information
The image parameter in the template contains (with slight modifications) the following function: " ".

The function does the following tasks:
 * If the parameter image is used in the template, that image is displayed. If a value is specified for imagesize, the image is given that width; otherwise the image width defaults to 180 px.
 * If image is not used, a check is done to see if the value of enactedby is listed in Infobox Legislation/images. If the result is "None", then no image is displayed. If the result is an image file (the coat of arms or seal, or a photograph of a building representing the person or institution that enacted the legislation), then the image file is displayed. Again, if a value is specified for imagesize, the image is given that width; otherwise the image width defaults to 180px.

JackLee came up with the first version of this function for Infobox Court Case, but thanks are due to Chris Cunningham for coming up with a cleaner solution that works better.