Jump to content

Template:Infobox snooker player: Difference between revisions

prefer
>YoungForever
(→‎top: List of world snooker champions → List of World Snooker Championship winners)
 
(prefer)
 
Line 1: Line 1:
{{Infobox
{{Infobox
| bodyclass  = vcard
| bodyclass  = vcard
| bodystyle  = width:25em
| titleclass = fn
| titleclass = fn
| title      = {{br separated entries
| title      = {{br separated entries
   |1=<span class="fn">{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}</span>
   |1=<span class="fn">{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}</span>
   |2={{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|}}}}}}}}}|<span class="honorific-suffix" style="font-size: 77%; font-weight: normal;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix}}}}}}}}}</span>}}
   |2={{#if:{{{honorific_suffix|}}}|<span class="honorific-suffix" style="font-size: 77%; font-weight: normal;">{{{honorific_suffix|}}}</span>}}
   }}
   }}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
Line 16: Line 17:
| label3    = Sport country
| label3    = Sport country
| data3      = {{{Sport country|}}}
| data3      = {{{Sport country|}}}
| label4    = [[List of snooker player nicknames|Nickname]]
| label4    = Nickname
| data4      = {{{Nickname|}}}
| data4      = {{Infobox snooker player/nicknames|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}}
| label5    = Professional
| label5    = Professional
| data5      = {{{Professional|}}}
| data5      = {{{Professional|}}}
Line 24: Line 25:
| label7    = {{nowrap|{{plain link|{{Infobox snooker player/rankings|Ref_url}}|Current ranking}}}}
| label7    = {{nowrap|{{plain link|{{Infobox snooker player/rankings|Ref_url}}|Current ranking}}}}
| data7      = {{#if:{{Infobox snooker player/rankings|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}} | {{nowrap|<!-- If template returns rank --> {{Ifnumber | {{Infobox snooker player/rankings|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}} | <!-- then returns rank to infobox --> {{Infobox snooker player/rankings|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}} | <!-- If template returns name then recall template with new name --> {{Infobox snooker player/rankings| {{Infobox snooker player/rankings|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}} }} }} (as of {{Infobox snooker player/rankings|Date}})}} }}
| data7      = {{#if:{{Infobox snooker player/rankings|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}} | {{nowrap|<!-- If template returns rank --> {{Ifnumber | {{Infobox snooker player/rankings|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}} | <!-- then returns rank to infobox --> {{Infobox snooker player/rankings|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}} | <!-- If template returns name then recall template with new name --> {{Infobox snooker player/rankings| {{Infobox snooker player/rankings|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}} }} }} (as of {{Infobox snooker player/rankings|Date}})}} }}
| label8     = {{nowrap|Career winnings}}
| label9     = {{nowrap|[[Maximum break]]s}}
| data8      = {{{Prize money|}}}
| data9      = {{{Official maximums|}}}
| label9    = Highest {{Cuegloss|Break|break}}
| data9      = {{{High break|}}}
| label10    = [[Century break]]s
| label10    = [[Century break]]s
| data10     = {{{Century break|}}}
| data10     = {{#if:{{Infobox snooker player/century breaks|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}}|{{Infobox snooker player/century breaks|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}}}}
| label11    = Best ranking finish
| label11    = Best ranking finish
| data11    = {{{Best finish|}}}
| data11    = {{{Best finish|}}}


| header12  = {{#if:{{{Ranking wins|}}}{{{Minor wins|}}}{{{Major wins|}}}{{{Other wins|}}}{{{World champ|}}}|Tournament wins}}
| header12  = {{#if:{{{Ranking wins|}}}{{{Minor wins|}}}{{{World champ|}}}|Tournament wins}}


| label13    = [[List of snooker players by number of ranking titles|Ranking]]
| label13    = [[List of snooker players by number of ranking titles|Ranking]]
| data13    = {{{Ranking wins|}}}
| data13    = {{{Ranking wins|}}}
| label14    = Major
| label15    = [[List of minor-ranking tournaments|Minor-ranking]]
| data14    = {{{Major wins|}}}
| label15    = Minor-[[List of snooker players by number of ranking titles|ranking]]
| data15    = {{{Minor wins|}}}
| data15    = {{{Minor wins|}}}
| label16    = Non-ranking
| data16    = {{{Other wins|}}}
| label17    = {{nowrap|[[List of World Snooker Championship winners|World Champion]]}}
| label17    = {{nowrap|[[List of World Snooker Championship winners|World Champion]]}}
| data17    = {{{World champ|}}}
| data17    = {{{World champ|}}}
| data18    = {{{website|}}}


| header19  = {{Infobox medal templates
| header19  = {{Infobox medal templates
  | medals = {{{medals| {{{medaltemplates| }}} }}}
  | medals = {{{medals|}}}
  | title  = {{{medals-title| {{{medaltemplates-title| }}} }}}
  | title  = {{{medals-title|}}}
  | expand = {{#ifeq: {{lc: {{{medals-expand| {{{medaltemplates-expand| {{{show-medals| }}} }}} }}} }}|no||yes}}
  | expand = {{#ifeq: {{lc: {{{medals-expand|}}} }}|no||yes}}
  }}
  }}


}}{{#invoke:Check for unknown parameters | check | ignoreblank = y
}}{{#invoke:Check for unknown parameters | check | ignoreblank= | unknown = {{main other|[[Category:Pages using Infobox snooker player with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox snooker player]] with unknown parameter "_VALUE_" | name | honorific_suffix | image | image_size | alt | caption | birth_date | birth_place | death_date | death_place | Sport country | Professional | High ranking | Official maximums | Best finish | Ranking wins | Minor wins | World champ | medals | medals-expand }}<noinclude>
| unknown = {{main other|[[Category:Pages using Infobox snooker player with unknown parameters|_VALUE_{{PAGENAME}}]]}}
| preview = Page using [[Template:Infobox snooker player]] with unknown parameter "_VALUE_"
| name | honorific suffix | honorific_suffix | honorific-suffix | image | image_size | alt | caption | birth_date | birth_place | death_date | death_place | Sport country | Nickname | Professional | High ranking | Prize money | High break | Century break | Best finish | Ranking wins | Minor wins | Major wins | Other wins | World champ | website | medals | medaltemplates | medals-title | medaltemplates-title | medals-expand | medaltemplates-expand | show-medals
}}<noinclude>
{{Documentation}}
{{Documentation}}
<!-- please place category and language links on the /doc sub-page, not here -->
<!-- please place category and language links on the /doc sub-page, not here -->
</noinclude>
</noinclude>