Difference between revisions of "Template:Infobox professional wrestler"
imported>Zyxw (Add check for unknown parameters.) |
imported>Prefall (+parents, relatives (due to misuse of "Family") and signature params, rm unnecessary and inconsistent background color for header) |
||
| Line 6: | Line 6: | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| − | | headerstyle = | + | | headerstyle = line-height: 1.5em |
| class1 = nickname | | class1 = nickname | ||
| label1 = Birth name | | label1 = Birth name | ||
| Line 24: | Line 24: | ||
| label8 = Children | | label8 = Children | ||
| data8 = {{{children|}}} | | data8 = {{{children|}}} | ||
| − | | label9 = | + | | label9 = Parent(s) |
| − | | data9 = {{{family|}}} | + | | data9 = {{{parents|}}} |
| − | | | + | | label10 = Relatives |
| − | | | + | | data10 = {{{relatives|}}} |
| − | | | + | | label11 = Family |
| − | | | + | | data11 = {{{family|}}} |
| − | | | + | | label12 = Website |
| − | | | + | | data12 = {{{website|}}} |
| − | | | + | | header13 = {{#if:{{{ring_names|}}}{{{names|}}}{{{height|}}}{{{weight|}}}{{{billed|}}}{{{trainer|}}}{{{debut|}}}{{{retired|}}}|{{#ifeq:{{Yesno|{{{child|no}}}}}|yes||[[Professional wrestling|Professional wrestling career]]}}}} |
| − | | | + | | label14 = <span class="nowrap">[[Ring name|Ring name(s)]]</span> |
| − | | | + | | data14 = {{{ring_names|{{{names|}}}}}} |
| − | | | + | | label15 = Billed height |
| − | | | + | | data15 = {{#if:{{{height|}}}|{{infobox person/height|{{{height}}}}}}} |
| − | | | + | | label16 = Billed weight |
| − | | | + | | data16 = {{#if:{{{weight|}}}|{{infobox person/weight|{{{weight}}}}}}} |
| − | | | + | | label17 = Billed from |
| − | | | + | | data17 = {{{billed|}}} |
| − | | | + | | label18 = Trained by |
| − | | | + | | data18 = {{{trainer|}}} |
| − | + | | label19 = Debut | |
| + | | data19 = {{{debut|}}} | ||
| + | | label20 = Retired | ||
| + | | data20 = {{{retired|}}} | ||
| + | | header21 = {{#if:{{{signature|}}}|Signature}} | ||
| + | | data22 = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}} | ||
}}{{#invoke:Check for unknown parameters | check | ignoreblank = y | }}{{#invoke:Check for unknown parameters | check | ignoreblank = y | ||
| unknown = {{main other|[[Category:Pages using Infobox professional wrestler with unknown parameters|_VALUE_{{PAGENAME}}]]}} | | unknown = {{main other|[[Category:Pages using Infobox professional wrestler with unknown parameters|_VALUE_{{PAGENAME}}]]}} | ||
| preview = Page using [[Template:Infobox professional wrestler]] with unknown parameter "_VALUE_" | | preview = Page using [[Template:Infobox professional wrestler]] with unknown parameter "_VALUE_" | ||
| − | | child | header-color | name | image | image_size | image_upright | alt | caption | birth_name | birthname | birth_date | birth_place | death_date | death_place | death_cause | residence | resides | alma_mater | alma mater | spouse | children | family | website | ring_names | names | height | weight | billed | trainer | debut | retired | + | | child | header-color | name | image | image_size | image_upright | alt | caption | birth_name | birthname | birth_date | birth_place | death_date | death_place | death_cause | residence | resides | alma_mater | alma mater | spouse | children | parents | relatives | family | website | ring_names | names | height | weight | billed | trainer | debut | retired | signature | signature_size | signature_alt |
}}<noinclude>{{Documentation}}</noinclude> | }}<noinclude>{{Documentation}}</noinclude> | ||
Revision as of 00:11, 19 January 2018
[[Category:Infobox templates|Template:Remove first word]]
| 30px | This template uses Lua: |
Infobox professional wrestler may be used to summarize the main statistics and information about a professional wrestler.
Contents
Usage
This infobox may be added by pasting the template as shown below into an article, and filling in the various parameters.
Template:Parameter names example
{{Infobox professional wrestler
| name =
| image =
| image_size =
| image_upright =
| alt =
| caption =
| birth_name =
| birth_date = <!-- {{Birth date and age|YYYY|MM|DD}} or {{Birth date|YYYY|MM|DD}} if deceased. For living people supply only the year unless the exact date is already WIDELY published, as per [[WP:DOB]]. -->
| birth_place =
| death_date = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} or {{Death date|YYYY|MM|DD}} if birth date unknown -->
| death_place =
| death_cause =
| residence =
| alma_mater =
| spouse = <!-- {{Marriage|NAME|DATE}} or {{Marriage|NAME|DATE|ENDDATE}} -->
| children =
| parents =
| relatives =
| family =
| website = <!-- {{URL|google.com}} -->
| ring_names =
| height = <!-- X ft Y in or X cm; the template will automatically convert (otherwise {{Convert|FEET|ft|INCHES|in|cm|abbron}} or {{Convert|CENTIMETERS|cm|ftin|abbr=on}} can be used) -->
| weight = <!-- X st Y lb, X lb OR X kg; the template will automatically convert (otherwise {{Convert|POUNDS|lb|stlb kg|abbr=on}} or {{Convert|KILOGRAMS|kg|lb stlb|abbr=on}} can be used) -->
| billed =
| trainer =
| debut =
| retired =
}}
Parameters
| Parameter | Explanation |
|---|---|
| name | The article name, without qualifiers, i.e. John Doe, not John Doe (wrestler). |
| image | Image defaults to 220px width. |
| image_size | Size to display image (e.g. 200px (for width), x300px (for height), or 200x300px). This parameter should not normally need to be set. |
| image_upright | Scales the image thumbnail from its default size by the given factor. Values less than 1 scale the image down (0.9 = 90%) and values greater than 1 scale the image up (1.15 = 115%). |
| alt | Alternative text for image. See WP:ALT for more details. |
| caption | Image caption. Try to include date/year of the photo. |
| birth_name | Birth name, if different from name. |
| birth_date | Date of birth. If living, use {{Birth date and age}}, otherwise use {{Birth date}}. For living people supply only the year unless the exact date is already WIDELY published, as per WP:DOB. Treat such cases as if only the year is known, so use {{birth year and age}} or a similar option. |
| birth_place | Place of birth. |
| death_date | Date of death. If date of birth is known, use {{Death date and age}}, otherwise use {{Death date}}. |
| death_place | Place of death. |
| death_cause | Cause of death. Should be clearly defined and sourced. |
| residence | Location of residence, if different from birth_place. Leave empty if deceased. |
| alma_mater | Universities/colleges from which the wrestler graduated. Leave empty if none. |
| spouse | Name(s) of spouse(s) and years of marriage. Use {{Marriage}}. |
| children | Number of children (e.g. 3), or list names if independently notable. Use {{Plainlist}} for multiple entries. |
| parents | Names of parents; include only if they are independently notable or particularly relevant. These parameter may be used for biological, adoptive, foster, or step-parents. Use {{Plainlist}} for multiple entries. |
| relatives | Names of siblings or other relatives; include only if independently notable or particularly relevant. Include the relationship in parentheses after the name (sister, uncle, etc.). Use {{Plainlist}} for multiple entries. |
| family | Link to family article, if applicable. See list of family relations in professional wrestling. |
| website | Official website. Note this is not to be used for profile pages on wrestling websites, social media pages or fansites. Use {{URL}}. |
| ring_names | Known ring names. Use bold print on active names. Use {{Plainlist}} for multiple entries. |
| height | Kayfabe height at which the wrestler is billed. Automatically converted, but {{Convert}} can also be used. |
| weight | Kayfabe weight at which the wrestler is billed. Automatically converted, but {{Convert}} can also be used. |
| billed | Location billed by the promoter. Use {{Plainlist}} for multiple entries. |
| trainer | Name(s) of the individuals/schools that trained the wrestler. Use {{Plainlist}} for multiple entries. |
| debut | The date (or year if the exact date is unavailable) when the wrestler made their professional debut, i.e. wrestled their first match. For non-wrestlers, for example announcers or managers, this should be the date/year when they made their first appearance. |
| retired | Date or year of permanent retirement. |
| signature | An image of the person's signature. Please use image name without the File: or Image: prefix. |
| signature_size | Default is 150px. If necessary, a signature can be resized manually as per the |image_size= parameter.
|
| signature_alt | Alt text for the signature image; spelling out the signature exactly as it appears in the image. |
Use as a child template
The child parameter is used when embedding this infobox into another.
This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Wikipedia:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes.
{{Infobox person
| name =
| image =
| caption =
| birth_date =
| birth_place =
| <!-- etc. -->
| module =
{{Infobox professional wrestler | child=yes
| parameter-1 =
| parameter-2 =
| parameter-3 =
| parameter-4 =
| <!-- etc. -->
}}
}}
Example
| File:Triple H at WM30.jpg Triple H at WrestleMania XXX in 2014 | |
| Birth name | Paul Michael Levesque |
|---|---|
| Born | July 27, 1969 Nashua, New Hampshire, U.S. |
| Residence | Greenwich, Connecticut, U.S. |
| Spouse(s) | |
| Children | 3 |
| Family | McMahon |
| Professional wrestling career | |
| Ring name(s) | Hunter Hearst Helmsley Terra Ryzing Triple H |
| Billed height | 6 ft 4 in (193 cm) |
| Billed weight | 255 lb (116 kg) |
| Billed from | Greenwich, Connecticut |
| Trained by | Killer Kowalski |
| Debut | March 24, 1992 |
{{Infobox professional wrestler
| name = Triple H
| image = Triple H at WM30.jpg
| image_size =
| image_upright =
| alt =
| caption = Triple H at [[WrestleMania XXX]] in 2014
| birth_name = Paul Michael Levesque
| birth_date = {{Birth date and age|1969|07|27}}
| birth_place = [[Nashua, New Hampshire]], U.S.
| death_date =
| death_place =
| death_cause =
| residence = [[Greenwich, Connecticut]], U.S.
| alma_mater =
| spouse = {{Marriage|[[Stephanie McMahon]]|October 25, 2003}}
| children = 3
| family = [[McMahon family|McMahon]]
| website =
| ring_names = Hunter Hearst Helmsley<br>Terra Ryzing<br>'''Triple H'''
| height = 6 ft 4 in
| weight = 255 lb
| billed = Greenwich, Connecticut
| trainer = [[Killer Kowalski]]
| debut = March 24, 1992
| retired =
}}
Microformat
Tracking category
See also
| The above documentation is transcluded from Template:Infobox professional wrestler/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |