Jump to content

Template:Golf9/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

The Golf9 family of templates are intended to work for 9-hole courses the same way as the {{Golf18}} family does for 18-hole courses, so the documentation there is generally applicable: simply change ~18 to ~9 at the end of each template name, and omit parameters relating to the second 9 holes.

Example

[edit]

The following templates are an illustration of usage:

{{Golf9|center=true|title=South Course}}
{{par9                 | 4 | 4 | 3 | 4 | 4 | 5 | 4 | 3 | 5 | 36  }}
{{handicap9|name=Men's  | 3 | 8 | 7 | 2 | 6 | 5 | 1 | 9 | 4 }}
{{blue9   |78.1 / 143 |452|387|198|483|453|560|462|176|613|3784}}
{{white9   |74.3 / 136 |432|347|149|460|393|518|434|154|535|3422}}
{{green9   |rssize=8pt |M:72.5/133 W:79.2/138
|                        417|332|134|445|378|503|419|139|520|3287}}
{{par9                 | 4 | 4 | 3 | 4 | 4 | 5 | 4 | 3 | 5 | 36 }}
{{handicap9|name=Women's| 4 | 7 | 8 | 5 | 6 | 1 | 3 | 9 | 2 }}
{{red9     |73.5 / 128 |368|281|113|388|324|452|381| 96|432|2835}}
{{end9}}

The {{Golf9}} 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:

South Course
Tee Rating/Slope 1 2 3 4 5 6 7 8 9 Total
Par 4 4 3 4 4 5 4 3 5 36
SI Men's 3 8 7 2 6 5 1 9 4
Blue 78.1 / 143 452 387 198 483 453 560 462 176 613 3784
White 74.3 / 136 432 347 149 460 393 518 434 154 535 3422
Green M:72.5/133 W:79.2/138 417 332 134 445 378 503 419 139 520 3287
Par 4 4 3 4 4 5 4 3 5 36
SI Women's 4 7 8 5 6 1 3 9 2
Red 73.5 / 128 368 281 113 388 324 452 381 96 432 2835