User:Brianwc/testtemplate/doc

Usage
This template summarizes information about a specific United States District Court case.

Parameters
This infobox takes a number of parameters, which are optional unless indicated otherwise:


 * name
 * The short name of the case, which should preferably be the same as the article title. If the parameter is omitted, the article name is used.


 * court
 * The name of the court that the case was heard in. Wikilink the name to a Wikipedia article about the court, if there is one. To cause the template to automatically display an image of the seal of a court or of the court building, enter the name of the court as shown at Infobox United States District Court Case/images.


 * image
 * An image to represent the court, such as a court seal or a photograph of a courthouse. Type the name of the image without the "File:" prefix and do not wikilink it. If you omit this parameter, the template automatically displays an image according to the scheme at Infobox United States District Court Case/images.


 * imagesize
 * The width of the image in pixels, particularly if it is less than 180 pixels (px). Type the number without the "px" suffix ("150", not "150px"). If this parameter is omitted or called but left blank, the image size defaults to 180px.


 * caption
 * A caption for the image. Terms in the caption can be wikilinked, if desired.


 * full name
 * The full name of the case, including terms like "et al" ("and others"). Set out here any abbreviations that appear in the short name of the case in full.


 * date decided
 * The date the decision was handed down. In line with "Manual of Style (dates and numbers)", do not wikilink dates.


 * citations
 * Citations of reports of the case. If a report is available online, use a citation template (such as Case law) where available to generate an external link automatically, or else create a link manually.


 * transcripts
 * External links to transcripts of the case, where available.


 * judges
 * List the name of the District Judge sitting on the case. Where available, link the name to a Wikipedia article about the judge.


 * prior actions
 * Mention any prior trials or appeals. Where possible, link the name of a prior case to a Wikipedia article about the case, and link citations as described above.


 * subsequent actions
 * Mention any later appeals or retrials, if any. Where possible, link the name of a subsequent case to a Wikipedia article about the case, and link citations as described above.


 * related actions
 * Mention any related actions, for example, Mabo v Queensland (No 2) if the article is about Mabo v Queensland (No 1). Where possible, link the name of a related case to a Wikipedia article about the case, and link citations as described above.


 * opinions
 * A very brief summary of the major findings or holdings in the case.


 * keywords
 * A list of keywords that describe the legal issues dealt with by the case. List keywords alphabetically, separate them with commas, and link them to appropriate Wikipedia articles wherever possible; for example, " Bailment, common carrier, negligence, strict liability ".

Technical information
The image parameter in the template contains 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 court is listed in Infobox United States District Court Case/images. If the result is "None", then no image is displayed. If the result is an image file (either the official seal of a court or a photograph of a courthouse), 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/images, but thanks are due to Chris Cunningham for coming up with a cleaner solution that works better.