Template:Sortname flag
[[{{{first}}} {{{last}}}]] (25x17px)
Usage
This template is used to display a flag next to a person within a sortable table, with the sorting defaulting to surname first.
{{sortname flag|first|last|optional link target|optional sort key|nat=Country code or name|var=optional flag variant|code=optional code value}}
- The default sort key is "last, first".
- The link label is "first last".
- The default link target is "first last"
- Optional parameters
|dab=disambiguator- Wikilinks to "first last (disambiguator)".
(Note: ignored if optional link target is not blank.)
- Wikilinks to "first last (disambiguator)".
|nolink=1- Suppresses wikilinking the name, useful for list entries which are likely to never have articles so shouldn't be redlinked.
(Note: optional link target ignored when "|nolink=1" used.)
- Suppresses wikilinking the name, useful for list entries which are likely to never have articles so shouldn't be redlinked.
Examples
| Text typed | Text displayed | Sort key |
|---|---|---|
{{sortname flag|Junior|Firpo|nat=DOM}}
|
Firpo, Junior | |
{{sortname flag|Daniel|James|dab=footballer|nat=WAL}}
|
James, Daniel | |
{{sortname flag|Sam|Greenwood|Sam Greenwood (footballer)|nat=ENG}}
|
Greenwood, Sam | |
{{sortname flag|John|Smith|nolink=1|nat=NZL|var=1834}}
|
Smith, John |
See also
- Template:Flag athlete for an equivalent template but with default sorting
- Template:Sortname for sorting names without producing a flag
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| First Name | 1 | no description
| Unknown | required |
| Last Name | 2 | no description
| Unknown | required |
| Country code or name | nat | Selects the country whose flag is to be shown.
| String | required |
| Flag variant | var | Selects the variant of the flag to be used; see Template:Flag.
| String | optional |
| Optional Link Target | 3 | no description
| Page name | optional |
| Optional Sort Key | 4 | no description
| Unknown | optional |
| Disambiguator (no brackets) | dab | no description
| Unknown | optional |
| No Link | nolink | Type "1" for no wikilink to appear
| Unknown | optional |
| sort | sort | no description | Unknown | optional |
| last | last | no description | Unknown | optional |
| first | first | no description | Unknown | optional |
| link | link | no description | Unknown | optional |
| Country code for display | code | The code to display after the name, if different to parameter 2, "Country code or name".
| Unknown | optional |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.