Template:Golf18/doc

= Usage = The Golf18 template creates a table header for an 18-hole golf course scorecard. Additional rows are added to the table to show par for each hole, to show the hole Stroke Index and to show the yardages for each tee. The set of templates used to create a golf scorecard are:

Example
The following templates are an illustration of usage:

The Golf18 template creates the table header. Each line in the table is created by one of the other templates. The end of the scorecard is marked by a line that starts with  to finish the table. Together these templates create:

Required parameters
All required parameters are determined by position only&mdash;there is no name (e.g. no  form) associated with a required parameter.


 * Golf18
 * No required parameters.


 * Par18
 * The par for holes 1–9, followed by the par for the front 9, followed by the par for holes 10–18, followed by the par for the back 9, followed by the par for all 18 holes. (21 parameters)


 * Handicap18
 * The Stroke Indexes for holes 1–18. (18 parameters)


 * Tee18
 * The name of the tee (e.g. Regular or Blue), followed by the slope/rating, followed by the yardages for holes 1–9, followed by the yardage for the front 9, followed by the yardages for holes 10–18, followed by the yardage for the back 9, followed by the yardage for all 18 holes.


 * Black18 Blue18 White18 Yellow18 Red18 Green18 Gold18 Silver18
 * The slope/rating, followed by the yardages for holes 1–9, followed by the yardage for the front 9, followed by the yardages for holes 10–18, followed by the yardage for the back 9, followed by the yardage for all 18 holes.

Optional parameters
All of the optional parameters are named&mdash;they use the form. The templates support the following optional parameters:


 * bcolor (all templates)
 * Overrides the default background color. Example:


 * tcolor (all templates)
 * Overrides the default text color. Note that when used with Golf18, this also sets the default text color for any Par18 and Handicap18 templates in the scorecard. Example:


 * rssize (all templates)
 * Overrides the size of the font used to display the rating/slope. When used with Golf18, this overrides the size of the font in the rating/slope column heading. Note that for Par18 and Handicap18, there is no rating/slope text unless the optional name parameter is also provided. Examples:  or


 * name (Black18, Blue18, White18, Yellow18, Red18, Green18, Gold18,  Silver18, Bronze18, and Brown18)
 * Overrides the default name of the tee. (The default name is the name of the tee color.)  Example:


 * name (Par18 and Handicap18)
 * Provides a name in the rating/slope column to identify either the tee or whether the par/handicap is for men or women. Example:


 * title (Golf18)
 * The table caption displayed centered over the top of the scorecard. If not specified then no title is displayed. Example:


 * center (Golf18)
 * A boolean parameter&mdash;if set to a non-empty value, then the table is centered horizontally on the page. Example: