Difference between revisions of "Template:NamingCustom"

From Moegirlpedia
Jump to: navigation, search
m (fix)
m (?)
Line 7: Line 7:
 
-->{{#if:{{{mn|}}}|{{#vardefine:pna|, t}}{{#vardefine:NClocationCheck|mn}}}}<!--
 
-->{{#if:{{{mn|}}}|{{#vardefine:pna|, t}}{{#vardefine:NClocationCheck|mn}}}}<!--
 
-->{{#if:{{{sn|}}}|{{#vardefine:sna|, t}}{{#vardefine:NClocationCheck|sn}}}}<!--
 
-->{{#if:{{{sn|}}}|{{#vardefine:sna|, t}}{{#vardefine:NClocationCheck|sn}}}}<!--
-->{{#switch:{{#var:NClocationCheck|}}
+
-->{{#switch:{{#var:NClocationCheck|empty}}
 
     |mfn={{#vardefine:mfna|, and t}}
 
     |mfn={{#vardefine:mfna|, and t}}
 
     |pfn={{#vardefine:pfna|, and t}}
 
     |pfn={{#vardefine:pfna|, and t}}
Line 13: Line 13:
 
     |mn={{#vardefine:mna|, and t}}
 
     |mn={{#vardefine:mna|, and t}}
 
     |sn={{#vardefine:sna|, and t}}
 
     |sn={{#vardefine:sna|, and t}}
     |={{#vardefine:NCnonameError|<span style="color:red;">&#32;No name information inputed!</span>}}}}<!--
+
     |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.
 
-->{{#if:{{{pn|}}}|{{#vardefine:NClocationCheck|pn}}}}<!--
 
-->{{#if:{{{pn|}}}|{{#vardefine:NClocationCheck|pn}}}}<!--

Revision as of 07:50, 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}}