Template:Infobox person/doc

From Bharatpedia, an open encyclopedia

This template is used to create an infobox for biographical articles about persons. It includes special support for Hindi names, native language names, and automatic Dharma/Religion labeling for Indian religions.

Usage

Copy and paste this blank template into an article and fill in the fields:

{{Infobox person
| name           = 
| hindi_name     = 
| native_name    = 
| amp_devanagari = 
| image          = 
| image_upright  = 
| alt            = 
| caption        = 
| birth_name     = 
| birth_date     = 
| birth_place    = 
| death_date     = 
| death_place    = 
| nationality    = 
| occupation     = 
| known_for      = 
| religion       = 
| spouse         = 
| children       = 
| parents        = 
| awards         = 
| website        = 
}}

Parameters

Name parameters

name
The common name of the person. This appears as the title of the infobox. If left blank, it defaults to the article title.
Example: Mahatma Gandhi
hindi_name
The person's name in Hindi (Devanagari script). This appears in bold directly below the main name.
Example: महात्मा गांधी
Note: This parameter is specifically designed for Hindi names and displays prominently.
native_name
The person's name in their native language or script, if different from English and Hindi. This appears in italics below the Hindi name.
Example: મોહનદાસ કરમચંદ ગાંધી (Gujarati)
Example: మహాత్మా గాంధీ (Telugu)
Note: Use this for regional languages like Gujarati, Tamil, Bengali, Malayalam, Punjabi, etc.
amp_devanagari
Additional Devanagari text for the person, such as an alternate name, Sanskrit transliteration, or formal name spelling.
Example: मोहनदास करमचन्द गान्धी
Example: महात्मागान्धिः (Sanskrit)
Note: This is useful for Sanskrit names, alternate Devanagari spellings, or traditional/formal name variants.

Image parameters

image
Filename of the person's image. Do not include the File: or Image: prefix or square brackets.
Example: Gandhi.jpg
Example: Vajpayee portrait.png
image_upright
Scaling factor for the image. The default is 1 (220 pixels wide).
Use values less than 1 to make the image smaller (e.g., 0.9 = 90% = 198px)
Use values greater than 1 to make the image larger (e.g., 1.2 = 120% = 264px)
Example: 1.15
alt
Alternative text for the image, used by screen readers for visually impaired users.
Example: Black and white photograph of Gandhi wearing traditional dhoti and glasses
caption
Caption text that appears below the image. Include the date and context when possible.
Example: Gandhi in 1931
Example: Vajpayee addressing Parliament in 2000

Birth and death

birth_name
The person's full name at birth, if different from their common name.
Example: Mohandas Karamchand Gandhi
Example: Shyama Prasad Mukherjee
birth_date
Date of birth. Use templates for proper formatting:
For living persons: {{Birth date and age|YYYY|MM|DD}}
For deceased persons: {{Birth date|YYYY|MM|DD}}
Example: {{Birth date|1869|10|2}}
birth_place
Place of birth: city, region, country. Do not use flag templates.
Example: Porbandar, Gujarat, India
Example: Gwalior, Madhya Pradesh, India
death_date
Date of death. Use the death date template with birth date for automatic age calculation:
{{Death date and age|YYYY|MM|DD|YYYY|MM|DD}}
Example: {{Death date and age|1948|1|30|1869|10|2}}
death_place
Place of death: city, region, country. Do not use flag templates.
Example: New Delhi, India
Example: Mumbai, Maharashtra, India

Personal information

nationality
The person's nationality or national identity.
Example: Indian
Example: British Indian (for pre-independence figures)
occupation
The person's occupation(s). For multiple occupations, separate with commas.
Example: Lawyer, political leader, activist
Example: Politician, poet, writer
known_for
What the person is best known for or their most notable achievements.
Example: Indian independence movement, non-violent resistance
Example: Founding Jan Sangh, Hindu Code Bill opposition
religion
SPECIAL PARAMETER: The person's religious affiliation.
Important behavior:
  • If the value is Hindu, Buddhist, Jain, or Sikh, the label will automatically display as "Dharma" instead of "Religion"
  • For all other religions (Christianity, Islam, Judaism, Zoroastrianism, etc.), the label will display as "Religion"
Examples:
  • Hindu → Label shows "Dharma: Hindu"
  • Buddhist → Label shows "Dharma: Buddhist"
  • Jain → Label shows "Dharma: Jain"
  • Sikh → Label shows "Dharma: Sikh"
  • Christianity → Label shows "Religion: Christianity"
  • Islam → Label shows "Religion: Islam"
Note: This reflects the concept that Dharmic religions (Hindu, Buddhist, Jain, Sikh) use the term "Dharma" rather than "Religion" in Indian philosophical tradition.

Family

spouse
Name(s) of spouse(s) with marriage years in parentheses.
Format: Name (m. YYYY) for current marriages or Name (m. YYYY–YYYY) for ended marriages
Example: Kasturba Gandhi (m. 1883–1944)
Example: [[Kamaladevi Chattopadhyay]] (m. 1919–1988)
children
Number of children, or names if they are independently notable.
Example: 4
Example: Harilal, Manilal, Ramdas, Devdas
parents
Names of parents. Only include if they are independently notable.
Example: Karamchand Gandhi (father)
Putlibai Gandhi (mother)
Example: [[Krishna Bhat]] (father)

Other

awards
Notable awards and honors received by the person.
Example: Bharat Ratna (1990)
Example: Time Person of the Year (1930)
website
Official website. Use the URL template:
Example: {{URL|example.com}}
Example: {{URL|www.example.org}}

Examples

Example 1: Hindu person (Dharma label)

