Difference between revisions of "Template:NamingCustom"
m |
m |
||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
− | check 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. | |
− | -->{{#if:{{{mfn|}}}|{{#vardefine:mfna|, t}}{{#vardefine: | + | -->{{#if:{{{mfn|}}}|{{#vardefine:mfna|, t}}{{#vardefine:location|mfna}}}}<!-- |
− | -->{{#if:{{{pn|}}}|{{#vardefine:pna|, t}}{{#vardefine: | + | -->{{#if:{{{pn|}}}|{{#vardefine:pna|, t}}{{#vardefine:location|pna}}}}<!-- |
− | -->{{#if:{{{mn|}}}|{{#vardefine:pna|, t}}{{#vardefine: | + | -->{{#if:{{{mn|}}}|{{#vardefine:pna|, t}}{{#vardefine:location|pna}}}}<!-- |
− | -->{{#if:{{{sn|}}}|{{#vardefine:sna|, t}}{{#vardefine: | + | -->{{#if:{{{sn|}}}|{{#vardefine:sna|, t}}{{#vardefine:location|sna}}}}<!-- |
-->{{#switch:{{#var:andlocation}} | -->{{#switch:{{#var:andlocation}} | ||
|mfna={{#vardefine:mfna|, and t}} | |mfna={{#vardefine:mfna|, and t}} | ||
Line 11: | Line 11: | ||
|mna={{#vardefine:mna|, and t}} | |mna={{#vardefine:mna|, and t}} | ||
|sna={{#vardefine:sna|, and t}}}}<!-- | |sna={{#vardefine:sna|, and t}}}}<!-- | ||
+ | check for first term for Capitaling and etc. | ||
+ | Family name is always listed first it it exists, so no reason to check. | ||
+ | -->{{#if:{{{pn|}}}|{{#vardefine:pna|, t}}{{#vardefine:location|pna}}}}<!-- | ||
+ | -->{{#if:{{{mn|}}}|{{#vardefine:pna|, t}}{{#vardefine:location|pna}}}}<!-- | ||
+ | -->{{#if:{{{mfn|}}}|{{#vardefine:mfna|, t}}{{#vardefine:location|mfna}}}}<!-- | ||
+ | -->{{#switch:{{#var:andlocation}} | ||
+ | |mfna={{#vardefine:mfna|}} | ||
+ | |pna={{#vardefine:pna|}} | ||
+ | |mna={{#vardefine:mna|}} | ||
+ | |sna={{#vardefine:sna|}}}}<!-- | ||
end check | end check | ||
− | --><div class="dablink" style="font-size: small;margin: 0.5em;">[[File:icon-info.png|18px]]'' This is {{{1|a}}} {{{lang|<span style="color:red;">lang missing!</span>}}} name. {{#if:{{{fn|}}}| | + | --><div class="dablink" style="font-size: small;margin: 0.5em;">[[File:icon-info.png|18px]]'' This is {{{1|a}}} {{{lang|<span style="color:red;">lang missing!</span>}}} name. T{{#if:{{{fn|}}}|he family name is ''{{{fn}}}''}}{{#if:{{{mfn|}}}|{{#var:mfna|}}he maternal family name is ''{{{mfn}}}''}}{{#if:{{{pn|}}}|{{#var:pna|}}he patronymic is ''{{{pn}}}''}}{{#if:{{{mn|}}}|{{#var:mna|}}he matronymic is ''{{{mn}}}''}}{{#if:{{{sn|}}}|{{#var:sna|}}he {{{stype|<span style="color:red;">stype missing!</span>}}} name is ''{{{sn}}}''}}.'' |
</div><noinclude>{{documentation}}</noinclude> | </div><noinclude>{{documentation}}</noinclude> |
Revision as of 10:04, 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}}