Template:Infobox pageant titleholder: Difference between revisions
add tracking cat |
Use template wrapping to accept all parameters that Template:Infobox person does |
||
(47 intermediate revisions by 25 users not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:Template wrapper|wrap|_template=Infobox person |
|||
{{Infobox |
|||
| _alias-map=photo:image,domestic partner:partner,module:module2 |
|||
| bodyclass = vcard |
|||
| _exclude=title,years_active,years active,haircolour,hair_colour,haircolor,hair_color, |
|||
| titleclass = fn |
|||
eyecolour,eye_colour,eyecolor,eye_color,agency,films,competitions,nationalcompetition |
|||
⚫ | |||
| template_name=infobox pageant titleholder |
|||
⚫ | |||
⚫ | |||
| image = {{#if:{{{photo|}}}|{{{photo}}}|{{#if:{{{image|}}}|[[File:{{{image}}}|{{px|{{{image_size|}}}|frameless}}|alt={{{alt|}}}]]}}}} |
|||
| caption = {{{caption|}}} |
|||
| module = {{#if:{{{title|}}}{{{years_active|}}}{{{years active|}}}{{{haircolour|}}}{{{hair_colour|}}}{{{haircolor|}}}{{{hair_color|}}}{{{eyecolour|}}}{{{eye_colour|}}}{{{eyecolor|}}}{{{eye_color|}}}{{{agency|}}}{{{films|}}}{{{competitions|}}}{{{nationalcompetition|}}} |
|||
| label1 = Born |
|||
| data1 = {{br separated entries<!-- |
|||
-->|{{#if:{{{birth_name|{{{birthname|}}}}}}<!-- |
|||
-->|<span class="nickname">{{{birth_name|{{{birthname}}}}}}</span><!-- |
|||
-->}}<!-- |
|||
-->|{{{birth_date|}}}<!-- |
|||
-->|{{{birth_place|}}}<!-- |
|||
-->}} |
|||
| label2 = Other names |
|||
| class2 = nickname |
|||
| data2 = {{{alias|}}} |
|||
|{{Infobox|child=yes|decat=yes |
|||
| label3 = Died |
|||
| data3 = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}} |
|||
⚫ | |||
| label4 = Hometown |
|||
| data4 = {{{hometown|}}} |
|||
| |
| label1 = Title |
||
| |
| data1 = {{{title|}}} |
||
| |
| label2 = No. of films |
||
| |
| data2 = {{{films|}}} |
||
| |
| label3 = Agency |
||
| |
| data3 = {{{agency|}}} |
||
⚫ | |||
| |
| label4 = Years active |
||
| |
| data4 = {{if empty|{{{years_active|}}}|{{{years active|}}}}} |
||
| class8 = role |
|||
| label5 = Hair colo{{#if:{{{haircolour|}}}{{{hair_colour|}}}|u}}r |
|||
| label9 = Years active |
|||
| |
| data5 = {{if empty|{{{haircolour|}}}|{{{hair_colour|}}}|{{{haircolor|}}}|{{{hair_color|}}}}} |
||
| label6 = Eye colo{{#if:{{{eyecolour|{{{eye_colour|}}}}}}|u}}r |
|||
| label10 = No. of films |
|||
| data6 = {{if empty|{{{eyecolour|}}}|{{{eye_colour|}}}|{{{eyecolor|}}}|{{{eye_color|}}}}} |
|||
| data10 = {{{films|}}} |
|||
⚫ | |||
| label11 = Agency |
|||
| |
| data7 = {{if empty|{{{competitions|}}}|{{{nationalcompetition|}}}}} |
||
⚫ | |||
}}}} |
|||
| label12 = Height |
|||
| data12 = {{{height|}}} |
|||
}}{{#invoke:Check for clobbered parameters|check |
|||
| label13 = Weight |
|||
|template=[[Template:Infobox pageant titleholder]] |
|||
| data13 = {{{weight|}}} |
|||
|cat={{main other|[[Category:Pages using infobox pageant titleholder with conflicting parameters]]}} |
|||
|photo;image |
|||
| label14 = Measurements |
|||
|domestic partner;partner |
|||
| data14 = {{{measurements|}}} |
|||
|module;module2 |
|||
|years_active;years active |
|||
| label15 = Hair color |
|||
|haircolour;hair_colour;haircolor;hair_color |
|||
| data15 = {{{hair_color|{{{hair color|}}}}}} |
|||
|eyecolour;eye_colour;eyecolor;eye_color |
|||
⚫ | |||
| label16 = Eye color |
|||
⚫ | |||
| data16 = {{{eye_color|{{{eye color|}}}}}} |
|||
</noinclude> |
|||
| label17 = Dress size |
|||
| data17 = {{{dress_size|{{{dress size|}}}}}} |
|||
| label18 = Collar |
|||
| data18 = {{{collar|}}} |
|||
| label19 = Suit |
|||
| data19 = {{{suit|}}} |
|||
| label20 = Shoe size |
|||
| data20 = {{{shoe_size|{{{shoe size|}}}}}} |
|||
| label21 = Title(s) |
|||
| data21 = {{{title|}}} |
|||
| class21 = title |
|||
⚫ | |||
⚫ | |||
| label23 = Spouse |
|||
| data23 = {{{spouse|}}} |
|||
| label24 = Partner |
|||
| data24 = {{{domestic_partner|{{{domestic partner|}}}}}} |
|||
| label25 = Children |
|||
| data25 = {{{children|}}} |
|||
| data26 = {{#if:{{{homepage|}}}|[{{{homepage}}} Official website]}} |
|||
}}{{#if:{{{photo|{{{image|}}}}}}|[[Category:Infobox pageant titleholder with photo]]}}{{#if:{{{image|}}}|[[Category:Infobox pageant titleholder with photo|Z{{PAGENAME}}]]}}<noinclude>{{Documentation}} |
|||
⚫ |
Latest revision as of 14:07, 4 July 2023
Infobox pageant titleholder |
---|
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
{{{honorific_prefix}}} {{{name}}} | |
---|---|
{{{native_name}}} | |
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright=1]] {{{caption}}} | |
Born | {{{birth_name}}} {{{birth_date}}} {{{birth_place}}} |
Died | {{{death_date}}} {{{death_place}}} |
Other names | {{{other_names}}} |
Education | {{{education}}} |
Alma mater | {{{alma_mater}}} |
Occupation | {{{occupation}}} |
Height | {{{height}}} |
Spouse | {{{spouse}}} |
Partner | {{{domestic_partner}}} |
Children | {{{children}}} |
Beauty pageant titleholder | |
Title | {{{title}}} |
No. of films | {{{films}}} |
Agency | {{{agency}}} |
Years active | {{{years_active}}} |
Hair color | {{{hair_color}}} |
Eye color | {{{eye_color}}} |
Major competition(s) | {{{competitions}}} |
{{{module}}} | |
Website | {{{website}}} |
Signature | |
[[File:{{{signature}}}|{{{signature_size}}}|alt={{{signature_alt}}}|class=infobox-signature skin-invert]] |
{{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,744) – 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}}