Template:efn Spanish name/doc
| This is a documentation subpage for Template:Efn Spanish name. It contains usage information, categories and other content that is not part of the original template page. |
Usage
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" enclose="none">{{notelist}}</syntaxhighlight> or, if |reftype= is used, another footnote template.
Syntax
- 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
| Wikitext | Result |
|---|---|
'''Juan Pablo Montoya'''{{efn Spanish name|Montoya}}
{{notelist}}
|
Juan Pablo Montoya[a]
|
'''Juan Pablo Montoya Roldán'''{{efn Spanish name|Montoya|Roldán}}
{{notelist}}
|
Juan Pablo Montoya Roldán[a]
|
'''Juan Pablo Montoya'''{{efn Spanish name|first=Montoya|reftype=efn-lr}}
{{notelist-lr}}
|
Juan Pablo Montoya[lower-roman 1]
|
'''Juan Pablo Montoya Roldán'''{{efn Spanish name|first=Montoya|second=Roldán|reftype=NoteTag}}
{{NoteFoot}}
|
Juan Pablo Montoya Roldán[note 1]
|
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
<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 |
- ↑ Not supported by Internet Explorer 7 and below
<section end=pregrouptable />
Related templates
- {{Spanish name}}, which may be used as a hatnote