Template:Kinship/doc

From Wikimedia Commons, the free media repository
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

ParameterDescriptionDefaultStatus
1type 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)emptyrequired
2name 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.
emptyrequired
linkthe page to which the name should link (if different to the person's category)emptyoptional
plPolish version of the name of the second person (which need to be declined). If not provided than grammatically tortured form will be used.emptyoptional
ruDeclined Russian name (same logic as Polish)emptyoptional
langlanguage code (only needs to be provided if the language shall be fixed and independent of the user's preferences)language code of the user languageoptional

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