Template:Legend/doc

{{TemplateBox (either "1px solid gray" or "none")
 * 1=1
 * 1d=color
 * 1def=white
 * 1stat=required
 * 2=2
 * 2d=caption
 * 2stat=required
 * 3=char
 * 3d=character or string
 * 4=file
 * 4d=file
 * 5=smallchar
 * 5d=character or string, just as char but smaller and bold
 * 6=line
 * 6d=CSS border statement rendered as a single line
 * 7=css
 * 7d=CSS statement to apply to the box
 * 8=size
 * 8d=size of the file in px (e.g. "20x20"; no "px" at the end)
 * 8def=15x15
 * 9=border
 * 9d=border
 * 9def=depends
 * 9stat=deprecated
 * name=Legend
 * desc=Can be used to create a map legend entry.
 * namespace=all
 * usergroup=all
 * placement=
 * usage-notes=
 * Getting the color codes:

Here follows an example of how to get the color codes by using the freeware IrfanView. First, save the legend image(s) from the source. Open an image with Irfanview. Go to image menu/palette/ and click on "edit palette." Then from the dialog box of color squares that comes up click on the color of interest. The needed color code (value) will show up at the bottom of the dialog box after "HTML". It is the hexadecimal color code consisting of 6 characters or numbers. Copy it into the legend template.

Examples
}}
 * type=
 * example=
 * i18n-method=-
 * i18n-desc=
 * seealso=
 * setscats=
 * lines=one
 * shorthand=
 * relieson=