Difference between revisions of "Template:NamingCustom/doc"

From Moegirlpedia
Jump to: navigation, search
m
Line 2: Line 2:
  
 
==Syntax==
 
==Syntax==
 
+
*<code>&#123;&#123;NamingCustom|lang=|note=|fn=|mfn=|pfn=|pn=|mn=|stype=|sn=&#125;&#125;</code>
 +
**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:
 +
*:<code>&#123;&#123;NamingCustom|an|lang=|note=|fn=|mfn=|pfn=|pn=|mn=|stype=|sn=&#125;&#125;</code>
 
==Template Data==
 
==Template Data==
 
<templatedata>
 
<templatedata>
Line 9: Line 12:
 
"1": {
 
"1": {
 
"label": "article",
 
"label": "article",
"description": "Use this perimeter to change the article (i.e. from \"a\" to \"an\").",
+
"description": "Use this parameter to change the article (i.e. from \"a\" to \"an\").",
 
"example": "an",
 
"example": "an",
 
"type": "string",
 
"type": "string",
Line 56: Line 59:
 
"label": "special name type",
 
"label": "special name type",
 
"description": "The type of the \"special name\", e.g. clan name. Required if \"sn\" is used.",
 
"description": "The type of the \"special name\", e.g. clan name. Required if \"sn\" is used.",
 +
"type": "string"
 +
},
 +
"note": {
 +
"description": "additional note about the naming custom.",
 
"type": "string"
 
"type": "string"
 
}
 
}
Line 61: Line 68:
 
"description": "Page-top template to mark the components of a name.",
 
"description": "Page-top template to mark the components of a name.",
 
"paramOrder": [
 
"paramOrder": [
 +
"1",
 
"lang",
 
"lang",
"1",
+
"note",
 
"fn",
 
"fn",
 
"mfn",
 
"mfn",
Line 68: Line 76:
 
"pn",
 
"pn",
 
"mn",
 
"mn",
"sn",
+
"stype",
"stype"
+
"sn"
 
],
 
],
 
"format": "inline"
 
"format": "inline"
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
==Examples==
 +
*<code>&#123;&#123;NamingCustom|lang=Japanese|fn=Matsumoto&#125;&#125;</code>
 +
{{NamingCustom|lang=Japanese|fn=Matsumoto}}
 +
*<code>&#123;&#123;NamingCustom|an|lang=Eastern Slavic|fn=Pushkin|pn=Sergeyevich&#125;&#125;</code>
 +
{{NamingCustom|an|lang=Eastern Slavic|fn=Pushkin|pn=Sergeyevich}}
 +
*<code>&#123;&#123;NamingCustom|lang=Spanish|fn=de Bolívar|mfn=Palacios&#125;&#125;</code>
 +
{{NamingCustom|lang=Spanish|fn=de Bolívar|mfn=Palacios}}
 +
*<code>&#123;&#123;NamingCustom|lang=Manchu|note=it is customary to use only the given name|fn=Aisin Gioro|stype=first name|sn=Puyi&#125;&#125;</code>
 +
{{NamingCustom|lang=Manchu|note=it is customary to use only the given name|fn=Aisin Gioro|stype=first name|sn=Puyi}}

Revision as of 07:53, 4 March 2020

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

Template Data

<templatedata> { "params": { "1": { "label": "article", "description": "Use this parameter to change the article (i.e. from \"a\" to \"an\").", "example": "an", "type": "string", "default": "a", "autovalue": "an" }, "mfn": { "label": "maternal family name", "type": "string", "description": "The maternal family name, as seen in Spanish names." }, "pfn": { "label": "paternal family name", "type": "string", "description": "The paternal family name, applicable if the primary family name is maternal and both parents' family name is carried." }, "pn": { "label": "patronymic", "type": "string", "description": "Patronymic, as seen in Eastern Slavic names." }, "mn": { "label": "matronymic", "type": "string", "description": "Matronymic, as seen in the Filipino legal names." }, "sn": { "label": "special name", "description": "Name components not covered by the above perimeters, e.g. clan name, house name, etc.", "type": "string" }, "fn": { "label": "family name", "type": "string", "suggested": true, "description": "The primary family name." }, "lang": { "label": "language", "description": "The language or naming custom the name uses.", "example": "Chinese, Japanese, Arabic, Eastern Slavic", "type": "string", "required": true }, "stype": { "label": "special name type", "description": "The type of the \"special name\", e.g. clan name. Required if \"sn\" is used.", "type": "string" }, "note": { "description": "additional note about the naming custom.", "type": "string" } }, "description": "Page-top template to mark the components of a name.", "paramOrder": [ "1", "lang", "note", "fn", "mfn", "pfn", "pn", "mn", "stype", "sn" ], "format": "inline" } </templatedata>

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=Manchu|note=it is customary to use only the given name|fn=Aisin Gioro|stype=first name|sn=Puyi}}