Difference between revisions of "Template:NamingCustom"

From Moegirlpedia
Jump to: navigation, search
m
m
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<!--
 
<!--
 
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 if it exists, so no reason to check. start with mfn.
-->{{#if:{{{mfn|}}}|{{#vardefine:mfna|, t}}{{#vardefine:NClocationCheck|mfna}}}}<!--
+
-->{{#if:{{{mfn|}}}|{{#vardefine:mfna|, t}}{{#vardefine:NClocationCheck|mfn}}}}<!--
-->{{#if:{{{pn|}}}|{{#vardefine:pna|, t}}{{#vardefine:NClocationCheck|pna}}}}<!--
+
-->{{#if:{{{pfn|}}}|{{#vardefine:pfna|, t}}{{#vardefine:NClocationCheck|pfn}}}}<!--
-->{{#if:{{{mn|}}}|{{#vardefine:pna|, t}}{{#vardefine:NClocationCheck|mna}}}}<!--
+
-->{{#if:{{{pn|}}}|{{#vardefine:pna|, t}}{{#vardefine:NClocationCheck|pn}}}}<!--
-->{{#if:{{{sn|}}}|{{#vardefine:sna|, t}}{{#vardefine:NClocationCheck|sna}}}}<!--
+
-->{{#if:{{{mn|}}}|{{#vardefine:pna|, t}}{{#vardefine:NClocationCheck|mn}}}}<!--
-->{{#switch:{{#var:NClocationCheck}}
+
-->{{#if:{{{sn|}}}|{{#vardefine:sna|, t}}{{#vardefine:NClocationCheck|sn}}}}<!--
     |mfna={{#vardefine:mfna|, and t}}
+
-->{{#switch:{{#var:NClocationCheck|empty}}
     |pna={{#vardefine:pna|, and t}}
+
     |mfn={{#vardefine:mfna|, and t}}
     |mna={{#vardefine:mna|, and t}}
+
    |pfn={{#vardefine:pfna|, and t}}
     |sna={{#vardefine:sna|, and t}}}}<!--
+
     |pn={{#vardefine:pna|, and t}}
 +
     |mn={{#vardefine:mna|, and t}}
 +
     |sn={{#vardefine:sna|, and t}}
 +
    |empty={{#if:{{{fn|}}}||{{#vardefine:NCnonameError|<span style="color:red;">&#32;No name information inputed!</span>}}}}}}<!--
 
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.
+
-->{{#if:{{{pn|}}}|{{#vardefine:NClocationCheck|pn}}}}<!--
-->{{#if:{{{pn|}}}|{{#vardefine:NClocationCheck|pna}}}}<!--
+
-->{{#if:{{{mn|}}}|{{#vardefine:NClocationCheck|mn}}}}<!--
-->{{#if:{{{mn|}}}|{{#vardefine:NClocationCheck|mna}}}}<!--
+
-->{{#if:{{{pfn|}}}|{{#vardefine:NClocationCheck|pfn}}}}<!--
-->{{#if:{{{mfn|}}}|}{{#vardefine:NClocationCheck|mfna}}}}<!--
+
-->{{#if:{{{mfn|}}}|{{#vardefine:NClocationCheck|mfn}}}}<!--
 +
-->{{#if:{{{fn|}}}|{{#vardefine:NClocationCheck|fn}}}}<!--
 
-->{{#switch:{{#var:NClocationCheck}}
 
-->{{#switch:{{#var:NClocationCheck}}
     |mfna={{#vardefine:mfna|}}
+
     |mfn={{#vardefine:mfn|}}
     |pna={{#vardefine:pna|}}
+
     |pfn={{#vardefine:pfn|}}
     |mna={{#vardefine:mna|}}
+
     |pn={{#vardefine:pn|}}
     |sna={{#vardefine:sna|}}}}<!--
+
     |mn={{#vardefine:mn|}}
 +
    |sn={{#vardefine:sn|}}}}<!--
 
end check
 
end check
--><div class="dablink" style="font-size: small;margin: 0.5em;">[[File:icon-info.png|18px]]''&nbsp;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 class="dablink" style="font-size: small;margin: 0.5em;">[[File:icon-info.png|18px]]&nbsp;This is {{{1|a}}} {{{lang|<span style="color:red;">lang missing!</span>}}} name{{#if:{{{note|}}}|&#59; {{{note}}}}}. T{{#if:{{{fn|}}}|he family name is {{{fn}}}}}{{#if:{{{mfn|}}}|{{#var:mfna|}}he maternal family name is {{{mfn}}}}}{{#if:{{{pfn|}}}|{{#var:pfna|}}he paternal family name is {{{pfn}}}}}{{#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>}}} is {{{sn}}}}}.{{#var:NCnonameError|}}</div>{{#vardefine:NClocationCheck|}}{{#vardefine:NCnonameError|}}<noinclude>{{documentation}}</noinclude>
</div><noinclude>{{documentation}}</noinclude>
 

Latest revision as of 18:53, 4 March 2020

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

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}}