This page is protected against editing.

Template:NationAndOccupation

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search


Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:NationAndOccupation/doc.

Translates a person’s nationality and profession into user’s preferred language. The template takes care for the right word order: {{NationAndOccupation|m|FR|painter|poet}} gives “French painter and poet”, if the user’s preferred language is set to English, but “pintor y poeta francés”, if the language is set to Spanish. This is especially useful with the “Description” field of {{Creator}} templates.

Usage

{{NationAndOccupation |1= |2= |3= }}

Template parameters

ParameterDescriptionDefaultStatus
1Gender. Possible values:
  • m or male
  • f or female
mrequired
2Home nation of the person that determines nationality; not necessarily the same as country of birth, place of residence nor place of death. See {{Nationality}} and {{CountryAdjective}} for supported values. Dual nationalities are allowed, separate nationalities with "/".emptyrequired
3English name of the profession. See {{Occupation}} for supported values. Pages using unsupported values will be listed in Category:Pages using Occupation template with incorrect parameters.emptyrequired
4, 5, 6Up to three more professions.emptyoptional
langLanguage code (only needs to be provided if the language shall be fixed and independant from the user’s preferences).emptyoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Relies on:
Module:NationAndOccupation, {{Occupation}} and {{Nationality}}, which relies on {{CountryAdjective}}

See also

{{BioGalleryInfo}} (similar template, but for other purposes)

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)

Examples

See Template:NationAndOccupation/testcases.