Template:Golf18/doc
Script error: No such module "Message box".
Usage
The Template:Tl 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:
| Template | Default appearance | What it does |
|---|---|---|
| Template:Tl | Tee | Creates the table header and hole list. |
| Template:Tl | Par | Lists par for each hole, for each side of 9 holes and the total for 18 holes. |
| Template:Tl | SI | Lists the Stroke Index for each hole. |
| Template:Tl | Name | Generic template for a set of tees. It lists the rating/slope for the tee and the yardage for each hole, for each side of 9 holes and the total for 18 holes. Typically, however, one of the templates based on tee color listed below are used instead of the generic template. |
| Template:Tl | Black | Colored templates for each of the common colors for tee markers. |
| Template:Tl | Blue | |
| Template:Tl | White | |
| Template:Tl | Yellow | |
| Template:Tl | Red | |
| Template:Tl | Green | |
| Template:Tl | Gold | |
| Template:Tl | Silver | |
| Template:Tl | Ends the table |
Example
The following templates are an illustration of usage:
{{Golf18|center=true|title=South Course}}
{{par18 | 4 | 4 | 3 | 4 | 4 | 5 | 4 | 3 | 5 | 36 | 4 | 3 | 4 | 5 | 4 | 4 | 3 | 4 | 5 | 36 | 72 }}
{{handicap18|name=Men's | 5 | 15| 13| 3 | 11| 9 | 1 | 17| 7 | 16| 14| 2 | 6 | 8 | 12| 18| 4 | 10 }}
{{blue18 |78.1 / 143 |452|387|198|483|453|560|462|176|613|3784|405|221|504|541|435|477|227|442|571|3823|7607}}
{{tee18|Brown|bcolor=brown|tcolor=white|76.1 / 139 |444|362|160|471|404|530|442|164|590|3567|376|203|477|539|417|462|206|429|551|3660|7227}}
{{white18 |74.3 / 136 |432|347|149|460|393|518|434|154|535|3422|362|193|456|521|404|392|192|419|524|3463|6885}}
{{green18 |rssize=8pt |M:72.5/133 W:79.2/138
| 417|332|134|445|378|503|419|139|520|3287|347|178|441|506|389|377|177|404|509|3327|6615}}
{{par18 | 4 | 4 | 3 | 4 | 4 | 5 | 4 | 3 | 5 | 36 | 4 | 3 | 5 | 5 | 4 | 4 | 3 | 4 | 5 | 37 | 73 }}
{{handicap18|name=Women's| 7 | 13| 15| 9 | 11| 1 | 5 | 17| 3 | 10| 18| 2 | 6 | 14| 16| 12| 8 | 4 }}
{{red18 |73.5 / 128 |368|281|113|388|324|452|381| 96|432|2835|299|105|394|408|276|286|176|347|416|2707|5542}}
{{end18}}
The Template:Tl 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:
| Tee | Rating/Slope | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Out | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | In | Total |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Par | 4 | 4 | 3 | 4 | 4 | 5 | 4 | 3 | 5 | 36 | 4 | 3 | 4 | 5 | 4 | 4 | 3 | 4 | 5 | 36 | 72 | |
| SI | Men's | 5 | 15 | 13 | 3 | 11 | 9 | 1 | 17 | 7 | 16 | 14 | 2 | 6 | 8 | 12 | 18 | 4 | 10 | |||
| Black | 78.1 / 143 | 452 | 387 | 198 | 483 | 453 | 560 | 462 | 176 | 613 | 3784 | 405 | 221 | 504 | 541 | 435 | 477 | 227 | 442 | 571 | 3823 | 7607 |
| Brown | 76.1 / 139 | 444 | 362 | 160 | 471 | 404 | 530 | 442 | 164 | 590 | 3567 | 376 | 203 | 477 | 539 | 417 | 462 | 206 | 429 | 551 | 3660 | 7227 |
| White | 74.3 / 136 | 432 | 347 | 149 | 460 | 393 | 518 | 434 | 154 | 535 | 3422 | 362 | 193 | 456 | 521 | 404 | 392 | 192 | 419 | 524 | 3463 | 6885 |
| Green | M:72.5/133 W:79.2/138 | 417 | 332 | 134 | 445 | 378 | 503 | 419 | 139 | 520 | 3287 | 347 | 178 | 441 | 506 | 389 | 377 | 177 | 404 | 509 | 3327 | 6615 |
| Par | 4 | 4 | 3 | 4 | 4 | 5 | 4 | 3 | 5 | 36 | 4 | 3 | 5 | 5 | 4 | 4 | 3 | 4 | 5 | 37 | 73 | |
| SI | Women's | 7 | 13 | 15 | 9 | 11 | 1 | 5 | 17 | 3 | 10 | 18 | 2 | 6 | 14 | 16 | 12 | 8 | 4 | |||
| Red | 73.5 / 128 | 368 | 281 | 113 | 388 | 324 | 452 | 381 | 96 | 432 | 2835 | 299 | 105 | 394 | 408 | 276 | 286 | 176 | 347 | 416 | 2707 | 5542
ParametersRequired parametersAll required parameters are determined by position only—there is no name (e.g. no
Optional parametersAll of the optional parameters are named—they use the form
|