Template:Infobox pageant titleholder: Difference between revisions
Krish Dulal (talk | contribs) No edit summary |
Add check for unknown parameters |
||
Line 104: | Line 104: | ||
| data29 = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}} |
| data29 = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}} |
||
}}{{#invoke:Check for unknown parameters | check | ignoreblank = y |
|||
⚫ | |||
| unknown = {{Main other|[[Category:Pages using Infobox pageant titleholder with unknown parameters|_VALUE_{{PAGENAME}}]]}} |
|||
⚫ | |||
| preview = Page using [[Template:Infobox pageant titleholder]] with unknown parameter "_VALUE_" |
|||
| child | name | image | photo | image_size | alt | caption | native_name | native_name_lang | birth_name | birthname | birth_date | birth_place | alias | death_date | death_place | hometown | residence | education | alma_mater | alma mater | occupation | years_active | years active | films | agency | height | weight | measurements | haircolour | hair_colour | haircolor | hair_color | eyecolour | eye_colour | eyecolor | eye_color | dress_size | dress size | collar | suit | shoe_size | shoe size | title | competitions | nationalcompetition | spouse | domestic_partner | domestic partner | children | homepage | religion | signature | signature_size | signature alt | signature_alt |
|||
⚫ | |||
⚫ | |||
</noinclude> |
Revision as of 18:50, 21 July 2017
This template is used on approximately 3,100 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. |
This template is a customized wrapper for {{Infobox person}}. Any field from {{Infobox person}} can work. It will also emit the same hCard and Geo microformats as {{Infobox person}} . Questions? Just ask here or over at Template talk:Infobox person. |
This template uses Lua: |
Usage
Beauty pageant titleholder | |
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright=1]] {{{caption}}} | |
Native name | {{{native_name}}} |
---|---|
Born | {{{birth_name}}} {{{birth_date}}} {{{birth_place}}} |
Died | {{{death_date}}} {{{death_place}}} |
Education | {{{education}}} |
Alma mater | {{{alma_mater}}} |
Occupation | {{{occupation}}} |
Years active | {{{years_active}}} |
No. of films | {{{films}}} |
Agency | {{{agency}}} |
Height | {{{height}}} |
Hair color | {{{hair_color}}} |
Eye color | {{{eye_color}}} |
Title(s) | {{{title}}} |
Major competition(s) | {{{competitions}}} |
Spouse | {{{spouse}}} |
Partner | {{{domestic_partner}}} |
Children | {{{children}}} |
Signature | [[File:{{{signature}}}|{{{signature_size}}}|alt={{{signature_alt}}}]] |
{{Infobox pageant titleholder
| name =
| image =
| image_size =
| alt =
| caption =
| native_name =
| native_name_lang =
| birth_name =
| birth_date = <!-- {{Birth date and age|yyyy|mm|dd}} -->
| birth_place =
| death_date = <!-- {{Death date and age|death year|death month|death day|birth year|birth month|birth day}} -->
| death_place =
| other_names =
| education =
| alma_mater =
| occupation =
| years_active =
| height = <!-- X ft Y in, X cm, or X m, plus optional reference (automatic conversion) -->
| title =
| spouse =
| domestic_partner =
| children =
| films =
| agency =
| hair_color =
| eye_color =
| competitions =
| module =
| website =
| signature =
| signature_size =
| signature_alt =
}}
Parameters
This template accepts all parameters that Template:Infobox person does. See here for a complete list.
- name
- name
- image
- image_size
- alt
- caption
- caption for image
- native_name
- native_name_lang
- birth_name
- if different than name
- birth_date
- use {{Birth date and age}} if living or {{Birth date}} if deceased
- birth_place
- place of birth
- death_date
- use {{Death date and age}} if deceased
- death_place
- place of death
- other_names
- pseudonym or alias(es)
- education
- education
- alma_mater
- alma mater
- occupation
- occcupation
- years_active
- use format 1990–2000, or 1990–present if still active
- height
- X ft Y in, X cm, or X m, plus optional reference (automatic conversion)
- title
- title(s)
- spouse
- use {{Marriage}}
- domestic_partner
- unmarried life partner; use Name (1950–present)
- children
- number
- films
- number of films
- agency
- agency, if relevant
- hair_color
- or hair_colour
- eye_color
- or eye_colour
- competitions
- major competition(s)
- module
- website
- use {{URL}}
- signature
- image of signature
- signature_size
- signature_alt
Microformat
The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.
To include a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
hCard uses HTML classes including:
- adr
- agent
- bday
- birthplace
- category
- country-name
- deathdate
- deathplace
- extended-address
- family-name
- fn (required)
- given-name
- honorific-prefix
- honorific-suffix
- label
- locality
- n
- nickname
- note
- org
- role
- url
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.
Tracking categories
- Category:Pages using Infobox pageant titleholder with unknown parameters (0)
- Category:Pages using Infobox pageant titleholder with conflicting parameters (0)
- Category:No local image but image on Wikidata (8,666) – Used by Template:Wikidata image to track articles where an infobox has no image but Wikidata has an image name. To exclude articles from this category, add an image or
|nocat_wdimage=yes
to the infobox.
See also
- {{Infobox person}}
- {{Infobox model}}