Difference between revisions of "Template:NamingCustom/doc"
m |
|||
Line 2: | Line 2: | ||
==Syntax== | ==Syntax== | ||
− | + | *<code>{{NamingCustom|lang=|note=|fn=|mfn=|pfn=|pn=|mn=|stype=|sn=}}</code> | |
+ | **Remove unnecessary parts or leave them blank. See below for detailed explanation on each parameters. | ||
+ | **If the language or naming custom starts with a vowel sound, use the following code to change the article: | ||
+ | *:<code>{{NamingCustom|an|lang=|note=|fn=|mfn=|pfn=|pn=|mn=|stype=|sn=}}</code> | ||
==Template Data== | ==Template Data== | ||
<templatedata> | <templatedata> | ||
Line 9: | Line 12: | ||
"1": { | "1": { | ||
"label": "article", | "label": "article", | ||
− | "description": "Use this | + | "description": "Use this parameter to change the article (i.e. from \"a\" to \"an\").", |
"example": "an", | "example": "an", | ||
"type": "string", | "type": "string", | ||
Line 56: | Line 59: | ||
"label": "special name type", | "label": "special name type", | ||
"description": "The type of the \"special name\", e.g. clan name. Required if \"sn\" is used.", | "description": "The type of the \"special name\", e.g. clan name. Required if \"sn\" is used.", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "note": { | ||
+ | "description": "additional note about the naming custom.", | ||
"type": "string" | "type": "string" | ||
} | } | ||
Line 61: | Line 68: | ||
"description": "Page-top template to mark the components of a name.", | "description": "Page-top template to mark the components of a name.", | ||
"paramOrder": [ | "paramOrder": [ | ||
+ | "1", | ||
"lang", | "lang", | ||
− | " | + | "note", |
"fn", | "fn", | ||
"mfn", | "mfn", | ||
Line 68: | Line 76: | ||
"pn", | "pn", | ||
"mn", | "mn", | ||
− | " | + | "stype", |
− | " | + | "sn" |
], | ], | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata> | </templatedata> | ||
+ | |||
+ | ==Examples== | ||
+ | *<code>{{NamingCustom|lang=Japanese|fn=Matsumoto}}</code> | ||
+ | {{NamingCustom|lang=Japanese|fn=Matsumoto}} | ||
+ | *<code>{{NamingCustom|an|lang=Eastern Slavic|fn=Pushkin|pn=Sergeyevich}}</code> | ||
+ | {{NamingCustom|an|lang=Eastern Slavic|fn=Pushkin|pn=Sergeyevich}} | ||
+ | *<code>{{NamingCustom|lang=Spanish|fn=de Bolívar|mfn=Palacios}}</code> | ||
+ | {{NamingCustom|lang=Spanish|fn=de Bolívar|mfn=Palacios}} | ||
+ | *<code>{{NamingCustom|lang=Manchu|note=it is customary to use only the given name|fn=Aisin Gioro|stype=first name|sn=Puyi}}</code> | ||
+ | {{NamingCustom|lang=Manchu|note=it is customary to use only the given name|fn=Aisin Gioro|stype=first name|sn=Puyi}} |
Revision as of 07:53, 4 March 2020
An expansion upon {{Family name}}
. This template covers most possible naming customs.
Syntax
{{NamingCustom|lang=|note=|fn=|mfn=|pfn=|pn=|mn=|stype=|sn=}}
- Remove unnecessary parts or leave them blank. See below for detailed explanation on each parameters.
- If the language or naming custom starts with a vowel sound, use the following code to change the article:
{{NamingCustom|an|lang=|note=|fn=|mfn=|pfn=|pn=|mn=|stype=|sn=}}
Template Data
<templatedata> { "params": { "1": { "label": "article", "description": "Use this parameter to change the article (i.e. from \"a\" to \"an\").", "example": "an", "type": "string", "default": "a", "autovalue": "an" }, "mfn": { "label": "maternal family name", "type": "string", "description": "The maternal family name, as seen in Spanish names." }, "pfn": { "label": "paternal family name", "type": "string", "description": "The paternal family name, applicable if the primary family name is maternal and both parents' family name is carried." }, "pn": { "label": "patronymic", "type": "string", "description": "Patronymic, as seen in Eastern Slavic names." }, "mn": { "label": "matronymic", "type": "string", "description": "Matronymic, as seen in the Filipino legal names." }, "sn": { "label": "special name", "description": "Name components not covered by the above perimeters, e.g. clan name, house name, etc.", "type": "string" }, "fn": { "label": "family name", "type": "string", "suggested": true, "description": "The primary family name." }, "lang": { "label": "language", "description": "The language or naming custom the name uses.", "example": "Chinese, Japanese, Arabic, Eastern Slavic", "type": "string", "required": true }, "stype": { "label": "special name type", "description": "The type of the \"special name\", e.g. clan name. Required if \"sn\" is used.", "type": "string" }, "note": { "description": "additional note about the naming custom.", "type": "string" } }, "description": "Page-top template to mark the components of a name.", "paramOrder": [ "1", "lang", "note", "fn", "mfn", "pfn", "pn", "mn", "stype", "sn" ], "format": "inline" } </templatedata>
Examples
{{NamingCustom|lang=Japanese|fn=Matsumoto}}
{{NamingCustom|an|lang=Eastern Slavic|fn=Pushkin|pn=Sergeyevich}}
{{NamingCustom|lang=Spanish|fn=de Bolívar|mfn=Palacios}}
{{NamingCustom|lang=Manchu|note=it is customary to use only the given name|fn=Aisin Gioro|stype=first name|sn=Puyi}}