Template:Infobox person: Difference between revisions

    From Nonbinary Wiki
    imported>Sekhet
    (Doing my best to create a template for a sidebar to use in all articles about people. Hope this works. If not, you're welcome to please help me out.)
     
    (Add alt-text)
    Tag: 2017 source edit
     
    (16 intermediate revisions by 5 users not shown)
    Line 1: Line 1:
    {| width=350px style="float: right; clear: both; border-left: 5px solid #e2e810; padding-left: 10px; margin-left: 10px; background: #fdffb2; padding:10px;"
    {{infobox
    | colspan="2" | <center><big>'''{{PAGENAME}}'''</big></center>
    | title    = {{#if:{{{honorific_prefix|}}}|{{{honorific_prefix|}}} |}}{{{name|{{PAGENAME}}}}}{{#if:{{{honorific_suffix|}}}| {{{honorific_suffix|}}}|}}
    |-
    | image    = {{#if:{{{picture|}}}|[[File:{{{picture|}}}|200px|alt={{{alt|}}}]]|}}
    | colspan="2" | [[File:{{{picture|}}}|250px|center]]<br><small>{{{picture description|}}}</small>
    | caption1 = {{{caption|}}}
    |-
    | label1  = Date of birth
    | colspan="2" | <center>''{{#simple-tooltip: Caption | {{{caption|Unknown}}} }}''</center>
    | data1    = {{{date_birth|}}}
    |-
    | label2  = Place of birth
    | '''Date:'''
    | data2    = {{{place_birth|}}}
    |  
    | label3  = Date of death
    |-
    | data3    = {{{date_death|}}}
    | '''Nationality:'''
    | label4  = Place of death
    |  
    | data4    = {{{place_death|}}}
    |-
    | label5  = Other names
    | '''Pronouns:'''
    | data5    = {{{other_names|}}}
    |  
    | label6  = Nationality
    |-
    | data6    = {{{nationality|}}}
    | '''Gender:'''
    | label7  = Pronouns
    |  
    | data7    = {{{pronouns|}}}
    |-
    | label8  = Gender identity
    | '''Occupation:'''
    | data8    = {{{gender|}}}
    |  
    | label9  = Education
    |-
    | data9    = {{{education|}}}
    | '''Known for:'''
    | label10  = Alma mater
    |
    | data10  = {{{alma_mater|}}}
    |}
    | label11  = Occupation
    | data11  = {{{occupation|}}}
    | label12  = Years active
    | data12  = {{{years_active|}}}
    | label13  = Employer
    | data13  = {{{employer|}}}
    | label14  = Organization
    | data14  = {{{organization|}}}
    | label15  = Known for
    | data15  = {{{known_for|}}}
    | label16  = Notable works
    | data16  = {{{notable_works|}}}
    | label17  = Website
    | data17  = {{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}
    | label18  = {{#if:{{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}|Other links|Links}}
    | data18  = {{{other_links|{{{socials|}}}}}}
    }}<noinclude>
    <templatedata>
    {
    "params": {
    "name": {
    "label": "Name",
    "description": "Name of the person (defaults to the article title)",
    "type": "string"
    },
    "honorific_prefix": {
    "label": "Honorific (prefix)",
    "description": "Mx, Sir, Ms, Mr, Rev, etcetera",
    "type": "string"
    },
    "honorific_suffix": {
    "label": "Honorific (suffix)",
    "type": "string"
    },
    "date_birth": {
    "label": "Date of birth",
    "type": "date",
    "suggested": true
    },
    "place_birth": {
    "label": "Place of birth",
    "type": "string",
    "suggested": true
    },
    "date_death": {
    "label": "Date of death",
    "type": "date"
    },
    "place_death": {
    "label": "Place of death",
    "type": "string"
    },
    "other_names": {
    "label": "Other names",
    "description": "Other names the person uses/used, except deadnames",
    "type": "string"
    },
    "picture": {
    "label": "Picture",
    "description": "Picture of the person",
    "type": "wiki-file-name",
    "suggested": true
    },
    "caption": {
    "label": "Caption",
    "description": "Short description of the picture",
    "type": "string"
    },
    "alt": {
    "label": "Alt",
    "description": "Alt text of image",
    "type": "string"
    },
    "nationality": {
    "label": "Nationality",
    "description": "Where's this person from?"
    },
    "pronouns": {
    "label": "Pronouns",
    "description": "Pronouns used by this person",
    "suggested": true
    },
    "occupation": {
    "label": "Occupation"
    },
    "years_active": {
    "label": "Years active",
    "description": "Years active in occupation"
    },
    "employer": {
    "label": "Employer",
    "type": "string"
    },
    "organization": {
    "label": "Organization",
    "type": "string"
    },
    "known_for": {
    "label": "Known for",
    "description": "What is this person known for, other than their occupation?"
    },
    "notable_works": {
    "label": "Notable works",
    "type": "string"
    },
    "website": {
    "label": "website"
    },
    "gender": {
    "label": "Gender identity",
    "description": "This person's gender identity",
    "type": "string",
    "suggested": true
    },
    "education": {
    "label": "Education",
    "description": "Only use if relevant",
    "type": "string"
    },
    "alma_mater": {
    "label": "Alma mater",
    "description": "Only use if relevant",
    "type": "string"
    },
    "socials": {
    "label": "Socials"
    }
    },
    "description": "To be used in articles about people",
    "paramOrder": [
    "name",
    "picture",
    "caption",
    "date_birth",
    "place_birth",
    "date_death",
    "place_death",
    "nationality",
    "pronouns",
    "gender",
    "occupation",
    "known_for",
    "honorific_prefix",
    "honorific_suffix",
    "other_names",
    "education",
    "alma_mater",
    "years_active",
    "employer",
    "organization",
    "notable_works",
    "website",
    "socials",
    "alt"
    ],
    "format": "block"
    }
    </templatedata>
     
    [[Category:Infobox templates]]
    </noinclude>

    Latest revision as of 14:43, 13 July 2024

    Infobox person

    To be used in articles about people

    Template parameters

    This template prefers block formatting of parameters.

    ParameterDescriptionTypeStatus
    Namename

    Name of the person (defaults to the article title)

    Stringoptional
    Picturepicture

    Picture of the person

    Filesuggested
    Captioncaption

    Short description of the picture

    Stringoptional
    Date of birthdate_birth

    no description

    Datesuggested
    Place of birthplace_birth

    no description

    Stringsuggested
    Date of deathdate_death

    no description

    Dateoptional
    Place of deathplace_death

    no description

    Stringoptional
    Nationalitynationality

    Where's this person from?

    Unknownoptional
    Pronounspronouns

    Pronouns used by this person

    Unknownsuggested
    Gender identitygender

    This person's gender identity

    Stringsuggested
    Occupationoccupation

    no description

    Unknownoptional
    Known forknown_for

    What is this person known for, other than their occupation?

    Unknownoptional
    Honorific (prefix)honorific_prefix

    Mx, Sir, Ms, Mr, Rev, etcetera

    Stringoptional
    Honorific (suffix)honorific_suffix

    no description

    Stringoptional
    Other namesother_names

    Other names the person uses/used, except deadnames

    Stringoptional
    Educationeducation

    Only use if relevant

    Stringoptional
    Alma materalma_mater

    Only use if relevant

    Stringoptional
    Years activeyears_active

    Years active in occupation

    Unknownoptional
    Employeremployer

    no description

    Stringoptional
    Organizationorganization

    no description

    Stringoptional
    Notable worksnotable_works

    no description

    Stringoptional
    websitewebsite

    no description

    Unknownoptional
    Socialssocials

    no description

    Unknownoptional
    Altalt

    Alt text of image

    Stringoptional