Difference between revisions of "Template:Infobox golf tournament/sandbox"
Jump to navigation
Jump to search
imported>Nigej (try | headerstyle = background:lavender) |
imported>Nigej |
||
Line 5: | Line 5: | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|alt={{{alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|alt={{{alt|}}}}} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
− | |||
− | |||
| header1 = {{#if:{{{location|}}}{{{establishment|}}}{{{course|}}}{{{par|}}}{{{yardage|}}}{{{tour|}}}{{{format|}}}{{{purse|}}}{{{month_played|}}}{{{final_year|}}}{{{defunct|}}}|Tournament information}} | | header1 = {{#if:{{{location|}}}{{{establishment|}}}{{{course|}}}{{{par|}}}{{{yardage|}}}{{{tour|}}}{{{format|}}}{{{purse|}}}{{{month_played|}}}{{{final_year|}}}{{{defunct|}}}|Tournament information}} | ||
+ | | class1 = navbox-title | ||
| label2 = Location | | label2 = Location | ||
Line 36: | Line 35: | ||
| header14 = {{#if:{{{aggregate|}}}{{{to-par|}}}{{{score|}}}|Tournament record score}} | | header14 = {{#if:{{{aggregate|}}}{{{to-par|}}}{{{score|}}}|Tournament record score}} | ||
+ | | class14 = navbox-title | ||
| label15 = Aggregate | | label15 = Aggregate | ||
Line 45: | Line 45: | ||
| header18 = {{#if:{{{current_champion|{{{Current Champion|}}}}}}|Current champion}} | | header18 = {{#if:{{{current_champion|{{{Current Champion|}}}}}}|Current champion}} | ||
+ | | class18 = navbox-title | ||
| data19 = {{{current_champion|{{{Current Champion|}}}}}} | | data19 = {{{current_champion|{{{Current Champion|}}}}}} | ||
| header20 = {{#if:{{{final_champion|{{{Final Champion|}}}}}}|Final champion}} | | header20 = {{#if:{{{final_champion|{{{Final Champion|}}}}}}|Final champion}} | ||
+ | | class20 = navbox-title | ||
| data21 = {{{final_champion|{{{Final Champion|}}}}}} | | data21 = {{{final_champion|{{{Final Champion|}}}}}} | ||
Line 53: | Line 55: | ||
| header23 = {{#if:{{{map_caption|{{{Location Map|}}}}}}|Location Map}} | | header23 = {{#if:{{{map_caption|{{{Location Map|}}}}}}|Location Map}} | ||
+ | | class23 = navbox-title | ||
| data24 = {{#if:{{{map|}}} | | data24 = {{#if:{{{map|}}} |
Revision as of 07:47, 18 July 2019
![]() | This is the template sandbox page for Template:Infobox golf tournament (diff). See also the companion subpage for test cases. |
![]() | This template uses Lua: |
Contents
Usage
{{infobox golf tournament | name = | image = | caption = | location = | coordinates = | establishment = | course = | par = | yardage = | lang = <!-- Defaults to US English. Value must be "uk" for British English --> | org = | tour = | format = | purse = | month_played = <!-- use if still played --> | final_year = <!-- use if no longer played --> | defunct = <!-- optional --> | aggregate = | to-par = | score = <!-- only use for match play, stableford, etc. --> | current_champion = <!-- use if still played --> | final_champion = <!-- use if no longer played --> | current = <!-- just the title of the article for the current tournament, with no brackets --> | map = | map_label = | map_caption = | map_relief = | map_label_position = | map_size = }}
Examples
![]() caption | |
Tournament information | |
---|---|
Location | location |
Established | establishment |
Course(s) | course |
Par | par |
Length | yardage |
Organized by | org |
Tour(s) | tour |
Format | format |
Prize fund | purse |
Month played | month_played |
Final year | final_year |
Defunct | defunct |
Tournament record score | |
Aggregate | aggregate |
To par | to-par |
Score | score |
Current champion | |
current_champion | |
Final champion | |
final_champion | |
![]() |
{{infobox golf tournament | name = name | image = image | caption = caption | location = location | establishment = establishment | course = course | par = par | yardage = yardage | lang = lang | org = org | tour = tour | format = format | purse = purse | month_played = month_played | final_year = final_year | defunct = defunct | aggregate = aggregate | to-par = to-par | score = score | current_champion = current_champion | final_champion = final_champion | current = current }}
Tracking category
See also
The above documentation is transcluded from Template:Infobox golf tournament/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |