Template:Occupation
Translates the name of a person's profession or quality into user's preferred language. See template:occupation/list to see words that are translated into your language.
This template has been copied from Commons as a guide for future development for Commons.
Not all functionality and not all languages supported by the original template may be available. For further information and discussion see the talk page. |
Usage
{{Occupation|1=|2=}}
You may find some explanations of difficult occupation names on the template talk page.
To prevent double entries, confusion between British or American spelling and all kinds of “gender trouble”, we supply alternative versions of parameter #1 for those entries which have notable (!) spelling or gender variants in the English language. Therefore, you can equally supply “actor” or “actress”, “monk” or “nun”, “draftsman” or “draughtsman” or “draftsperson” or “draughtsperson” for parameter #1. These variants are listed in italics below. Anyway, the output will honour the gender information you specify using parameter #2.
See {{Occupation/list}}
for more examples
Parameters
Parameter name | Description | Default value | required or optional?
|
---|---|---|---|
parameter #1 (1) | English name of the profession in lowercase letters. See list below for supported options. Pages using this template with unsupported professions will be automatically added to Category:Pages using Occupation template with incorrect parameters. | empty | required |
parameter #2 (2) | whether the individual is male or female (set the parameter to m or f accordingly). | m | optional |
lang | Language code (only needs to be provided if the language displayed is to be fixed and independent of 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
See also
{{CountryAdjective}}
, {{NationAndOccupation}}
Localization
English |
This template is localized through {{Autotranslate}}
.
To add your language to the list of languages supported by this template, please copy the code of Template:Occupation/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang
from en
(or whatever language you are translating) to the language code of your language.
The above documentation is transcluded from Template:Occupation/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |