Template:Kinship/doc
Jump to navigation
Jump to search
gives a natural language description of the family relationship between and individual and another ("2")
Usage
{{kinship |1= |2= |link= |pl= |ru= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | type of relation (father, mother, son, daughter, brother, sister, husband, wife, partner, mistress, uncle, aunt, nephew, niece, grandfather, grandmother, grandson, granddaughter, great-grandson, great-granddaughter, half-brother, half-sister, father-in-law, mother-in-law, son-in-law, daughter-in-law, brother-in-law, sister-in-law, student, teacher) | empty | required | |
2 | name of second person. To ease formatting, Wikilinks should not be provided - {{Kinship/link}} looks for the relevant Commons link). If you want to translate the name of family relationship without providing a person's name, use {{Kinship/labels}} directly. | empty | required | |
link | the page to which the name should link (if different to the person's category) | empty | optional | |
pl | Polish version of the name of the second person (which need to be declined). If not provided than grammatically tortured form will be used. | empty | optional | |
ru | Declined Russian name (same logic as Polish) | empty | optional | |
lang | language code (only needs to be provided if the language shall be fixed and independent of the user's preferences) | language code of the user language | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
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
code | output | notes |
---|---|---|
{{Kinship|uncle|Abraham Lincoln}} | uncle of Abraham Lincoln | basic form |
{{Kinship|brother|Joseph Johnson|link=Category:Joseph Johnson (publisher)}} | brother of Joseph Johnson | using category name looks awkward in template |
{{Kinship|mother|Adam Mickiewicz|lang=en}} | mother of Adam Mickiewicz | this form works in English |
{{Kinship|mother|Adam Mickiewicz|lang=pl}} | matka osoby: Adam Mickiewicz | however it does not work well in Polish and possibly other languages |
{{Kinship|mother|Adam Mickiewicz|lang=pl|pl=Adama Mickiewicza}} | matka Adama Mickiewicza | argument "pl" is used to provide proper language specific form |