Difference between revisions of "Template:NamingCustom"

From Moegirlpedia
Jump to: navigation, search
m
m
Line 7: Line 7:
 
-->{{#if:{{{sn|}}}|{{#vardefine:sna|, t}}{{#vardefine:NClocationCheck|sn}}}}<!--
 
-->{{#if:{{{sn|}}}|{{#vardefine:sna|, t}}{{#vardefine:NClocationCheck|sn}}}}<!--
 
-->{{#switch:{{#var:NClocationCheck}}
 
-->{{#switch:{{#var:NClocationCheck}}
     |mfna={{#vardefine:mfn|, and t}}
+
     |mfn={{#vardefine:mfna|, and t}}
     |pna={{#vardefine:pn|, and t}}
+
     |pn={{#vardefine:pna|, and t}}
     |mna={{#vardefine:mn|, and t}}
+
     |mn={{#vardefine:mna|, and t}}
     |sna={{#vardefine:sn|, and t}}}}<!--
+
     |sn={{#vardefine:sna|, and t}}}}<!--
 
check for first term for Capitaling and etc.
 
check for first term for Capitaling and etc.
 
-->{{#if:{{{pn|}}}|{{#vardefine:NClocationCheck|pn}}}}<!--
 
-->{{#if:{{{pn|}}}|{{#vardefine:NClocationCheck|pn}}}}<!--
Line 17: Line 17:
 
-->{{#if:{{{fn|}}}|{{#vardefine:NClocationCheck|fn}}}}<!--
 
-->{{#if:{{{fn|}}}|{{#vardefine:NClocationCheck|fn}}}}<!--
 
-->{{#switch:{{#var:NClocationCheck}}
 
-->{{#switch:{{#var:NClocationCheck}}
     |mfna={{#vardefine:mfn|}}
+
     |mfn={{#vardefine:mfn|}}
     |pna={{#vardefine:pn|}}
+
     |pn={{#vardefine:pn|}}
     |mna={{#vardefine:mn|}}
+
     |mn={{#vardefine:mn|}}
     |sna={{#vardefine:sn|}}}}<!--
+
     |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. 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:11, 26 November 2019

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