{{Infobox person
| name          = Atal Bihari Vajpayee
| hindi_name    = अटल बिहारी वाजपेयी
| image         = Atal Bihari Vajpayee.jpg
| caption       = Vajpayee in 2004
| birth_date    = {{Birth date|1924|12|25}}
| birth_place   = Gwalior, Madhya Pradesh, India
| death_date    = {{Death date and age|2018|8|16|1924|12|25}}
| death_place   = New Delhi, India
| nationality   = Indian
| occupation    = Politician, poet
| known_for     = Prime Minister of India (1998–2004)
| religion      = Hindu
| awards        = Bharat Ratna (2015)
}}

Result: The infobox will display "Dharma: Hindu" because Hindu is a Dharmic religion.


Example 2: Christian person (Religion label)

{{Infobox person
| name          = Mother Teresa
| hindi_name    = मदर टेरेसा
| native_name   = Anjezë Gonxhe Bojaxhiu
| amp_devanagari = मदर तेरेसा
| image         = Mother Teresa.jpg
| birth_date    = {{Birth date|1910|8|26}}
| birth_place   = Skopje, Ottoman Empire
| death_date    = {{Death date and age|1997|9|5|1910|8|26}}
| death_place   = Calcutta, India
| occupation    = Catholic nun, missionary
| known_for     = Missionaries of Charity
| religion      = Christianity
| awards        = Nobel Peace Prize (1979), Bharat Ratna (1980)
}}

Result: The infobox will display "Religion: Christianity" because Christianity is not a Dharmic religion.


Example 3: Buddhist person (Dharma label)

{{Infobox person
| name          = Dalai Lama
| hindi_name    = दलाई लामा
| native_name   = བསྟན་འཛིན་རྒྱ་མཚོ་
| amp_devanagari = दलाईलामा
| birth_date    = {{Birth date and age|1935|7|6}}
| birth_place   = Taktser, Tibet
| occupation    = Spiritual leader
| known_for     = Tibetan Buddhism, non-violence advocacy
| religion      = Buddhist
| awards        = Nobel Peace Prize (1989)
}}

Result: The infobox will display "Dharma: Buddhist" because Buddhist is a Dharmic religion.


Example 4: Sikh person (Dharma label)

{{Infobox person
| name          = Manmohan Singh
| hindi_name    = मनमोहन सिंह
| native_name   = ਮਨਮੋਹਨ ਸਿੰਘ
| birth_date    = {{Birth date and age|1932|9|26}}
| birth_place   = Gah, Punjab, British India
| nationality   = Indian
| occupation    = Economist, politician
| known_for     = Prime Minister of India (2004–2014)
| religion      = Sikh
}}

Result: The infobox will display "Dharma: Sikh" because Sikh is a Dharmic religion.


Example 5: Muslim person (Religion label)

{{Infobox person
| name          = A. P. J. Abdul Kalam
| hindi_name    = ए. पी. जे. अब्दुल कलाम
| native_name   = அப்துல் கலாம்
| amp_devanagari = अब्दुल कलाम
| image         = A. P. J. Abdul Kalam.jpg
| birth_date    = {{Birth date|1931|10|15}}
| birth_place   = Rameswaram, Tamil Nadu, India
| death_date    = {{Death date and age|2015|7|27|1931|10|15}}
| death_place   = Shillong, Meghalaya, India
| occupation    = Scientist, aerospace engineer, politician
| known_for     = President of India (2002–2007), India's Missile Man
| religion      = Islam
| awards        = Bharat Ratna (1997), Padma Vibhushan (1990)
}}

Result: The infobox will display "Religion: Islam" because Islam is not a Dharmic religion.


Example 6: Jain person (Dharma label)

{{Infobox person
| name          = Virchand Gandhi
| hindi_name    = वीरचन्द गांधी
| native_name   = વીરચંદ ગાંધી
| birth_date    = {{Birth date|1864|8|25}}
| death_date    = {{Death date and age|1901|8|7|1864|8|25}}
| occupation    = Scholar, activist
| known_for     = Representing Jainism at 1893 Parliament of Religions
| religion      = Jain
}}

Result: The infobox will display "Dharma: Jain" because Jain is a Dharmic religion.


Example 7: Using all name parameters together

{{Infobox person
| name           = Vallabhbhai Patel
| hindi_name     = वल्लभभाई पटेल
| native_name    = વલ્લભભાઈ પટેલ
| amp_devanagari = सरदार वल्लभभाई झावेरभाई पटेल
| birth_name     = Vallabhbhai Jhaverbhai Patel
| birth_date     = {{Birth date|1875|10|31}}
| birth_place    = Nadiad, Gujarat, India
| death_date     = {{Death date and age|1950|12|15|1875|10|31}}
| death_place    = Bombay, India
| occupation     = Lawyer, politician, statesman
| known_for      = First Deputy Prime Minister of India, integration of princely states
| religion       = Hindu
| awards         = Bharat Ratna (1991, posthumous)
}}

Result: All three name parameters display:

  • Main name: Vallabhbhai Patel (in bold header)
  • Hindi name: वल्लभभाई पटेल (in bold)
  • Native name: વલ્લભભાઈ પટેલ (in italics, Gujarati script)
  • Additional Devanagari: सरदार वल्लभभाई झावेरभाई पटेल
  • Label shows: "Dharma: Hindu"

Technical notes

  • All three name parameters (hindi_name, native_name, amp_devanagari) can be used simultaneously on the same person
  • The hindi_name displays in bold for prominence
  • The native_name displays in italics to distinguish it from Hindi
  • The religion parameter uses the #switch parser function to automatically determine the appropriate label
  • Empty or unused parameters are automatically hidden and will not display in the infobox
  • The template uses conditional statements (#if) to only display parameters that have values
  • The religion/Dharma switch is case-sensitive: use "Hindu" not "hindu", "Buddhist" not "buddhist", etc.

See also