Jump to content

Template:efn Spanish name/doc

From Simple English Wikipedia, the free encyclopedia
Revision as of 19:10, 3 August 2020 by imported>Zyxw (create)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Usage[change]

This template may be put near the top of a biographical article, after the first bolded mention of the subject's name, to create a note to explain to readers unfamiliar with Spanish names which part of a name is the family name. If there are two family names, these can both be stated.

This template can only be used on articles that include <syntaxhighlight lang="text" class="" style="" inline="1">{{notelist}}</syntaxhighlight> or, if |reftype= is used, another footnote template.

Syntax[change]

One surname
{{efn Spanish name|paternal family name}}
{{efn Spanish name|first=paternal family name}}
Two surnames
{{efn Spanish name|paternal family name|maternal family name}}
{{efn Spanish name|first=paternal family name|second=maternal family name}}
One surname, non-default reftype
{{efn Spanish name|paternal family name|reftype=template}}
{{efn Spanish name|first=paternal family name|reftype=template}}
Two surnames, non-default reftype
{{efn Spanish name|paternal family name|maternal family name|reftype=template}}
{{efn Spanish name|first=paternal family name|second=maternal family name|reftype=template}}

Examples[change]

Wikitext Result
'''Juan Pablo Montoya'''{{efn Spanish name|Montoya}}

{{notelist}}
Juan Pablo Montoya[a]
  1. This name uses Spanish naming customs: the first or paternal family name is Montoya.
'''Juan Pablo Montoya Roldán'''{{efn Spanish name|Montoya|Roldán}}

{{notelist}}
Juan Pablo Montoya Roldán[a]
  1. This name uses Spanish naming customs: the first or paternal family name is Montoya and the second or maternal family name is Roldán.
'''Juan Pablo Montoya'''{{efn Spanish name|first=Montoya|reftype=efn-lr}}

{{notelist-lr}}
Juan Pablo Montoya[lower-roman 1]
  1. This name uses Spanish naming customs: the first or paternal family name is Montoya.
'''Juan Pablo Montoya Roldán'''{{efn Spanish name|first=Montoya|second=Roldán|reftype=NoteTag}}

{{NoteFoot}}
Juan Pablo Montoya Roldán[note 1]
  1. This name uses Spanish naming customs: the first or paternal family name is Montoya and the second or maternal family name is Roldán.

TemplateData[change]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Efn Spanish name in articles based on its TemplateData.

TemplateData for Efn Spanish name

<templatedata> { "description": "This template may be put near the top of a biographical article, after the first bolded mention of the subject's name, to create a note to explain to readers unfamiliar with Spanish names which part of a name is the family name. If there are two family names, these can both be stated.", "params": { "1": { "aliases": [ "first" ], "label": "First family name", "description": "The person's first or paternal family name (surname)", "type": "line", "required": true, "example": "Montoya" }, "2": { "aliases": [ "second" ], "label": "Second family name", "description": "The person's second or maternal family name (surname)", "type": "line", "suggested": true, "example": "Roldán" }, "reftype": { "label": "Reference group type", "description": "Name of footnote template to use, such as efn, efn-lr, or NoteTag.", "type": "line", "default": "efn", "example": "efn-lr" } }, "paramOrder": [ "1", "2", "reftype" ] } </templatedata>

Template use by reference group type[change]

<section begin=pregrouptable />

Group type Footnote template List template Sample labels
lower-alpha {{efn}}
{{efn-la}}
{{notelist}}
{{notelist-la}}
a b c d e f g h i j
upper-alpha {{efn-ua}} {{notelist-ua}} A B C D E F G H I J
lower-roman {{efn-lr}} {{notelist-lr}} i ii iii iv v vi vii viii ix x
upper-roman {{efn-ur}} {{notelist-ur}} I II III IV V VI VII VIII IX X
lower-greek[a] {{efn-lg}} {{notelist-lg}} α β γ δ ε ζ η θ ι κ
Note {{NoteTag}} {{NoteFoot}} note 1 note 2 note 3
  1. Not supported by Internet Explorer 7 and below

<section end=pregrouptable />

Related templates[change]