قالب:NationAndOccupation


Template documentation[view] [edit] [history] [purge]


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=}}

Parameters

Parameter name Description Default value required or optional?

parameter #1 (1) Gender. Possible values:
  • m or male
  • f or female
m required
parameter #2 (2) Home 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 "/". empty required
parameter #3 (3) English 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. empty required
4, 5, 6 Up to three more professions. empty optional
lang Language code (only needs to be provided if the language shall be fixed and independant from the user’s preferences). empty optional

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:
{{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.