Difference between revisions of "Template:NamingCustom"
m |
m |
||
Line 2: | Line 2: | ||
check for last term for "and" placement. | check for last term for "and" placement. | ||
Family name is always listed first it it exists, so no reason to check. start with mfn. | Family name is always listed first it it exists, so no reason to check. start with mfn. | ||
− | -->{{#if:{{{mfn|}}}|{{#vardefine:mfna|, t}}{{#vardefine: | + | -->{{#if:{{{mfn|}}}|{{#vardefine:mfna|, t}}{{#vardefine:NClocationCheck|mfna}}}}<!-- |
− | -->{{#if:{{{pn|}}}|{{#vardefine:pna|, t}}{{#vardefine: | + | -->{{#if:{{{pn|}}}|{{#vardefine:pna|, t}}{{#vardefine:NClocationCheck|pna}}}}<!-- |
− | -->{{#if:{{{mn|}}}|{{#vardefine:pna|, t}}{{#vardefine: | + | -->{{#if:{{{mn|}}}|{{#vardefine:pna|, t}}{{#vardefine:NClocationCheck|mna}}}}<!-- |
− | -->{{#if:{{{sn|}}}|{{#vardefine:sna|, t}}{{#vardefine: | + | -->{{#if:{{{sn|}}}|{{#vardefine:sna|, t}}{{#vardefine:NClocationCheck|sna}}}}<!-- |
− | -->{{#switch:{{#var: | + | -->{{#switch:{{#var:NClocationCheck}} |
|mfna={{#vardefine:mfna|, and t}} | |mfna={{#vardefine:mfna|, and t}} | ||
|pna={{#vardefine:pna|, and t}} | |pna={{#vardefine:pna|, and t}} | ||
Line 13: | Line 13: | ||
check for first term for Capitaling and etc. | check for first term for Capitaling and etc. | ||
Family name is always listed first it it exists, so no reason to check. | Family name is always listed first it it exists, so no reason to check. | ||
− | -->{{#if:{{{pn|}}}|{{#vardefine: | + | -->{{#if:{{{pn|}}}|{{#vardefine:NClocationCheck|pna}}}}<!-- |
− | -->{{#if:{{{mn|}}}|{{#vardefine: | + | -->{{#if:{{{mn|}}}|{{#vardefine:NClocationCheck|mna}}}}<!-- |
− | -->{{#if:{{{mfn|}}}| | + | -->{{#if:{{{mfn|}}}|}{{#vardefine:NClocationCheck|mfna}}}}<!-- |
− | -->{{#switch:{{#var: | + | -->{{#switch:{{#var:NClocationCheck}} |
|mfna={{#vardefine:mfna|}} | |mfna={{#vardefine:mfna|}} | ||
|pna={{#vardefine:pna|}} | |pna={{#vardefine:pna|}} |
Revision as of 10:06, 26 November 2019
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=}}
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=Traditional Manchu|note=it is customary to use only the given name|fn=Aisin Gioro|stype=given name|sn=Puyi}}