Difference between revisions of "Template:Infobox golfer"
Jump to navigation
Jump to search
imported>Jonesey95 (rm nowrap, which makes long labels force a very wide infobox, e.g. at older revisions of Connie Chen) |
imported>MSGJ m (fix) |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 5: | Line 5: | ||
| aboveclass = fn | | aboveclass = fn | ||
| headerstyle = background-color:#ace1af | | headerstyle = background-color:#ace1af | ||
| − | | labelstyle = font-weight:normal; | + | | labelstyle = white-space:nowrap; font-weight:normal; |
| above = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} | | above = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}} | ||
| Line 41: | Line 41: | ||
| data14 = {{{college|}}} | | data14 = {{{college|}}} | ||
| label15 = '''Status''' | | label15 = '''Status''' | ||
| − | | data15 = {{#if:{{{yearpro}}}| |{{{status}}}}} | + | | data15 = {{#if:{{{yearpro|}}}| |{{{status}}}}} |
| label16 = '''Turned professional''' | | label16 = '''Turned professional''' | ||
| data16 = {{{yearpro|}}} | | data16 = {{{yearpro|}}} | ||
| Line 126: | Line 126: | ||
| data60 = {{{evian|}}} | | data60 = {{{evian|}}} | ||
| − | | header61 = {{#if:{{{ | + | | header61 = {{#if:{{{wghofyear|}}}{{{award1|}}}{{{awardssection|}}}|Achievements and awards}} |
| − | + | | data62 = {{#if:{{{wghofyear|}}}{{{award1|}}}{{{awardssection|}}}| | |
| − | | | + | {{infobox|subbox=yes |
| − | | | + | | labelstyle = font-weight:normal; |
| − | + | | label1 = [[World Golf Hall of Fame]] | |
| − | | | + | | data1 = {{#if:{{{wghofyear|}}}|{{{wghofyear}}} ''([http://www.worldgolfhalloffame.org/{{{wghofid}}}/ member page])''}} |
| − | | | + | | label2 = {{{award1|}}} |
| − | | | + | | data2 = {{{year1|}}} |
| − | | | + | | label3 = {{{award2|}}} |
| − | | | + | | data3 = {{{year2|}}} |
| − | | | + | | label4 = {{{award3|}}} |
| − | | | + | | data4 = {{{year3|}}} |
| − | | | + | | label5 = {{{award4|}}} |
| − | | | + | | data5 = {{{year4|}}} |
| − | | | + | | label6 = {{{award5|}}} |
| − | | | + | | data6 = {{{year5|}}} |
| − | | | + | | label7 = {{{award6|}}} |
| − | | | + | | data7 = {{{year6|}}} |
| − | | | + | | label8 = {{{award7|}}} |
| − | | | + | | data8 = {{{year7|}}} |
| − | | | + | | label9 = {{{award8|}}} |
| − | | | + | | data9 = {{{year8|}}} |
| − | | | + | | label10 = {{{award9|}}} |
| − | | | + | | data10 = {{{year9|}}} |
| − | | | + | | label11 = {{{award10|}}} |
| + | | data11 = {{{year10|}}} | ||
| + | }} }} | ||
| + | | data63 = {{#if:{{{awardssection|}}}|''(For a full list of awards, see [[{{{awardssection}}}|here]])''}} | ||
| − | | | + | | header64 = {{Infobox medal templates |
| − | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox golfer with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox golfer]] with unknown parameter "_VALUE_"|ignoreblank=y| alpgwins | alt | anainspiration | asiawins | auswins | award1 | award10 | award2 | award3 | award4 | award5 | award6 | award7 | award8 | award9 | awardssection | birth_date | birth_place | britamateur | caption | chalwins | champwins | children | college | death_date | death_place | dumaurier | eurowins | evian | extour | full_name | fullname | futwins | height | image | image_size | imagesize | japwins | jlpgawins | klpgawins | lagtwins | letwins | lpga | lpgawins | majorwins | masters | nabisco | name | nationality | nickname | nwidewins | open | otherwins | partner | pga | pgawins | prowins | residence | retired | seneurowins | spouse | status | sunwins | titleholders | tour | usamateur | usopen | wbritopen | weight | western | wghofid | wghofyear | wusopen | year1 | year10 | year2 | year3 | year4 | year5 | year6 | year7 | year8 | year9 | yearpro }}<noinclude>{{documentation}}</noinclude> | + | | medals = {{{medaltemplates|}}} |
| + | | expand = {{#ifeq:{{lc:{{{show-medals}}}}}|yes|yes|}} | ||
| + | }} | ||
| + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox golfer with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox golfer]] with unknown parameter "_VALUE_"|ignoreblank=y| alpgwins | alt | anainspiration | asiawins | auswins | award1 | award10 | award2 | award3 | award4 | award5 | award6 | award7 | award8 | award9 | awardssection | birth_date | birth_place | britamateur | caption | chalwins | champwins | children | college | death_date | death_place | dumaurier | eurowins | evian | extour | full_name | fullname | futwins | height | image | image_size | imagesize | japwins | jlpgawins | klpgawins | lagtwins | letwins | lpga | lpgawins | majorwins | masters | medaltemplates | nabisco | name | nationality | nickname | nwidewins | open | otherwins | partner | pga | pgawins | prowins | residence | retired | seneurowins | show-medals | spouse | status | sunwins | titleholders | tour | usamateur | usopen | wbritopen | weight | western | wghofid | wghofyear | wusopen | year1 | year10 | year2 | year3 | year4 | year5 | year6 | year7 | year8 | year9 | yearpro }}<noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 15:30, 27 September 2020
| Script error: No such module "Wikidata". Script error: No such module "Wikidata". | |
| Status | {{{status}}} |
|---|---|
[[Category:Infobox templates|Template:Remove first word]]
| This template is used on approximately 3,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
| This template uses Lua: |
Usage
- redirect Template:Parameter names example
All parameters are optional.
Male
{{Infobox golfer
| name = <!-- if omitted, defaults to the article title -->
| image =
| image_size = <!-- e.g. 250px (default is 200px) -->
| caption =
| full_name =
| nickname =
| birth_date = <!-- {{Birth date and age|YYYY|MM|DD}} -->
| birth_place =
| death_date = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} -->
| death_place =
| height = <!-- X ft Y in, X cm OR X m; the template will automatically convert (otherwise {{convert}} can be used) -->
| weight = <!-- X st Y lb, X lb OR X kg; the template will automatically convert (otherwise {{convert}} can be used) -->
| nationality =
| residence =
| spouse =
| partner =
| children =
| college =
| status = <!-- Amateur or Professional (when year turned pro unknown)-->
| yearpro = <!-- Year turned professional -->
| retired = <!-- Year retired -->
| tour = <!-- Current tours which a member of -->
| extour = <!-- Former tours which a member of -->
| prowins = <!-- Number of professional victories -->
| pgawins = <!-- Number of PGA Tour wins -->
| eurowins = <!-- Number of European Tour wins -->
| japwins = <!-- Number of Japan Golf Tour wins -->
| asiawins = <!-- Number of Asian Tour wins -->
| sunwins = <!-- Number of Sunshine Tour wins -->
| auswins = <!-- Number of PGA Tour of Australasia wins -->
| nwidewins = <!-- Number of Korn Ferry Tour (Web.com/Nationwide Tour) wins -->
| chalwins = <!-- Number of Challenge Tour wins -->
| champwins = <!-- Number of PGA Tour Champions wins -->
| seneurowins = <!-- Number of European Senior Tour wins -->
| otherwins = <!-- Number of Other wins -->
| majorwins = <!-- Number of Major Championship wins -->
| masters = <!-- Best finish & year - Masters Tournament -->
| pga = <!-- Best finish & year - PGA Championship -->
| usopen = <!-- Best finish & year - U.S. Open -->
| open = <!-- Best finish & year - Open Championship -->
| wghofid = <!-- World Golf Hall of Fame member ID -->
| wghofyear = <!-- World Golf Hall of Fame year inducted -->
| award1 = <!-- Achievement or award details -->
| year1 = <!-- Year(s) of achievement or award -->
| award2 = <!-- Add up to 10 different awards -->
| year2 =
| awardssection = <!-- location of awards page or section -->
| show-medals = <!-- "yes" to display, hidden by default -->
| medaltemplates = <!-- for displaying golf medals won in multi-sport events -->
}}
Female
{{Infobox golfer
| name = <!-- if omitted, defaults to the article title -->
| image =
| image_size = <!-- Optional, default is 200px -->
| caption =
| full_name =
| nickname =
| birth_date = <!-- {{Birth date and age|YYYY|MM|DD}} -->
| birth_place =
| death_date = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} -->
| death_place =
| height = <!-- X ft Y in, X cm OR X m; the template will automatically convert (otherwise {{convert}} can be used) -->
| weight =
| nationality =
| residence =
| spouse =
| partner =
| children =
| college =
| status = <!-- Amateur or Professional (when year turned pro unknown)-->
| yearpro = <!-- Year turned professional -->
| retired = <!-- Year retired -->
| tour = <!-- Current tours which a member of -->
| extour = <!-- Former tours which a member of -->
| prowins = <!-- Number of professional victories -->
| lpgawins = <!-- Number of LPGA Tour wins -->
| letwins = <!-- Number of Ladies European Tour wins -->
| jlpgawins = <!-- LPGA of Japan Tour wins -->
| klpgawins = <!-- LPGA of Korea Tour wins -->
| lagtwins = <!-- Number of Ladies Asian Golf Tour wins -->
| alpgwins = <!-- Number of ALPG Tour wins -->
| futwins = <!-- Number of Symetra Tour wins -->
| otherwins = <!-- Number of Other wins -->
| majorwins = <!-- Number of Major Championship wins -->
| western = <!-- Best finish & year - Western Open (women only) -->
| titleholders = <!-- Best finish & year - Titleholders C'ship (women only) -->
| anainspiration = <!-- Best finish & year - ANA Inspiration (former Kraft Nabisco Championship, women only) -->
| lpga = <!-- Best finish & year - Women's PGA Championship (former LPGA Championship, women only) -->
| wusopen = <!-- Best finish & year - U.S. Women's Open (women only) -->
| dumaurier = <!-- Best finish & year - du Maurier Classic (women only) -->
| wbritopen = <!-- Best finish & year - Women's British Open (women only) -->
| evian = <!-- Best finish & year - The Evian Championship (women only) -->
| wghofid = <!-- World Golf Hall of Fame member ID -->
| wghofyear = <!-- World Golf Hall of Fame year inducted -->
| award1 = <!-- Achievement or award details -->
| year1 = <!-- Year(s) of achievement or award -->
| award2 = <!-- Add up to 10 different awards -->
| year2 =
| awardssection = <!-- location of awards page or section -->
| show-medals = <!-- "yes" to display, hidden by default -->
| medaltemplates = <!-- for displaying golf medals won in multi-sport events -->
}}
Highest ranking
The infobox contains a "Highest ranking" field. Data for this field is not stored in the player's infobox but in a separate file: Template:Infobox golfer/highest ranking.
Microformat
Tracking category
| The above documentation is transcluded from Template:Infobox golfer/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. |