Difference between revisions of "Template:Infobox table tennis player/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Allow automatic conversion of height and weight via Template:Infobox person/height and Template:Infobox person/weight, see examples at Template:Infobox table tennis player/testcases)
imported>Zyxw
(copy of current template)
 
Line 3: Line 3:
  
 
| aboveclass  = fn
 
| aboveclass  = fn
| above      = {{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}
+
| above      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
  
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image<includeonly>|</includeonly>}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}|suppressplaceholder=yes}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}|suppressplaceholder=yes}}
| caption    = {{{caption<includeonly>|</includeonly>}}}
+
| caption    = {{{caption|}}}
  
 
| headerstyle = padding: 1px;
 
| headerstyle = padding: 1px;
  
| header1    = {{#if:{{{image<includeonly>|</includeonly>}}}|Personal information}}
+
| header1    = {{#if:{{{image|}}}|Personal information}}
 
| class1    = navbox-abovebelow
 
| class1    = navbox-abovebelow
  
 
| label2    = Native name
 
| label2    = Native name
| data2      = {{#if:{{{native_name<includeonly>|</includeonly>}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}" xml:lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span> }}
+
| data2      = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}" xml:lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span> }}
  
 
| class3    = nickname
 
| class3    = nickname
 
| label3    = Full name
 
| label3    = Full name
| data3      = {{{fullname<includeonly>|</includeonly>}}}
+
| data3      = {{{full_name|{{{fullname|}}}}}}
  
 
| class4    = nickname
 
| class4    = nickname
 
| label4    = Nickname(s)
 
| label4    = Nickname(s)
| data4      = {{{nickname<includeonly>|</includeonly>}}}
+
| data4      = {{{nickname|}}}
  
 
| label5    = Nationality
 
| label5    = Nationality
| data5      = {{{nationality<includeonly>|</includeonly>}}}
+
| data5      = {{{nationality|}}}
  
 
| label6    = Residence
 
| label6    = Residence
| data6      = {{{residence<includeonly>|</includeonly>}}}
+
| data6      = {{{residence|}}}
  
 
| label7    = Born
 
| label7    = Born
| data7      = {{br separated entries|{{{birth_date<includeonly>|</includeonly>}}}|{{{birth_place<includeonly>|</includeonly>}}} }}  
+
| data7      = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}} }}  
  
 
| label8    = Died
 
| label8    = Died
| data8      = {{br separated entries|{{{death_date<includeonly>|</includeonly>}}}|{{{death_place<includeonly>|</includeonly>}}} }}  
+
| data8      = {{br separated entries|{{{death_date|}}}|{{{death_place|}}} }}  
  
 
| label9    = [[Table tennis styles|Playing style]]
 
| label9    = [[Table tennis styles|Playing style]]
| data9      = {{{playingstyle<includeonly>|</includeonly>}}}
+
| data9      = {{{playingstyle|}}}
  
 
| label10    = Equipment(s)
 
| label10    = Equipment(s)
| data10    = {{{equipment<includeonly>|</includeonly>}}}
+
| data10    = {{{equipment|}}}
  
 
| label11    = Highest ranking
 
| label11    = Highest ranking
| data11    = {{{hrank<includeonly>|</includeonly>}}}
+
| data11    = {{{highest_rank|{{{hrank|}}}}}}
  
 
| label12    = Current ranking
 
| label12    = Current ranking
| data12    = {{{crank<includeonly>|</includeonly>}}}
+
| data12    = {{{current_rank|{{{crank|}}}}}}
  
 
| label13    = Club
 
| label13    = Club
| data13    = {{{club<includeonly>|</includeonly>}}}
+
| data13    = {{{club|}}}
  
 
| label14    = Height
 
| label14    = Height
| data14    = {{#if: {{{height<includeonly>|</includeonly>}}} | {{Infobox person/height|{{{height}}}}} }}
+
| data14    = {{#if: {{{height|}}} | {{Infobox person/height|{{{height}}}}} }}
  
 
| label15    = Weight
 
| label15    = Weight
| data15    = {{#if: {{{weight<includeonly>|</includeonly>}}} | {{Infobox person/weight|{{{weight}}}}} }}
+
| data15    = {{#if: {{{weight|}}} | {{Infobox person/weight|{{{weight}}}}} }}
  
 
| header16  = {{Infobox medal templates
 
| header16  = {{Infobox medal templates
   |medals = {{{medaltemplates<includeonly>|</includeonly>}}}
+
   |medals = {{{medals|{{{medaltemplates|}}}}}}
   |expand = {{{show-medals|}}}
+
   |expand = {{{medals-expand|{{{show-medals|}}}}}}
 
   }}
 
   }}
| class19   = navbox-abovebelow
+
| class16   = navbox-abovebelow
  
}}{{#invoke:Check for unknown parameters | check | ignoreblank = y | unknown = {{main other|[[Category:Pages using Template:Infobox table tennis player with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox table tennis player]] with unknown parameter "_VALUE_" | name | image | image_size | imagesize | alt | caption | native_name | native_name_lang | fullname | nickname | nationality | residence | birth_date | birth_place | death_date | death_place | playingstyle | equipment | hrank | crank | club | height | weight | medaltemplates | show-medals
+
}}{{#invoke:Check for unknown parameters | check | ignoreblank = y | unknown = {{main other|[[Category:Pages using Infobox table tennis player with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox table tennis player]] with unknown parameter "_VALUE_" | name | image | image_size | imagesize | alt | caption | native_name | native_name_lang | full_name | fullname | nickname | nationality | residence | birth_date | birth_place | death_date | death_place | playingstyle | equipment | highest_rank | hrank | current_rank | crank | club | height | weight | medals | medaltemplates | medals-expand | show-medals
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 07:24, 17 November 2018

Template documentation[view] [edit] [history] [purge]

Template:Person infobox header

{{Infobox table tennis player}} is an infobox for articles about table tennis players.

Usage

Template:Parameter names example

{{Infobox table tennis player
| name             = 
| image            = 
| image_size       = <!-- Only for images narrower than 220 pixels -->
| alt              = 
| caption          = 
| native_name      = 
| native_name_lang = 
| full_name        = 
| nickname         = 
| nationality      = 
| residence        = 
| birth_name       = 
| 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      = 
| playingstyle     = 
| equipment        = 
| disability_class =
| highest_rank     = 
| current_rank     = 
| club             = 
| height           = <!-- {{convert|X|ft|X|in|cm|abbr=on}} or {{convert|XXX|cm|ftin|frac=2|abbr=on}} -->
| weight           = <!-- {{convert|XXX|lb|kg st|abbr=on}} or {{convert|XX|kg|lb st|abbr=on}} -->
| medaltemplates   = 
| show-medals      = 
}}

Parameters

Field Description
name The common name of the table tennis player.
image An image of the table tennis player.
image_size The image size; only use if the image is smaller than 255px in width. If so, than put the image's respective width in pixels (e.g.: image_size=200px).
alt Alternative text for the image to be displayed, see [[WP:ALT]}.
caption Caption for the image to be displayed.
full_name
fullname
The full name of the table tennis player as listed in the ITTF database (http://www.ittf.com/ittf_stats/).
nickname The table tennis player's common nickname in italics. If there is more than one, list each name alphabetically and separate them by commas.
nationality Place {{flagcountry|COUNTRY}} here, and replace "COUNTRY" with the name of the country that corresponds to the table tennis player's nationality. For a list of countries, see Category:Flag templates.
residence The table tennis player's residence.
birth_name The table tennis player's birth name, if different from current name (e.g. maiden name).
birth_date The table tennis player's birthdate. Use {{birth date and age|year|month|day}} for living table tennis player.
birth_place The table tennis player's birthplace.
death_date The table tennis player's date of death, if applicable.
death_place The table tennis player's place of death, if applicable.
playingstyle The table tennis player's primary playing style. If there is more than one, list each style alphabetically and separate them by commas.
equipment The table tennis player's equipment used.
disability_class The disability sport classification(s) that the para table tennis player competes under.
highest_rank
hrank
The table tennis player's highest rank held.
current_rank
crank
The table tennis player's current rank held.
club The name of the table tennis club the player belongs to.
height The table tennis player's height. If they are American, put measurements in feet & inches first, then in metric units in parentheses. If they are not American, place measurements in metric units first, then in feet & inches in parentheses.
weight The table tennis player's weight. If they are American, put measurements in pounds first, then in kilograms in parentheses. If they are not American, place measurements in kilograms first, then in pounds in parentheses.
medaltemplates All templates from the medal record infobox except {{MedalTableTop}} and {{MedalBottom}}.

Use normal order (see Template:MedalTableTop,
{{MedalSport|Men's table tennis}}
{{MedalCountry|{{SWE}}}}
{{MedalGold|1992 Barcelona|Singles}}
.

Microformats

Template:UF-hcard-person

Tracking category

See also